ItpSetZeroShiftNull
from library version 5.5
from TwinCAT V2.9, Build 1031
![]() | Outdated version The sole purpose of the function block is to ensure compatibility with existing projects. For new projects please use the function block ItpSetZeroShiftNullEx. |
FB ItpSetZeroShiftNull overwrites all zero shifts of the channel with zero.
Interface
VAR_INPUT
bExecute : BOOL;
nChnId : UDINT;
tTimeOut : TIME;
END_VAR
VAR_OUTPUT
bBusy : BOOL;
bErr : BOOL;
nErrId : UDINT;
END_VAR
Description
A rising edge at input bExecute overwrites all zero offset shifts of the NC channel with ID nChnId with zero.
The bBusy output remains TRUE until the function block has executed the command, with the maximum duration specified by the time associated with 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.
See also:
Requirements
Development environment |
Target system type |
PLC libraries to be linked |
---|---|---|
TwinCAT v2.7.0 |
PC (i386) |
not implemented |
TwinCAT v2.8.0 |
PC (i386) |
TcNci.lib |