Download Q Corresponding Etherne Interface Module User`s Manual
Transcript
6 DEDICATED INSTRUCTIONS Request data (All items marked with Device MELSEC-Q are set by the user) Item Clock data read Set data (D1) + 0 Request type 0081H: Clock data read 0091H: Clock data write (When station No. is specified in (S1)+5) 00B1H: Clock data write (When all stations or a group is specified in (S1)+5) (D1) + 1 Sub-request type 0002H: Clock data read 0001H: Clock data write Higher 8 bits: month (01H to 12H), lower 8 bits : year (00H to 99H) (D1) + 2 Clock data write — Year: Lower two digits Higher 8 bits: hour (00H to 23H), lower 8 bits : date (01H to 31H) — (D1) + 4 Higher 8 bits: second (00H to 59H), lower 8 bits : minute (00H to 59H) — (D1) + 5 Higher 8 bits: (00H), lower 8 bits : day of the week (00H (Sunday) to 06H (Saturday)). — (D1) + 3 Clock data read POINT (1) The clock data cannot be read/written when the system protection is activated on the target station's Q/QnACPU (the system protect switch is on). (2) When the clock data is read, the response data storage device (D1) requires a contiguous free area of six words. 6 - 33 6 - 33