![Moeller S40-AM-TL Скачать руководство пользователя страница 23](http://html1.mh-extra.com/html/moeller/s40-am-tl/s40-am-tl_manual_1819282023.webp)
Data Arrays
20
10/00 AWB27-1301-GB
Example
5 secondary stations are connected to a primary station via
point-to-point modems. You now want to create a data
array with 1 subaddress and 32 offset addresses. To do this,
you must make the following settings in the variable
declarations for the primary and secondary stations:
Primary_station
For the parameters listed above, the primary station needs
320 bytes of memory.
VAR_INPUT
requested_station
: USINT(1..5);
subaddress
: USINT(0..0);
source_offset
: USINT(0..31);
destination_offset : USINT(0..31);
variable_length
: USINT(1..32);
fixed_length
: USINT(1..32);
tra_dat: ARRAY[1..5, 0..0, 0..31] OF BYTE;
(*Send data array (station number,
subaddresses, offset addresses)*)
END_VAR
VAR_OUTPUT
rec_dat: ARRAY[1..5, 0..0, 0..31] OF BYTE;
(*Receive data array (station number,
subaddresses, offset addresses)*)
END_VAR
VAR_CONSTANT
dfn_max
: UINT:=5;
tra_dfl_max
: USINT:=32;
rec_dfl_max
: USINT:=32;
tra_sub_max
: USINT:=0;
rec_sub_max
: USINT:=0;
END_VAR
Содержание 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 ...