ItpStartStopEx

from library version 6.1.21 and TwinCAT version 2.10 Build 1304

ItpStartStopEx 1:

Description

The function block ItpStartStopEx starts the NC channel, if a positive edge is applied at input bStart. On a positive edge at the bStop input, the NC channel is stopped. The bStop input has a higher priority than the bStart input, i.e. if both inputs have a positive edge, a channel stop is executed.
With a stop command, all tables in the NC are deleted and the axes are stopped in a controlled manner.

The bBusy output remains TRUE until the function block has executed a command, although only for as long as the time specified at the tTimeOut input. While bBusy = TRUE no new command is accepted at the inputs.
The output bErr is switched to TRUE if an error occurred during the execution of the command. The command-specific error code is contained in nErrId. The outputs are reset by carrying out a command at the inputs.

Interface

VAR_INPUT
bStart         : BOOL;
bStop          : BOOL;
tTimeOut       : TIME;
END_VAR
VAR_IN_OUT
sNciToPlc      : NciChannelToPlc;
END_VAR

NciChannelToPlc

VAR_OUTPUT
bBusy          : BOOL;
bErr           : BOOL;
nErrId         : UDINT;
END_VAR

Requirements

Development Environment

Target System Type

PLC Libraries to include

TwinCAT v2.10.0

PC (i386)

TcNci.lib