At a Glance

The SEND_REQ function is used to code and send all UNI-TE and Modbus/Jbus requests, as well as receive the associated responses.

In certain cases (reading of word tables for example) it is necessary to resequence the objects received by using the ROR1_ARB function (shift of a byte in a table).

Example

Objects to read:

16#0201

16#0403

16#0605

16#0807

16#0A09

Reception table after execution of a SEND_REQ (read object):

%MW100=16#0107

%MW101=16#0302

%MW102=16#0504

%MW103=16#0706

%MW104=16#0908

%MW105=16#000A

Reception table after a ROR1_ARB(%MW100:6):

%MW100=16#0201

%MW101=16#0403

%MW102=16#0605

%MW103=16#0807

%MW104=16#0A09

%MW105=16#0700