High−level Instructions
3 − 594
Outline Converts 32-bit binary data to gray code.
For the FP0R/FPΣ/FP−X, the P type high−level instruction “P236
(PDGRY)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F236 DGRY, DT10, DT200
R0
0
1
ST R 0
F236 (DGRY)
DT 10
DT 20
S 32-bit equivalent constant or lower 16-bit area of 32-bit data to be converted
(source)
D Lower 16-bit area of 32-bit data for storing gray code (destination)
Operands
O
erand
Relay Timer/Counter Register
Index
register
Constant
Index
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S A A A A A A A A A A A A N/A A N/A
D N/A A A A A A A A A A N/A N/A N/A A N/A
Description
Converts the 32-bit data specified by S to gray code when the trigger turns on. The converted data is stored in
D+1 and D.
For detailed information about the gray code page 3 − 597
Flag conditions
・Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
F236
P236
(PDGRY)
(DGRY)
32-bit data → Gray code
vailable
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com