EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 431

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
398
Conversion Instructions Section 3-11
Flags
Note The result for 8000 hex will be 8000 hex.
Example When CIO 0.01 is ON in the following example, NEGL(161) calculates the 2’s
complement of the content of D1001 and D1000 and writes the result to
D2001 and D2000.
3-11-7 16-BIT TO 32-BIT SIGNED BINARY: SIGN(600)
Purpose Expands a 16-bit signed binary value to its 32-bit equivalent.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Name Label Operation
Error Flag ER OFF
Equals Flag = ON if the result is 0000 0000.
OFF in all other cases.
Negative Flag N ON if bit 15 of R+1 is ON.
OFF in all other cases.
āˆ’)
0.01
D1000
D2000
D1000
D2000
D1001
D2001
Add 1
Actual
calculation
Equivalent
subtraction
Reverse bit status
SIGN(600)
S
R
S: Source word
R: First result word
Variations Executed Each Cycle for ON Condition SIGN(600)
Executed Once for Upward Differentiation @SIGN(600)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area S R
CIO Area CIO 0 to CIO 6143 CIO 0 to CIO 6142
Work Area W0 to W511 W0 to W510
Holding Bit Area H0 to H511 H0 to H510
Auxiliary Bit Area A0 to A959 A448 to A958
Timer Area T0000 to T4095 T0000 to T4094

Table of Contents

Related product manuals