![Moeller S40-AM-TL Manual Download Page 50](http://html1.mh-extra.com/html/moeller/s40-am-tl/s40-am-tl_manual_1819282050.webp)
Example of basic function
block
47
10/00 AWB27-1301-GB
Primary station (PS416)
Variable declaration “TCMT2_BS”
VAR_INPUT
fixed_length
: USINT(1..8);
User data length for fixed length
frames
tra_dat
: ARRAY[1..2, 0..7] OF BYTE;
Send data array (station number, data
array length)
END_VAR
VAR_OUTPUT
rec_dat
: ARRAY[1..2, 0..7] OF BYTE;
Receive data array (station number,
data array length)
END_VAR
VAR CONSTANT
dfn_max
: UINT:=2;
Number of secondary stations
tra_dfl_max
: UINT:=8;
Transmit length of data array
rec_dfl_max
: UINT:=8;
Receive length of data array
system_time
: TIME:=T#500ms;
System time
repeat_time
: TIME:=T#50ms;
Repeat time after job end
start_delay
: TIME:=T#2000ms;
Start delay with autostart
rts_delay_on
: TIME:=T#10ms;
RTS on-delay
rts_delay_off
: TIME:=T#30ms;
RTS off-delay
cts_time
: TIME:=T#500ms;
CTS timeout
tel_repeat
: USINT:=3;
Frame repeated in the event of an error
END_VAR
Summary of Contents for S40-AM-TL
Page 7: ...10 00 AWB27 1301 GB 4 ...
Page 9: ...6 10 00 AWB27 1301 GB ...
Page 13: ...10 10 00 AWB27 1301 GB ...
Page 55: ...Basic Function Blocks 52 10 00 AWB27 1301 GB ...
Page 103: ...100 10 00 AWB27 1301 GB ...
Page 107: ...104 10 00 AWB27 1301 GB ...
Page 113: ...10 00 AWB27 1301 GB 110 ...