Omron CS1G/H-CPUxxH Instructions Manual page 461

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
Description
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.
nd
2
result word (R+1)
1
1
1
1
1
1
1
Flags
Example
3-12-8 DATA DECODER: MLPX(076)
Purpose
Ladder Symbol
Variations
440
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.
1
1
1
1
1
1
1
1
Name
Error Flag
Equals Flag
Negative Flag
When CIO 000000 is ON in the following example, SIGN(600) converts the
16-bit signed binary content of D00100 (#8000 = –32,768 decimal) to its 32-
bit equivalent (#FFFF 8000 = –32,768 decimal) and writes that result to
D00201 and D00200.
Reads the numerical value in the specified digit (or byte) in the source word,
turns ON the corresponding bit in the result word (or 16-word range), and
turns OFF all other bits in the result word (or 16-word range).
Variations
Immediate Refreshing Specification
1
0
0
0
0
0
The content of S is
transferred "as is" to R.
1
1
1
0
0
0
0
0
Label
ER
OFF
=
ON if the result is 0000 0000.
OFF in all other cases.
N
ON if bit 15 of R+1 is ON.
OFF in all other cases.
MLPX(076)
S
C
R
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Section 3-12
Source word (S)
0
0
0
0
0
0
0
st
result word (R)
0
0
0
0
0
0
0
Operation
Example: 8000 Hex
S: Source word
C: Control word
R: First result word
MLPX(076)
@MLPX(076)
Not supported
0
0
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents