MLFB_Jog
Description
This function is defined to jog an axis in the selected direction at a defined speed. The En input (FFLD editor only) must be high. Typically wired to the rail. The AxisID selects the axis to jog. The JogPlus and JogMinus inputs select the direction the motion will occur in. Only one of these inputs should be enabled at a given time. If both are selected the motion will stop. If other motion is active when the jog is requested that motion will be aborted and the jog will start.
The following figure shows the function I/O
Figure 8-238: Kollmorgen UDFB Jog for PipeNetwork
Arguments
Input
En | Description | Enables execution (FFLD only ) |
Data type |
BOOL | |
Range | — | |
Unit | N/A | |
Default | — | |
AxisID | Description | ID Name of the Axis |
Data type |
DINT | |
Range | — | |
Unit | N/A | |
Default | — | |
JogPlus | Description | Enables a Jog in the plus direction |
Data type |
BOOL | |
Range | [0 , 1] | |
Unit | N/A | |
Default | — | |
JogMinus | Description | Enables a Jog in the Minus direction |
Data type |
BOOL | |
Range | [0 , 1] | |
Unit | N/A | |
Default | — | |
Speed | Description | Rate at which the axis will move |
Data type |
LREAL | |
Range | — | |
Unit | User unit/sec | |
Default | — |
Output
InMotion | Description | Jogging is active when TRUE |
Data type |
BOOL | |
Range | N/A |
Usage
This function is used to command motion in a designated direction at a defined rate. This may be used where continuous motion required as in a conveyor system, or in a setup mode for manually jogging the axis. Motion will start when the JogPlus or JogMinus input is true. It will stop when the input goes false. This function is used with the Pipe Network motion engine.
Related Functions
Example
Structured Text
//Jog Axis1 at 6000 user units a second when JogPlus or JogMinus variables are TRUE
//Stop motion on falling edge of either variable
MLFB_Jog( PipeNetwork.AXIS1, JogPlus, JogMinus, 6000 );
Ladder Diagram
Function Block Diagram