AxisSetControllerEnable
AxisSetControllerEnable sets the controller enable signal in nDeCtrlDWord in accordance with the bControllerEnable input, and returns nDeCtrlDWord as the result of the function.
FUNCTION AxisSetControllerEnable : DWORD
VAR_INPUT
nDeCtrlDWord : DWORD;
bControlerEnable : BOOL;
END_VAR
nDeCtrlDWord : Control-Word from the cyclic axis interface from the PLC to the NC
bControllerEnable : Controller 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
(* set controller enable signal *)
PlcToNc1.nDeCtrlDWord := AxisSetControllerEnable( 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 |