3. Assign the following parameters for the sample project. In particular, consider the
two conversion factors FactorPosition and FactorVelocity:
ð
CALL FB "VMC_AxisControl_PT" , "DI_AxisControl_PT"
S_ChannelNumberPWM := 0
S_Ready := E 136.0
S_Alarm := E 136.2
FactorPosition := 1024.0
FactorVelocity := 976.5625
AxisEnable := M 100.1
AxisReset := M 100.2
StopExecute := M 100.3
MvVelocityExecute := M 100.4
MvRelativeExecute := M 100.5
JogPositive := M 100.6
JogNegative := M 100.7
PositionDistance := MD 102
Velocity := MD 106
S_On := A 136.7
S_Direction := A 136.2
S_AlarmReset := A 136.6
MinUserDistance := MD 110
MaxUserDistance := MD 114
MinUserVelocity := MD 118
MaxUserVelocity := MD 122
AxisReady := M 101.3
AxisEnabled := M 101.4
AxisError := M 101.5
AxisErrorID := MW 126
DriveError := M 101.6
CmdActive := MB 128
CmdDone := M 130.0
CmdBusy := M 130.1
CmdAborted := M 130.2
CmdError := M 130.3
CmdErrorID := MW 132
The addresses of S_Ready and S_Alarm are derived from the addresses of the
inputs which are connected to the drive's digital outputs. These can be deter-
mined via the sub module ‘DI24/DO16’ of the CPU.
The addresses of S_On, S_Direction and S_AlarmReset are obtained from the
addresses of the outputs which are connected to the digital inputs of the drive.
These can be determined via the sub module ‘DI24/DO16’ of the CPU.
1.
Select ‘Edit è Compile’ and transfer the project into your CPU. You can find more
information on the transfer of your project in the online help of the Siemens TIA
Portal.
ð
You can take your application into operation now.
CAUTION!
Please always observe the safety instructions for your drive,
especially during commissioning!
2. Bring your CPU into RUN and turn on your drive.
ð
The FB 875 - VMC_AxisControl_PT is executed cyclically.
3. As soon as AxisReady = TRUE, you can use AxisEnable to enable the drive.
Sequence of operations
VIPA SPEED7
Motion control - Simple Motion Control Library
Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal
HB00 | OPL_SP7 | Operation list | en | 18-30 422