ItpStartStop
![]() | Outdated version The sole purpose of the function block is to ensure compatibility with existing projects. For new projects please use the function block ItpStartStopEx. |
Interface
VAR_INPUT
bStart : BOOL;
bStop : BOOL;
nChnId : UDINT;
tTimeOut : TIME;
END_VAR
VAR_OUTPUT
bBusy : BOOL;
bErr : BOOL;
nErrId : UDINT;
END_VAR
Description
The ItpStartStop function block starts the NC channel whose ID is passed to the nChnId input when a positive edge is applied to the bStart input. 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.
Requirements
Development Environment |
Target System |
PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 |
PC (i386) |
TcNciItp.lib |
TwinCAT v2.8.0 |
PC (i386) |
TcNci.lib |