FB_AX2000_AXACT
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
iVelocity : DWORD; (*Velocity*)
iPosition : DINT; (*Position*)
imotion_tasknumber : WORD; (*number of EEPROM-saved motion-task*)
imotion_blocktype : WORD; (*optional Parameters of motion tasks*)
bStart : BOOL; (*START*)
bStop : BOOL; (*STOP*)
bShortStop : BOOL; (*1: break of motion task, 0: continue same motion task*)
bErrorResume : BOOL; (*Error resume*)
tTimeOut : TIME:=t#5s;
END_VAR
iVelocity : The parameter contains the required transport speed for a following transport instruction, e.g. µm/s.
iPosition: Target position in physical magnitudes, e.g. µm, degrees
imotion_tasknumber : Travel block number. This input can be used to select a travel block that has previously been stored in the drive's memory.
imotion_blocktype: Travel block type (optional). This input can be used to modify properties of a direct travel command.
bStart: A rising edge at this boolean input sends a start command to the axis.
bStop : A rising edge at this boolean input sends a stop command to the axis. The axis stops and enters the "disabled" state.
bShortStop : A rising edge at this boolean input sends a stop command to the axis. The axis stops but remains in the "enabled" state.
bErrorResume : A rising edge at this boolean input resets an "AX200X error" (not a time-out error).
tTimeOut: Maximum time out period.
VAR_OUTPUT
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL; (*Errorstatus of Servo*)
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 ) |