Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 487

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Symbol Math Instructions
Description
Flags
Area
Timer Area
Counter Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
–C(412) subtracts the binary values in Su and CY from Mi, and outputs the
result to R. When the result is negative, it is output to R as a 2's complement.
CY will turn
ON when there
CY
is a borrow.
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
Mi
T0000 to T4095
C0000 to C4095
D00000 to D32767
E00000 to E32767
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF
(binary)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(Signed binary)
Mi
(Signed binary)
Su
CY
R
(Signed binary)
Operation
OFF
ON when the subtraction result is 0.
OFF in all other cases.
ON when the subtraction results in a borrow.
OFF in all other cases.
ON when the result of subtracting a negative number and
CY from a positive number is in the range 8000 to FFFF
hex.
OFF in all other cases.
ON when the result of subtracting a positive number and
CY from a negative number is in the range 0000 to 7FFF
hex.
OFF in all other cases.
ON when the leftmost bit of the result is 1.
OFF in all other cases.
Section 3-11
Su
R
---
447

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents