Festo CPX-SF34 Manual page 55

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

Advertisement

2. Commissioning
ST
1
tempvar0:=NewVar1[0];
2
tempvar1:=NewVar1[1];
3
NewVar2[0]:=WORD_TO_BYTE(ONBOARD_INPUT);
Line
Explanation
1
Process data received by the CPX−SF34/35 via PROFINET.
The data received via PROFINET by the CPX−SF34/35 were assigned to the variable
NewVar1" (see fig. 2/12). Since NewVar1" is a byte array, access to byte 0 takes
place via NewVar1[0]". Located here, in the case of a successful PROFINET connection,
are the data that were copied in the CPX−SF34/35 project into the byte 0 in the system
variable PND_S1S1_OUTPUTS.
2
CPX status bits received by the CPX−SF34/35 via PROFINET.
3
Transfer of the ONBOARD_INPUTs via PROFINET to the CPX−SF34/35.
Correspondingly reversed to line 1, the following applies for the variable NewVar2":
Through this variable, data are sent from the PLC to the CPX−SF34/35 and are received
from it in the system variable PND_S1S1_INPUTS.
Tab. 2/1:
Explanations on the above program example for the PLC
Festo P.BE−CPX−SF34+SF35−E N en 1007NH
Programs for communication
In the last two sections, you generated variables and
assigned them to the process data in the PC WORX project of
the CPX−SF34/35. Now, in both the project of your PLC and in
the project of the CPX−SF34/35, create programs that ensure
communication between the two.
Communication program for the PLC
1. Create a program for communication in the project of
your PLC (e.g. ILC350). The following program example
uses the ST language.
2−23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpx-sf35

Table of Contents