AxisSetAcceptBlockedDriveSignal
AxisSetAcceptBlockedDriveSignal sets a signal in nDeCtrlDWord that allows the NC controller to move an axis off from a hardware limit switch although the drive does not signal its ready state. This function is hardware dependent.
FUNCTION AxisSetAcceptBlockedDriveSignal: DWORD
VAR_INPUT
nDeCtrlDWord : DWORD;
bEnable : BOOL;
END_VAR
nDeCtrlDWord : Control-Word from the cyclic axis interface from the PLC to the NC
bEnable : Signal requiring to be set [FALSE,TRUE]
Function result: nDeCtrlDWord
Example
PROGRAM MAIN
VAR
PlcToNc1 AT %QB1000 : PLCTONC_AXLESTRUCT;
NcToPlc1 AT %IB1000 : NCTOPLC_AXLESTRUCT;
END_VAR
PlcToNc1.nDeCtrlDWord := AxisSetAcceptBlockedDriveSignal(PlcToNc1.nDeCtrlDWord, TRUE );
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.10 from build 1313 | PC (i386) | TcNC.Lib |