
440
Conversion Instructions
Section 3-12
Description
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.
Flags
Example
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.
3-12-8 DATA DECODER: MLPX(076)
Purpose
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).
Ladder Symbol
Variations
Source word (S)
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The content of S is
transferred "as is" to R.
1
st
result word (R)
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2
nd
result word (R+1)
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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.
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.
Example: 8000 Hex
S: Source word
C: Control word
R: First result word
MLPX(076)
S
C
R
Variations
Executed Each Cycle for ON Condition
MLPX(076)
Executed Once for Upward Differentiation
@MLPX(076)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...