If you are using a channel other than channel 0, you must adapt it in the hardware config-
uration and in your user program.
1. Open in the Project tree within the CPU at ‘PLC program’ , ‘Programming blocks’
the OB 1 and program the Call FB 875, DB 875.
ð
The dialog ‘Add instance data block’ opens.
2. Set the number for the instance data block, if not already done, and close the dialog
with [OK].
ð
The block call is created and the parameters are listed
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 ‘-X25 DI/DIO’ 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 ‘-X25 DI/DIO’ of the CPU.
OB 1
Configuration of the axis
VIPA SPEED7
Motion control - Simple Motion Control Library
Usage Sigma-5/7 Pulse Train > Usage in VIPA SPEED7 Studio
HB00 | OPL_SP7 | Operation list | en | 18-30 411