Panasonic FP-E Programming Manual page 858

Fp series
Table of Contents

Advertisement

High−level Instructions
F236
(DGRY)
P236
(PDGRY)
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
Trigger
R0
0
F236 DGRY, DT10, DT20
S
D
Operands
Relay
Operand
Operand
WX WY WR WL
S
A
A
D
N/A
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
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
3 − 594
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
32-bit data → Gray code
Ladder Diagram
Ladder Diagram
S
32-bit equivalent constant or lower 16-bit area of 32-bit data to be converted
(source)
Lower 16-bit area of 32-bit data for storing gray code (destination)
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
Turns on and stays on when the area specified using the index modifier
exceeds the limit.
Turns on for an instant when the area specified using the index modifier
exceeds the limit.
D
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
page 3 − 597
Boolean
Address
Instruction
0
ST
R
1
F236
DT
DT
Constant
Index
modifier
modifier device
K
H
f
A
A
N/A
A
N/A N/A N/A
A
A:
Available
N/A: Not Available
0
(DGRY)
10
20
Integer
device
N/A
N/A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents