Omron SYSMAC CP Series Instruction & Reference Manual page 419

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Operand Specifications
Area
CIO
WR
HR
C
T
OK
OK
OK
R
Flags
Name
Error Flag
Equal Flag
Function
CADD
CADD(730) adds the calendar data (words C through C+2) to the
time data (words T and T+1) and outputs the resulting calendar data
to R through R+2.
CSUB
CSUB(731) subtracts the time data (words T and T+1) from the cal-
endar data (words C through C+2) to and outputs the resulting calen-
dar data to R through R+2.
CP1E CPU Unit Instructions Reference Manual(W483)
Word addresses
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
• ON if the calendar data in C through C+2 is not within the specified ranges.
• ON if the time data in T and T+1 is not within the specified ranges.
• OFF in all other cases.
P_EQ
• ON when the result of a CSUB instruction is 0.
• OFF in all other cases.
Indirect DM addresses
Constants
@DM
*DM
---
OK
OK
OK
---
Operation
2 Instructions
CF
Pulse bits
TR bits
---
---
---
15
8
7
0
C
Minutes
Seconds
Day
Hour
C+1
Year
Month
C+2
+
15
8
7
0
T
Minutes
Seconds
Hours
T+1
15
8
7
0
R
Minutes
Seconds
R+1
Day
Hour
Year
Month
R+2
15
8
7
0
C
Minutes
Seconds
Day
Hour
C+1
Year
Month
C+2
-
15
8
7
0
T
Minutes
Seconds
T+1
Hours
15
8
7
0
R
Minutes
Seconds
R+1
Day
Hour
Year
Month
R+2
2-383
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents