Gray_Bin/Gray_Binl - Omron CJ - INSTRUCTIONS Reference Manual

Table of Contents

Advertisement

3. Instructions

GRAY_BIN/GRAY_BINL

Instruction
GRAY CODE TO BINARY
CONVERT
DOUBLE GRAY CODE TO
BINARY CONVERT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Gray code data
D
Binary data
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
D
Flags
Name
Error Flag
Equal Flag
Negative Flag
428
Mnemonic
Variations
GRAY_BIN
@GRAY_BIN
GRAY_BINL
@GRAY_BINL
GRAY_BIN
GRAY_BIN
S
S: Source (gray code)
D
D: Destination
(binary data)
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
P_ER
• ON if the results of conversion is negative (i.e., if the gray code data is #8000 to #FFFF).
• OFF in all other cases.
P_EQ
Unchanged.
P_N
Unchanged.
Function
code
Converts the specified word of gray code to one
478
word of binary data.
Converts the specified two words of gray code to
479
two words of binary data.
Subroutines
OK
Data type
GRAY_BIN
GRAY_BINL
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
GRAY_BINL
GRAY_BINL
S: First source word
S
(gray code)
D
D: First destination word
(binary)
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
GRAY_BIN
GRAY_BINL
DWORD
1
DWORD
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
2
2
TR
bits
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents