Download MELSEC-Q/L Ethernet Interface Module User`s Manual (Application)

Transcript
6.8
J(P)/G(P).REQ (Clock Data Read/Write)
This instruction reads/writes clock data from/to other stations.
See Page 186, Section 6.7 for the following information on the REQ instruction for reading/writing clock data from/to other
stations.
Since the same explanation as when executing remote RUN/STOP operations using the REQ instruction applies in this
case, the explanation of these items is omitted in this section.
• Instruction format
• Devices that can be used with the instruction
• Control data in the setting data
• Functions
• Errors
6.8.1
Device
Request data (All values are set by the user)
Item
Clock data
read
Setting data
Clock data write
(S2)
Request type
0001H: Clock data read
0011H: Clock data write (When station No. is specified in (S1) + 5)
0031H: Clock data write (When all stations or a group is specified in (S1) + 5)


(S2) + 1
Sub-request type
0002H: Clock data read
0001H: Clock data write




Higher 8 bits: date (01H to 31H), lower 8 bits: month (01H to 12H)


Higher 8 bits: minute (00H to 59H), lower 8 bits: hour (00H to 23H)


Higher 8 bits: day of the week (00H (Sunday) to 06H (Saturday)), lower 8 bits:
second (00H to 59H)


1) Change pattern (bits 0 to 7)
Specify which items are to be written to the fields of (high byte of (S2) + 2) to ((S2)
+ 5).
0: Do not change
1: Change
2) Year to be changed (bits 8 to 15)
Store year (last two digits of the year in the Gregorian calendar) as BCD code.
(S2) + 2
Change pattern
Year to be
changed
b15
to
b8 b7 b6 b5 b4 b3 b2 b1 b0
Year (00H to 99H)
0
Year
Month
Date
Hour
Minute
Second
Day of the week
(S2) + 3
(S2) + 4
(S2) + 5
Clock data to be
changed
(continued)
In this function, the higher two digits of the year data cannot be changed.
When it is necessary to change the higher two digits of the year data, use other functions (such as a programming tool)
to set the clock data.
194