Omron SYSMAC CP Series Instruction & Reference Manual page 197

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

Advertisement

Function
+C
+C(402) adds the binary values in Au, Ad, and CY and outputs the result to R.
+CL
+CL(403) adds the binary values in Au and Au+1, Ad and Ad+1, and CY and outputs the result to R.
Hint
• To clear the Carry Flag (CY), execute the Clear Carry (CLC(041)) instruction.
Sample program
CP1E CPU Unit Instructions Reference Manual(W483)
+
CY will turn ON
CY
when there is a
carry.
+
CY will turn ON
CY
when there is a
carry.
0.00
+C
When CIO 0.00 is ON, D200, D210, and CY will be added as
4-digit signed binary values and the result will be output to
D200
D220.
D210
D220
0.00
+CL
When CIO 0.00 is ON, D201, D200, D211, D210, and CY will
be added as 8-digit signed binary values, and the result will
D200
be output to D221 and D220.
D210
D220
Au
(Signed binary)
(Signed binary)
Ad
CY
(Signed binary)
R
Au+1
Au
(Signed binary)
(Signed binary)
Ad+1
Ad
CY
R+1
R
(Signed binary)
2 Instructions
2
2-161

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents