FB_AX2000_JogMode

FB_AX2000_JogMode 1:

Jogging

VAR_IN_OUT

VAR_IN_OUT
    stPZDIN         : ST_PZD_IN; 
    stPZDOUT        : ST_PZD_OUT;
END_VAR

stPZDIN : Data words from drive to PLC

stPZDOUT : Data words from PLC to drive

VAR_INPUT

VAR_INPUT
    bStart      : BOOL;
    bStop       : BOOL;
    iBasicVelo  : INT;      (*BasicVelocity*)
    tTimeOut    : TIME:=t#5s;
END_VAR

bStart : Start the jogmode

bStop : Stop the jog mode

iBasicVelo : Basic velocity, the real velocity conains of basic velocity and the factor "v-jogmode" of the drive.

tTimeOut : TimeOut

VAR_OUTPUT

VAR_OUTPUT
    bBusy       : BOOL;
    bErr        : BOOL;
    bTimeOutErr : BOOL;
END_VAR

bBusy : This output remains TRUE until the block has executed a command. While Busy = TRUE, no new command will be accepted at the inputs. Please note that it is not the execution of the service but its acceptance whose time is monitored.

bErr : This output displays the error state.

bTimeOutErr : TimeOut.

Requirements

Development Environment

Target System

IO Hardware

PLC Libraries to include

TwinCAT v2.8.0 Build > 737

PC (i386)

AX2000 Profibus box

TcIoFunctions.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib are included automatically )