WordAt

 

Description

Returns the Word (16 bit unsigned integer) at given location in an user buffer or in the PDU.DATA buffer.

Declaration

word WordAt(void *Buffer, int Index);

word WordAt(int Index);

 

 

Parameters

 

Type

Dir.

 

Buffer

Pointer

In

Pointer to an user buffer

Index

int

In

Start byte

 

Example

MyWord=S7.WordAt(&MyBuffer, 140);