AxisSetFeedEnablePlus
AxisSetFeedEnablePlus sets the feed enable signal for the forward feed direction in nDeCtrlDWord in accordance with the bFeedEnablePlus input, and returns nDeCtrlDWord as the result of the function.
FUNCTION AxisSetFeedEnablePlus: DWORD
VAR_INPUT
nDeCtrlDWord : DWORD;
bFeedEnablePlus : BOOL;
END_VAR
nDeCtrlDWord : Control-Word from the cyclic axis interface from the PLC to the NC
bFeedEnablePlus : Feed enable 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 := AxisSetFeedEnablePlus(PlcToNc1.nDeCtrlDWord, TRUE );
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 | PC (i386) | TcNcUtilities.Lib |
TwinCAT v2.8.0 | PC (i386) | TcNC.Lib |