EasyManua.ls Logo

Delta AH500 - Page 257

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-89
API
Instruction code
Operand Function
0209 D GBIN P
S, D
Converting the Gray code into the
binary number
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
S
D
Pulse instruction
16-bit instruction (5 steps)
32-bit instruction (5 steps)
AH500
AH500
AH500
Symbol:
S
Source device Word/Double word
D
Conversion result Word/Double word
Explanation:
1. The Gray code in the device specified by S is converted into the binary value, and the
conversion result is stored in the device specified by D.
2. The instruction is used to convert the Gary code in the absolute position encoder which is
connected to the input terminal of the PLC to the binary value, and the conversion result is
stored in the register which is specified.
3. The value in the operand S should be within the available range.
The value in the operand S used in the 16-bit instruction should be within the range between 0
and 32,767.
The value in the operand S used in the 32-bit instruction should be within the range between 0
and 2,147,483,647.
Example:
When X0.0 is ON, the Gary code in the absolute position encoder which is connected to the inputs
X0.0~X0.15 is converted into the binary value, and the conversion result is stored in D10.
0 0 0 1 10 11 10 0 0
b15
b0
H1971=K6513
0 0 0 0 0 0 111111
X0.15
X0.0
GRAY CODE 6513
X0
0 1 0 1
0 0 1 0
Additional remark:
If the value in S is less than 0, the operation error occurs, the instruction is not executed, SM0 is ON,
and the error code in SR0 is 16#2003.

Table of Contents

Other manuals for Delta AH500

Related product manuals