READ_UINT16

READ_UINT16 1:

Reads a UINT16 parameter of the IO-Link device and switches the bytes to high endian.

READ_UINT16 2:Inputs

Name

Type

Description

nIndex

WORD

Index of the IO-Link parameter

0 for the entire structure

nSubindex

BYTE

Subindex of the IO-Link parameter

0 for the entire structure

pData

PVOID

Address of the buffer that is to receive the read data. The programmer himself is responsible for dimensioning the buffer to a size that can hold LEN bytes. The buffer can be a single variable, an array or a structure, whose address can be found with the ADR operator.

READ_UINT16 3:Outputs

Name

Type

Description

Read_Uint16

HRESULT

Return value

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.25

Tc3_IoLink from v3.3.4.0