S7-1500T Getting Started with Kinematics
38 Getting Started, 12/2018, A5E46089528-AA
Create a program for automatic mode
9.1 Prepare function block
Adding blocks
1. Add a new function block with the name "ModeAutomatic" (SCL).
2. Add a new instance data block with the name "InstAutomatic".
Parameters in the function block "ModeAutomatic"
Create the following parameters in the "ModeAutomatic" function block.
Error ID (0 = no error, < 0 see constants)
Reference to the technology object
statStateAuto Int #STATE_-
Program status in automatic mode (see constants)
Motion to pickup position
Tags for starting the motion
instructions to the defined
positions
Motion to parking position 1
Motion to parking position 2
Motion to waiting position
Instances of the individual
motion control instructions
(see data type) for the kin-
ematics process
statInstMoveToTransi-
– Circular motion to the tran-
– Linear motion to the transi-
– Circular motion to the park-
– Circular motion to the park-
– Circular motion to the wait-
staInstGroupInterrupt MC_GROUPINTERRU
– Stopping motion execution
statInstGroupContinue MC_GROUPCONTIN
– Continue motion execution