High−level Instructions
3 − 596
Outline Converts gray code to 32-bit data.
For the FP0R/FPΣ/FP−X, the P type high−level instruction “P238
(PDGBIN)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F238 DGBIN, DT10, DT20
0
R0
0
1
ST R 0
F238 (DGBIN)
DT 10
DT 20
S Lower 16-bit area of 32-bit data for gray code (source)
D Lower 16-bit area of 32-bit data for storing converted data (destination)
Operands
O
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 gray code to 32-bit data when the trigger turns on. The converted result is stored in the 32-bit area
specified by 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.
F238
P238
(PDGBIN)
(DGBIN)
32-bit Gray code → 32-bit binary data