ItpSetZeroShiftNullEx

from library version 6.1.21 and TwinCAT version 2.10 Build 1304

ItpSetZeroShiftNullEx 1:

The function block ItpSetZeroShiftNullEx overwrites all zero shifts of the channel with zero.

Interface

VAR_INPUT
bExecute       : BOOL;
tTimeOut       : TIME;
END_VAR
VAR_IN_OUT
sNciToPlc      : NciChannelToPlc;
END_VAR

NciChannelToPlc

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

Description

A rising edge at input bExecute results in overwriting of all zero offset shifts of the NC channel 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 include

TwinCAT v2.10.0

PC (i386)

TcNci.lib