Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 459

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
BIN_GRAY/BIN_GRAYL
Instruction
BINARY TO GRAY CODE
CONVERT
DOUBLE BINARY TO GRAY
CODE CONVERT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Binary data
D
Gray code data
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
D
Flags
Name
Error Flag
Equal Flag
Negative Flag
422
Mnemonic
Variations
BIN_GRAY
@BIN_GRAY
BIN_GRAYL
@BIN_GRAYL
BIN_GRAY
BIN_GRAY
S: Source word
S
(binary data)
D
D: Destination word
(gray code)
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if the binary code is negative (i.e., if the gray code data is #8000 to #FFFF).
• OFF in all other cases.
=
Unchanged.
N
Unchanged.
Function
code
Converts the specified word of binary data to one
480
word of gray code.
Converts the specified two words of binary data to
481
two words of gray code.
Subroutines
OK
Data type
BIN_GRAY
BIN_GRAYL
WORD
WORD
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
BIN_GRAYL
BIN_GRAYL
S: First source word
S
(binary data)
D
D: First destination word
(gray code)
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
BIN_GRAY
BIN_GRAYL
DWORD
1
DWORD
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
2
2
TR
bits
---
---

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents