EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
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...
3. Instructions
390
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SIGN(600) converts the 16-bit signed binary number in S to its 32-bit signed binary equivalent and
writes the result in R+1 and R.
The conversion is accomplished by copying the content of S to R and writing FFFF to R+1 if bit 15 of S
is 1 or writing 0000 to R+1 if bit 15 of S is 0.
Example Programming
When CIO 0.00 is ON in the following example, SIGN(600) converts the 16-bit signed binary content of
D100 (#8000 = -32,768 decimal) to its 32-bit equivalent (#FFFF 8000 = -32,768 decimal) and writes
that result to D201 and D200.
10000 0000 0000 000
100 000000 000 0000
111 1111 1111 111 11
The content of S is
transferred "as is" to R.
Source word (S)
1
st
result word (R)
2
nd
result word (R+1)
If bit 15 of S is 1, FFFF is transferred to R+1.
If bit 15 of S is 0, 0000 is transferred to R+1.
Example: 8000 Hex
D100
D200
0.00
D: D200
S: D100
D+1: D201

Table of Contents

Related product manuals