![Moeller S40-AM-TD Manual Download Page 25](http://html1.mh-extra.com/html/moeller/s40-am-td/s40-am-td_manual_1819281025.webp)
Data Arrays of the
Function Blocks
22
02/02 AWB27-1300-GB
Reading data array elements (in the user program)
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”.
Data array access
for 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 “tra_source_offset” = 0 up to the maximum
length.
Data array access for variable length frames
All the elements of the data array can be accessed with
variable length frames. The subaddress “tra_ subaddress”,
offset address “tra_source_offset” and/or
“tra_destination_offset” and user data length
“tra_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
Summary of Contents for S40-AM-TD
Page 7: ...4 02 02 AWB27 1300 GB ...
Page 11: ...8 02 02 AWB27 1300 GB ...
Page 27: ...24 02 02 AWB27 1300 GB ...
Page 77: ...74 02 02 AWB27 1300 GB ...