Download Motion Control PMC

Transcript
14 Function library primo.lib
MoveConstantVelocity
PMCprimo-Command: VC (Move at constant velocity)
Function library: Positioning
Description:
This function block is used, to drive the motor with a constant velocity in the specified direction.
PMCprimo accelerates the motor with the acceleration value SetAcceleration (page 227), until it
has achieved the velocity determined with the function block SetVelocity (page 240). The motor
drives with constant velocity until to a stop signal is detected.
PMCprimo signals the command execution with the sign “V” at the serial interface. Move
commands can only be executed with a closed position control loop.
Illustration 23: Move with constant velocity
Input variables:
bExecute (BOOL)
usiNode (USINT)
usiChannel (USINT)
bDirection (BOOL)
The movement is started in case of a change from 0 to 1
0 resets the function block and the output variables
are set to False or 0
The node number in the linked system, 0 if only one unit or Host
The axle number from 1 to n (depending on the system)
The rotational direction 0: negative 1: positive
Output variables:
bDone (BOOL)
Movement started (True) or it is still under operation (False)
bError (BOOL)
True: an error has occurred; False: no error
iErrorNumber (INT) Indicates the exact error cause (see GetError page 203)
See also:
SetAcceleration, SetVelocity, SetSlowSpeedMode and SetSlowSpeed
Page 218
User Manual PMCprimo SoftPLC