EasyManua.ls Logo

Siemens SIMATIC S7-1500T - Controlling the Axes

Siemens SIMATIC S7-1500T
66 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
Name
Data type
Default
value
Comment
Input
axis TO_PositioningAxis Reference to the technology object
cmdPowerOn
Bool
False
Enable (1) or disable (0) axis using MC_Power
pwrOffMode
Int
0
"StopMode" for "MC_Power"
cmdAcknErr
Bool
False
Run "MC_Reset"
cmdHome
Bool
False
Run "MC_Home"
homePosition
LReal
0.0
Home position for "MC_Home"
operatingMode Int 0 Operating mode
0 = Starting
1 = Fault
2 = Manual mode
3 = Automatic mode
Output
axisActualPos LReal 0.0 Current object position (from the technology object data
block)
summaryError
Bool
False
Error on the axis or in the motion control function
systemState
"typeSystemStatus"
Axis and drive status display
Static
statMcPower
MC_POWER
Instances of the individual motion control instructions (see
data type) for enabling, resetting and homing the inter-
connected axes
statMcReset
MC_RESET
statMcHome
MC_HOME
statPowerErr Bool False Error in the motion control function
statResetErr
Bool
False
statHomeErr
Bool
False

Other manuals for Siemens SIMATIC S7-1500T

Related product manuals