
Data Arrays
16
10/00 AWB27-1301-GB
Universal function block for the primary station:
VAR_INPUT
requested_station : USINT(1..x) ;
Secondary station (x = station number
according to the selected function block)
subaddress : USINT(0..0) ;
Subaddress
source_offset : USINT(0..19) ;
Source offset address
destination_offset : USINT(0..19) ;
Destination offset address
variable_length : USINT(1..20) ;
User data length for variable length
frames
fixed_length : USINT(1..20) ;
User data length for fixed length frames
tra_dat: ARRAY[1..x, 0..0, 0..19] OF BYTE ;
Send data array (x = number of stations
according to the selected function block,
subaddresses, offset addresses)
END_VAR
VAR_OUTPUT
rec_dat : ARRAY[1..x, 0..0, 0..19] OF BYTE;
Receive data array (x = station number
according to the selected function block,
subaddresses, offset addresses)
user_status : ARRAY [1..x, 1..4] OF BOOL;
Status bit
END_VAR
VAR_CONSTANT
dfn_max: UINT: = x;
x = Number of secondary stations
tra_dfl_max : USINT:=20;
rec_dfl_max : USINT:=20;
Maximum data array length restriction
for send and receive data
tra_sub_max : USINT:=0;
rec_sub_max : USINT:=0;
Highest subaddress for send and receive
data
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 ...