Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 458

Table of Contents

Advertisement

3. Instructions
S: Source Word
S
Contains the gray binary code to be converted. The range must be within the number of bits determined
by the resolution specified in bits 00 to 03 of C. All bits outside of the number of bits for the specified
resolution will be ignored.
For example, if the specified resolution is 08 hex and S contains FFFF hex, the gray binary code will be
taken as 00FF hex.
D: First destination word
D
D+1
Destination words D+1 and D contain the results of converting the gray binary code at the resolution
specified in bits 00 to 03 of the control data word C and the conversion mode specified in bits 04 to 07
of the control data word C. The leftmost word is output to D+1 and the rightmost word is output to D.
The ranges of data that are output are as follows:
Binary Mode:
BCD Mode:
360 Mode:
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
S
OK
OK
OK
D
Flags
Name
Error Flag
Equal Flag
Negative Flag
422
Rightmost word
Leftmost word
0000 0000 to 0000 7FFF hex
0000 0000 to 0003 2767
0000 0000 to 0000 3599
(0.0 to 359.9 in 0.1 increments, BCD)
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
P_ER
• ON if bits 12 to 15 of C are not 0 hex (operating mode = gray binary code conversion).
• ON if the zero point offset in C+1 is not within the specified resolution (including user-specified reso-
lutions).
• ON if bits 04 to 07 of C are not 0 hex (= Binary Mode), 1 hex (= BCD Mode), or 2 hex (= 360 Mode).
• ON if the specified encoder remainder compensation exceeds the set user-specified resolution when
bits 00 to 03 of C are 0 hex (= user-specified resolution).
• ON if the converted binary value is less than the encoder remainder compensation when bits 00 to 03
of C are 0 hex (= user-specified resolution).
• ON if the converted binary value is less than the resolution when bits 00 to 03 of C are 0 hex (= user-
specified resolution).
• OFF in all other cases.
P_EQ
OFF in all cases.
P_N
OFF in all cases.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents