Sends and Receives Commands

<< Click to Display Table of Contents >>

 

Sends and Receives Commands

Reading and Writing

 

N1

0 (zero)

N2

Command's index

N3

Variable's index

N4

Offset of RX message

 

Used to perform a full transaction with a device, sending a TX request packet and receiving an RX response packet.

If used on a reading command, returns the variable fields from a response message, one for each Block Element, if applicable, starting with the index of the variable informed in the N3 parameter. For example, if the 20 command demands a response of type ABC=%d and XYZ=%f when reading a Block Tag with two Elements in the 0.20.0.0 configuration, the first Element contains the first variable field (decimal) and the second Element contains the second variable field (real number).

Use the N4 parameter so that the command analyzes the response frame with an offset relative to the first character of the message. For example, to discard the first 100 bytes of a message, configure the N4 parameter as 100.

Was this page useful?