Controlling The Axes - Siemens SIMATIC S7-1500T Getting Started

Kinematics
Hide thumbs Also See for SIMATIC S7-1500T:
Table of Contents

Advertisement

Create program for manual mode

8.3 Controlling the axes

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
Input
axis
cmdPowerOn
pwrOffMode
cmdAcknErr
cmdHome
homePosition
operatingMode
Output
axisActualPos
summaryError
systemState
Static
statMcPower
statMcReset
statMcHome
statPowerErr
statResetErr
statHomeErr
34
Data type
Default
value
TO_PositioningAxis
Bool
False
Int
0
Bool
False
Bool
False
LReal
0.0
Int
0
LReal
0.0
Bool
False
"typeSystemStatus"
MC_POWER
MC_RESET
MC_HOME
Bool
False
Bool
False
Bool
False
Comment
Reference to the technology object
Enable (1) or disable (0) axis using MC_Power
"StopMode" for "MC_Power"
Run "MC_Reset"
Run "MC_Home"
Home position for "MC_Home"
Operating mode
0 = Starting
1 = Fault
2 = Manual mode
3 = Automatic mode
Current object position (from the technology object data
block)
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
Error in the motion control function
S7-1500T Getting Started with Kinematics
Getting Started, 12/2018, A5E46089528-AA

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500

Table of Contents