31
Step 5: Creating the variables and shortcuts to the hardware
HINTS:
The number of the required variables depends on your application. These varia-
bles shown here are just an example how to do it. For more details see again:
Beckhoff TwinCAT:
(
Beckhoff Infosys under TwinCAT 2/TwinCAT System Manager/Operation/Variables
)
Picture 19 (Adding variables)
Click with the right mouse button on the Task
PROFINET
and right-click then on
Outputs
. Select
Add variables
to add a new output variable: in this case we cre-
ate a new byte variable (8 bits) to control the solenoids
09-16
. A byte variable for
solenoid
01-08
had been created already. It is named
OUT 01-08
.
IMPORTANT:
You need 2 bytes of outputs to control up to 8 Valves
You need 4 bytes of outputs to control up to 16 Valves
You need 6 bytes of outputs to control up to 24 Valves
An odd number off bytes is not allowed!!
The variables in the task PROFINET must match the setup of your PROFINET
Outputs
Add variables
Содержание RE-46
Страница 6: ...6...