The ROR1_ARB function is used to perform a rotation shift to the right of a byte in a PL7 byte table. Using Control Expert, the PL7 byte tables have become character strings. This is therefore the rotation shift of a byte to the right in a character string.
The additional parameters and can be configured.
Representation:
Representation:
Representation:
LD String1
ROR1_ARB
Representation:
ROR1_ARB(String1);
The following table describes the input/output parameters:
Parameter
|
Type
|
Comment
|
String1
|
|
Character string whose bytes are to be moved.
Caution: this parameter is an input/output. Each time this instruction occurs, the character string will therefore be moved by one byte.
|
NOTE: This function is necessary to process certain communication requests, such as the SEND_REQ function, which introduces an additional byte at the beginning of the response.
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