Professional Documents
Culture Documents
FB 875 - VMC - AxisControl - PT - Axis Control Via Pulse Train
FB 875 - VMC - AxisControl - PT - Axis Control Via Pulse Train
Motion control - Simple Motion Control Library > Usage Sigma-5/7 Pulse Train > Drive specific block > FB 875 - VMC_AxisControl_PT - Axis control via Pulse Train
• Description
• Conversion factors
• Functionality
Motion control - Simple Motion Control Library > Usage Sigma-5/7 Pulse Train > Drive specific block > FB 875 - VMC_AxisControl_PT - Axis control via Pulse Train >
Description
Description
With the FB VMC_AxisControl_PT you can control axis, which are connected via Pulse Train. You can check the status of the drive, turn the drive on or off, or execute
various motion commands. A separate memory area is located in the instance data of the block. You can control your axis by means of an HMI. ⇘ ‘Controlling the drive via
HMI’
The control of a pulse train drive happens exclusively with the FB 875 VMC_AxisControl_PT. PLCopen blocks are not supported!
Parameter
S_ChannelNumberPWM INPUT INT Channel number of the PWM output, which is used for the control of the Pulse Train input of the
servo (signal PULS).
FactorPosition INPUT REAL Factor for converting the position of user units into drive units (increments) and back. ⇘
‘FactorPosition’
FactorVelocity INPUT REAL Factor for converting the velocity of user units into drive units (increments) and back. ⇘
‘FactorVelocity’
• Enable/disable axis
AxisEnable INPUT BOOL ◦ TRUE: The axis is enabled.
◦ FALSE: The axis is disabled.
• Reset axis
AxisReset INPUT BOOL ◦ Edge 0-1: Axis reset is performed.
◦ The status of a reset, started with AxisReset, is not indicated at the outputs
CmdActive, CmdDone, CmdBusy, CmdAborted, CmdError and CmdErrorID.
• Stop axis
StopExecute INPUT BOOL ◦ Edge 0-1: Stopping of the axis is started.
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024
Page 2 of 7
PositionDistance INPUT REAL Absolute position or relative distance for MvRelativeExecute in [user units].
Velocity INPUT REAL Velocity setting (signed value) in [user units / s].
MinUserDistance OUTPUT REAL Minimum drive distance (1 increment) of the servo [user units].
MinUserDistance OUTPUT REAL Maximum drive distance (8388607 increments = maximum number of pulses of the PWM
output) of the servo [user units].
MinUserVelocity OUTPUT REAL Minimum speed (period duration = 65535μs = maximum period of the PWM output) of the
servo [user units].
MinUserVelocity OUTPUT REAL Maximum speed (period duration = 20μs = minimum period duration of the PWM output) of the
servo [user units].
• AxisReady
AxisReady OUTPUT BOOL ◦ TRUE: The axis is ready to switch on.
◦ FALSE: The axis is not ready to switch on.
® Check and fix AxisError (see AxisErrorID).
® Check and fix DriveError.
• Status axis
AxisEnabled OUTPUT BOOL ◦ TRUE: Axis is switched on and accepts motion commands.
◦ FALSE: Axis is not switched on and does not accepts motion commands.
® The axis is locked (S_On = FALSE and AxisEnabled = FALSE). Command is not executed.
• Command
CmdActive OUTPUT BYTE ◦ 0: no Cmd active
◦ 1: STOP
◦ 2: MvVelocity
◦ 3: MvRelative
◦ 4: JogPos
◦ 5: JogNeg
• Status Done
CmdDone OUTPUT BOOL ◦ TRUE: Job ended without error.
• Status busy
CmdBusy OUTPUT BOOL
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024
Page 3 of 7
• Status Aborted
CmdAborted OUTPUT BOOL ◦ TRUE: The job was aborted during processing by another job.
• Status Error
CmdError OUTPUT BOOL ◦ TRUE: An error has occurred. The axis is disabled
Motion control - Simple Motion Control Library > Usage Sigma-5/7 Pulse Train > Drive specific block > FB 875 - VMC_AxisControl_PT - Axis control via Pulse Train >
Conversion factors
Conversion factors
FactorPosition
The calculation of FactorPosition is only valid if servo parameter Reference Pulse Multiplier (Pn218) = 1.
FactorPosition
Factor for converting the position of user units into drive units (increments) and back.
Resolution
Number of increments per user unit
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Denominator
Denominator: Electronic Gear Ratio (Pn210) of the servo parameter
FactorPosition
Factor for converting the position of user units into drive units (increments) and back.
Resolution
Number of increments per user unit
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Numerator = 1024
Denominator
Denominator: Electronic Gear Ratio (Pn210) of the servo parameter
Denominator = 1
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024
Page 4 of 7
MinPos
Minimum distance in rotations
Resolution
Number of increments per user unit
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Numerator = 1024
Period
Minimum period
Period = 1
MaxPos
Maximum distance in revolutions
Resolution
Number of increments per user unit
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Numerator = 1024
Period
Maximum period
Period = 8388607
FactorVelocity
The calculation of FactorVelocity is only valid if servo parameter Reference Pulse Multiplier (Pn218) = 1.
Time
Time for 1 revolution in μs
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Denominator
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024
Page 5 of 7
Resolution
Number of increments per user unit
FactorVelocity
Factor for converting of user units into drive units (increments) and back.
Time
Time for 1 revolution in μs
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Numerator = 1024
Denominator
Denominator: Electronic Gear Ratio (Pn210) of the servo parameter
Denominator = 1
Resolution
Number of increments per user unit
FactorVelocity
Factor for converting of user units into drive units (increments) and back.
Time
Time for 1 revolution in μs
Time = 1s = 106µs
Numerator
Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter
Numerator = 1024
Denominator
Denominator: Electronic Gear Ratio (Pn210) of the servo parameter
Denominator = 1
Resolution
Number of increments per user unit
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024
Page 6 of 7
MinVel
Minimum velocity in revolutions/min
FactorVelocity
Factor for converting of user units into drive units (increments) and back.
MaxVel
Maximum velocity in revolutions/min
FactorVelocity
Factor for converting of user units into drive units (increments) and back.
Motion control - Simple Motion Control Library > Usage Sigma-5/7 Pulse Train > Drive specific block > FB 875 - VMC_AxisControl_PT - Axis control via Pulse Train >
Functionality
Functionality
Please note that you always have to call the block within OB 1, otherwise you will get the error message 0x8317.
The command processing can be divided into 3 phases. Depending on the operating mode, the outputs CmdActive, CmdDone and CmdBusy show the following behavior
within these phases:
Stop axis
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024
Page 7 of 7
Relative positioning
Jog mode
• Phase 1: The command is started with edge 0-1 at JogPositive respectively JogNegative.
◦ CmdActive = 4 respectively 5, CmdDone = FALSE, CmdBusy = TRUE
• Phase 2: The preset velocity was reached, JogPositive = TRUE respectively JogNegative = TRUE.
◦ Command is still active, axis is only stopped with JogPositive = FALSE respectively JogNegative = FALSE.
◦ CmdActive = 4 respectively 5, CmdDone = TRUE, CmdBusy = FALSE
• Phase 3: JogPositive = FALSE respectively JogNegative = FALSE
◦ Axis stands still and is ready for further commands.
◦ CmdActive = 0, CmdDone = FALSE, CmdBusy = FALSE
Due to the system the current velocity may deviate from the setpoint velocity. The deviation MaxVelError increases with increasing velocity
and can be determined with the following formula.
Jog mode
Please note that you receive an error message (0x8003) in jog mode at Velocity = 0!
file:///C:/Users/Manuel%20Umaña/AppData/Local/Temp/~hh116.htm 26/4/2024