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 ‘Project tree è ...CPU... è PLC program è Program blocks’ the OB 1 and
program the Call FB 885, DB 885.
ð
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.
ð
CALL FB "VMC_AxisControlV1000PWM" ,
"VMC_AxisCtrlV1000PWM_885"
I_ChannelNumberPWM :="Ax1_I_ChannelNumberPWM"
I_MA_Alarm :="Ax1_MA_Alarm"
I_P1_Ready :="I_P1_Ready"
MaxVelocityDrive :=1.000000e+002
AxisEnable :="Ax1_AxisEnable"
AxisReset :="Ax1_AxisReset"
StopExecute :="Ax1_StopExecute"
MvVelocityExecute :="Ax1_MvVelExecute"
JogPositive :="Ax1_JogPositive"
JogNegative :="Ax1_JogNegative"
Velocity :="Ax1_Velocity"
I_S1_ForwardRun :="Ax1_S1_ForwardRun"
I_S2_ReverseRun :="Ax1_S2_ReverseRun"
I_S4_AlarmReset :="Ax1_S4_AlarmReset"
MinUserVelocity :="Ax1_MinUserVelocity"
MaxUserVelocity :="Ax1_MaxUserVelocity"
AxisReady :="Ax1_AxisReady"
AxisEnabled :="Ax1_AxisEnabled"
AxisError :="Ax1_AxisError"
AxisErrorID :="Ax1_AxisErrorID"
DriveError :="Ax1_DriveError"
CmdActive :="Ax1_CmdActive"
CmdDone :="Ax1_CmdDone"
CmdBusy :="Ax1_CmdBusy"
CmdAborted :="Ax1_CmdAborted"
CmdError :="Ax1_CmdError"
CmdErrorID :="Ax1_CmdErrorID"
The addresses of I_P1_Ready and I_MA_Alarm are derived from the addresses
of the inputs which are connected to the digital outputs of the drive. These can
be determined via the sub module ‘-X25 DI/DIO’ of the CPU.
The addresses of I_S1_ForwardRun, I_S2_ReverseRun and I_S4_AlarmReset
are obtained from the addresses of the outputs which are connected to the dig-
ital 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 inverter drive via PWM > Usage in VIPA SPEED7 Studio
HB00 | OPL_SP7 | Operation list | en | 18-30 437