![Moeller S40-AM-TL Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/moeller/s40-am-tl/s40-am-tl_manual_1819282026.webp)
Working with data arrays
23
10/00 AWB27-1301-GB
Reading data array elements
The content of the station “2”, subaddress “0” and offset
address “3” array element of the receive data array is stored
under the variable “VALUE_1”.
Accessing data arrays with fixed length frames
When data is transmitted using fixed length frames, only the
data array range for subaddress “0” is defined. The data is
read and written under the parameter “fixed_length”,
starting with “source_offset” = 0 up to the maximum
length.
Accessing data arrays with variable length frames
All the elements of the data array can be accessed with
variable length frames. The subaddress “subaddress”, offset
address “source_offset” and/or “destination_offset” and
user data length “variable_length” function block inputs
can be used to access any elements of a subaddress, from
one byte up to the entire data array length.
VAR
VALUE_1 : USINT ;
END_VAR
.
.
LD
Instance_name.rec_dat [2,0,3]
BYTE_TO_USINT
ST
VALUE_1
.
.
END_PROGRAM
Содержание S40-AM-TL
Страница 7: ...10 00 AWB27 1301 GB 4 ...
Страница 9: ...6 10 00 AWB27 1301 GB ...
Страница 13: ...10 10 00 AWB27 1301 GB ...
Страница 55: ...Basic Function Blocks 52 10 00 AWB27 1301 GB ...
Страница 103: ...100 10 00 AWB27 1301 GB ...
Страница 107: ...104 10 00 AWB27 1301 GB ...
Страница 113: ...10 00 AWB27 1301 GB 110 ...