Omron CJ1W-CLK21-V1 ユーザーズマニュアル

ページ / 401
221
Commands and Responses for C200HX/HG/HE and CQM1H-series PLCs
Section 6-6
FAL/FALS No. (response): The number of the highest priority FAL/FALS
error is returned as BCD between 00 and 99 (decimal) to the second byte.
The first byte is always 00 (Hex). If no error has occurred, 0000 (Hex) is
returned.
Error message (response): The error message of the present FAL/FALS
number is returned as 16 or fewer ASCII characters (16 or fewer bytes). If
there is no error, nothing will be returned.
6-6-12 CLOCK READ
Reads the clock.
With CQM1H-series PLCs, all zeros will be returned if the CPU Unit does not
contain a Memory Cassette with a clock.
Command Block
Response Block
Parameters
Year, month, date, hour, minute, second, day (response): Each value is
expressed in BCD.
Year: The rightmost two digits of the year.
Hour: 00 to 23.
Day: As follows:
6-6-13 CLOCK WRITE
Sets the clock.
With CQM1H-series PLCs, the time will not be written unless the CPU Unit
contains a Memory Cassette with a clock.
Note Be sure to specify all data.
Command Block
Response Block
Command 
code
01
07
01
07
Year
Date Hour Minute
Response 
code
Command 
code
Month
Second Day
Value
00
01
02
03
04
05
06
Day
Sun
Mon
Tues
Wed
Thur
Fri
Sat
02
07
Year Month Date Hour
Command 
code
Minute Second Day
02
07
Response 
code
Command 
code