58
FX
3U
-32DP PROFIBUS-DP Interface Block
User’s Manual
8 Example Program
8.1 Example Program
8.1.4
Example Program for Cyclic Communication using GX Developer
D0.0
M8002
Set 32DP slave address
to 1.
FNC 12
MOVP
K1
U0\G27
Read cyclic input data
consistency
activate/deactivate flag.
FNC 12
MOV
U0\G298
D1
Read cyclic output data
consistency
activate/deactivate flag.
Read cyclic input data send
flag.
Reset cyclic input data send
flag.
Write cyclic input data to
BFM#100 to #171 to be sent
to DP-Master.
Read cyclic output data
received by 32DP to D300
to D371.
Read data exchange status
register.
Read cyclic output data read
flag.
RUN
monitor
Reset cyclic output data
read flag.
Read cyclic output data
received by 32DP to D300
to D371.
K0
U0\G99
FNC 15
BMOV
D100
U0\G100
K72
Write cyclic input data to
BFM#100 to #171 to be sent
to DP-Master.
D0.0
Write diagnostic data to
diagnostic/alarm (status)
data area.
Read diagnostic/alarm
immediate send flag.
Set diagnostic/alarm
immediate send flag.
Reset send alarm.
FNC 12
MOV
U0\G1300
D12
U0\G1309
K14
FNC 12
MOV
K1
U0\G1300
RST
M1
M1
Send
alarm
(Status)
Initial
pulse
END
M8000
FNC 12
MOV
U0\G98
D0
RUN
monitor
FNC 12
MOV
U0\G20
D2
M8000
M8000
RUN
monitor
FNC 236
AND< >
D2
K0
D10.0
FNC 15
BMOV
D100
U0\G100
K72
FNC 12
MOV
U0\G99
D10
FNC 12
MOV
D1.0
K0
U0\G299
FNC 15
BMOV
U0\G300
D300
K72
D1.0
FNC 236
AND< >
D2
K0
D11.0
FNC 15
BMOV
U0\G300
D300
K72
FNC 12
MOV
U0\G299
D11
FNC 12
MOV
FNC 236
AND< >
D2
K0
D12.0
FNC 15
BMOV
D20
Cyclic input data
consistency
activate/deactivate
flag
Cyclic input data send flag
Cyclic input data
consistency
activate/deactivate
flag
Cyclic output data
consistency activate/
deactivate flag
Cyclic output data read flag
Cyclic output data
consistency activate/
deactivate flag
Diagnostic/alarm
immediate send flag
Содержание FX3U-32DP
Страница 1: ...USER S MANUAL FX3U 32DP PROFIBUS DP Interface Block ...
Страница 2: ......
Страница 6: ... iv ...
Страница 73: ......