Create program for manual mode
8.3 Controlling the axes
S7-1500T Getting Started with Kinematics
34 Getting Started, 12/2018, A5E46089528-AA
8.3 Controlling the axes
Creating blocks
1. Add a new function block with the name "CtrlSingleAxis" (SCL).
2. Add the following instance data blocks:
– "InstAxisA1"
– "InstAxisA2"
– "InstAxisA3"
Parameters in the CtrlSingleAxis function block
Create the following parameters in the "CtrlSingleAxis" function block.
axis TO_PositioningAxis – Reference to the technology object
Enable (1) or disable (0) axis using MC_Power
"StopMode" for "MC_Power"
Home position for "MC_Home"
operatingMode Int 0 Operating mode
0 = Starting
1 = Fault
2 = Manual mode
axisActualPos LReal 0.0 Current object position (from the technology object data
Error on the axis or in the motion control function
Axis and drive status display
Instances of the individual motion control instructions (see
data type) for enabling, resetting and homing the inter-
connected axes
statPowerErr Bool False Error in the motion control function