AxisSetFeedEnableMinus

AxisSetFeedEnableMinus 1:

AxisSetFeedEnableMinus sets the feed enable signal for the reverse feed direction in nDeCtrlDWord in accordance with the bFeedEnableMinus input, and returns nDeCtrlDWord as the result of the function.

FUNCTION AxisSetFeedEnableMinus: DWORD

VAR_INPUT
    nDeCtrlDWord     : DWORD;
    bFeedEnableMinus : BOOL;
END_VAR

nDeCtrlDWord : Control-Word from the cyclic axis interface from the PLC to the NC

bFeedEnableMinus : 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 := AxisSetFeedEnableMinus(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