ItpIsHskMFunc
The function ItpIsHskMFunc determines whether an M-function of type handshake is present.
/ Inputs/Outputs
VAR_IN_OUT
sNciToPlc : NCTOPLC_NCICHANNEL_REF;
END_VAR
Name | Type | Description |
---|---|---|
sNciToPlc | NCTOPLC_NCICHANNEL_REF | The structure of the cyclic channel interface from the NCI to the PLC. This structure is read-only (type: NCTOPLC_NCICHANNEL_REF). |
Return value
Name | Type | Description |
---|---|---|
ItpIsHskMFunc | BOOL | The function returns TRUE if an M-function of type handshake is present. |
ItpIsHskFunc evaluates the variable 'nHskMFuncReq' from the cyclic interface. |
Example
VAR
bMFuncRequest : BOOL;
sNciToPlc AT%I* : NCTOPLC_NCICHANNEL_REF;
END_VAR
bMFuncRequest := ItpIsHskMFunc( sNciToPlc );
Requirements
Development environment |
Target platform |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86 or x64) |
Tc2_NCI |