3. Instructions
S
through S
+2: Present Time Data
1
1
S
through S
+2 contain the present time
1
1
data. S
through S
1
data area.
15
S
1
Minutes: 00 to 59 (BCD)
15
S
+1
1
Day: 01 to 31 (BCD)
15
S
+2
1
Year: 00 to 99 (BCD)
Note When using the CPU Unit's internal clock
data for the comparison, set S1 to A351 to
specify the CPU Unit's internal clock data
(A351 to A353).
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
OK
OK
OK
S1, S2
Flags
Name
Error Flag
Greater Than Flag
Greater Than or Equal Flag
Equal Flag
Not Equal Flag
Less Than Flag
Less Than or Equal Flag
258
+2 must be in the same
1
8
7
0
Seconds: 00 to 59 (BCD)
8
7
0
Hour: 00 to 23 (BCD)
8
7
0
Month: 01 to 12 (BCD)
AR
T
C
DM
EM
---
---
OK
OK
OK
OK
OK
Label
P_ER
• ON if all 6 of the mask bits (C bits 00 to 05) are ON.
• OFF in all other cases.
P_GT
• ON if S
> S
.
1
2
• OFF in all other cases.
P_GE
• ON if S
S
.
1
2
• OFF in all other cases.
P_EQ
• ON if S
= S
.
1
2
• OFF in all other cases.
P_NE
• ON if S
S
.
1
2
• OFF in all other cases.
P_LT
• ON if S
< S
.
1
2
• OFF in all other cases.
P_LE
• ON if S
S
.
1
2
• OFF in all other cases.
i
S
through S
2
S
through S
2
time data. S
same data area.
15
S
2
15
S
+1
2
15
S
+2
2
Note The year value indicates the last two digits
of the year. Values 00 to 97 are interpreted
as 2000 to 2097. Values 98 and 99 are
interpreted as 1998 and 1999.
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
+2: Comparison Time Data
2
+2 contain the comparison
2
through S
+2 must be in the
2
2
8
7
0
Seconds: 00 to 59 (BCD)
Minutes: 00 to 59 (BCD)
8
7
0
Hour: 00 to 23 (BCD)
Day: 01 to 31 (BCD)
8
7
0
Month: 01 to 12 (BCD)
Year: 00 to 99 (BCD)
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
TR
bits
---
Need help?
Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?