
Assigning data array
parameters
17
10/00 AWB27-1301-GB
Universal function block for the secondary station:
Within a telecontrol line (primary station and all secondary
stations) all instances of offset address and subaddress must
be identical. We recommend that you start by setting the
function block for the secondary station and then use this
function block for all the outstations in the same line.
Please note that all the stations in a telecontrol line must
have the same data array size.
VAR_INPUT
acd_subaddress :
USINT(0..0)
;
Subaddress of the ACD data
acd_offset : USINT(0..19) ;
Offset address of the ACD data
acd_length : USINT(1..20) ;
User data length for ACD data
fixed_length : USINT(1..20) ;
User data length for fixed-length
frames
tra_dat: ARRAY[0..0, 0..19] OF BYTE ;
Send data array
(subaddresses, offset addresses)
END_VAR
VAR_OUTPUT
rec_dat: ARRAY[0..0, 0..19] OF BYTE ;
Receive data array
(subaddresses, offset addresses)
END_VAR
VAR_CONSTANT
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 ...