Festo CPX-SF34 Manual page 56

Cpx control block
Hide thumbs Also See for CPX-SF34:
Table of Contents

Advertisement

2. Commissioning
ST
1
Q_2_D08:=I_1_DI8;
2
PND_S1S1_OUTPUTS[0]:=I_1_DI8;
3
PND_S1S1_OUTPUTS[1]:=CPX_STATUSBITS;
4
tempvar0:=PND_S1S1_INPUTS[0];
Line
Explanation
1
2
Send process data of the CPX−8DE module to the PLC via PROFINET.
Since PND_S1S1_OUTPUTS" is a byte array, access to byte 0 takes place via
PND_S1S1_OUTPUTS[0]"
3
Send CPX status bits to the PLC via PROFINET.
Access to byte 1 takes place via PND_S1S1_OUTPUTS[1]"
4
Receive process data of the ONBOARD_INPUTs of the ILC350 via PROFINET
Tab. 2/2:
Explanations on the above program example for the CPX−SF34/35
2−24
Communication program for the CPX−SF34/35
2. Create a program for communication in the project of
your CPX−SF34/35.
In the following program example,
the data to be transferred via PROFINET are copied into
the system variable PND_S1S1_OUTPUTS (here with the
example of a CPX−8DE module and the CPX status bits)
and
the data to be received via PROFINET from the system
variable PND_S1S1_INPUTS are read out.
The two above program examples permit communication
between the PLC (e.g. ILC350) and the CPX−SF34/35.
Supplement these programs with your automation
·
programs that use tempvar0" and tempvar1".
Festo P.BE−CPX−SF34+SF35−E N en 1007NH

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpx-sf35

Table of Contents