ItpConfirmHsk

from library version 4.0

ItpConfirmHsk 1:

The ItpConfirmHsk function block confirms the currently present M-function.

If the channel override is set to 0 or an E-stop is active, no M-functions are acknowledged during this time. The busy signal of ItpConfirmHsk therefore remains active and must continue to be called.

Interface

VAR_INPUT
bExecute  : BOOL;
END_VAR
VAR_IN_OUT
sNciToPlc : NciChannelToPlc;
sPlcToNci : NciChannelFromPlc;
END_VAR

NciChannelToPlc
NciChannelFromPlc

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

Parameter

Input

Data type

Description

bExecute

BOOL

The command is triggered by a rising edge at this input.

Input & output

Data type

Description

sNciToPlc

NciChannelToPlc

The structure of the cyclic channel interface from the NCI to the PLC. This structure is only accessed for reading.

sPlcToNci

NciChannelFromPlc

The structure of the cyclic channel interface from the PLC to the NCI.

Output

Data type

Description

bBusy

BOOL

This output remains TRUE for as long as the request bit of the M-function is set to FALSE in the channel interface.

bErr

BOOL

This output is switched to TRUE as soon as an error occurs during the execution of a command. The command-specific error code is contained in ‘nErrId’. Is reset to FALSE by the execution of a command at the inputs.

nErrId

UDINT

Contains the command-specific error code of the most recently executed command. Is reset to 0 by the execution of a command at the inputs. The error numbers in ErrId can be looked up in the ADS error documentation or in the NC error documentation (error codes above 0x4000).

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