3.4 TSB file : Create a Send Sequence
to Transmit Send Buffers automatically


 

A sequence describes a simple procedure and can take in up to 200 instructions ( line 0 ... 199 ). Several telegrams from different TDB-buffers can be linked to a sequence. In order to control the transmission sequence you have a small set of commands at your disposal.

The user can save several sequences in different TSB-files and load them again when required.

In order to use one of this files during simulation, it is necessary to set it in the process configuration. ( see section <Configuration> )

 


Toolbar sequence list

 

 

save sequence list Saves alteration into the file.
save sequence list as Saves sequence list under new name.
cut out line(s) Cuts out selected lines and puts it into the clip board.
copy line(s) Copies selected lines into the clip board.
insert line(s) Inserts line(s) out of the clip board at the selected line into the sequence list.
undo Reverses the last cut out.
find Search the specified text. ( not used for TSB ! )
replace Replaces the specified text. ( not used for TSB !
select all Selects the whole document. ( not used for TSB !
print Prints the active document. ( not used for TSB !

 

Command

 

code

par 1

par 2

 

1, 2 ...8, 9, 0

nnn

mmm

Send TDB buffer from/ till on channel x

Code [1 ...9, 0] indicates through which channel ( 0 conforms channel 10 ) the telegrams should be transmitted. The field [par 1] contains the number of the send buffer containing the telegram to be sent. If there is a parameter [par 2] indicated, all TDB buffers from 'nnn' till 'mmm' are transmitted.

C

nnnn

 

counter load

Load the internal loop counter with the value 'nnnn'.

L

zzz

 

loop, jump to line zzz

Decrement the internal loop counter and jumps to line 'zzz'.

D

nnnn

 

delay

Program run delay ( nnnn = 1 corresponds to 100 msec ).

G

zzz

 

go to line zzz

Unconditional jump to line 'zzz'.

S

zzz

 

call subroutine at line zzz

Jump instruction to a subprogram beginning in line 'zzz'.
Further subprograms can be called up out of a subprogram up to a maximum level deep of 8.

R

 

 

return

Jumps back from the subroutine to the main program.

E

 

 

end program

Ends transmission sequence.

 


Example send sequence

 

 

In the following you will see a created send sequence as example. Each line is provided with a commentary :

 

line code par 1 par 2 description
000 1 46  

send

The send buffer 46 is transmitted on channel 1.

001 D 50  

delay

The execution of the sequence is interrupted for 50 x 100 msec.

002

2

3

4

send

The send buffer 3 till 4 is transmitted on channel 2.

003

C

5

 

counter

The loop counter is loaded with the value 5. A loop consists of this allocation, a string of instructions and the following repetition of this string from the line in which the command 'L'for 'loop' appears ( see below in line 007 ). You may only allocate a value once per sequence to this counter, as every further allocation replaces this value.

004

1

47

 

send

The send buffer 47 is transmitted on channel 1.

005

2

8

 

send

The send buffer 8 is transmitted on channel 2.

006

D

20

 

delay

The execution of the sequence is interrupted for 20 x 100 msec.

007

L

004

 

loop

This command is similar to the goto-command 'G'; the sequence is continued in the indicated line ( here line 3 ). Differently from the goto-command, the loop counter 'C' ( see above ) is reduced by one with each call of the loop command; the loop resulting from this is then so often run through until 'C' has reached the value 0.

008

D

10

 

delay

The execution of the sequence is interrupted for 10 x 100 msec.

009

1

45

 

send

The send buffer 45 is transmitted on channel 1.

010

D

50

 

delay

The execution of the sequence is interrupted for 50 x 100 msec.

011

2

1

 

send

The send buffer 1 is transmitted on channel 2.

012

S

020

 

subroutine

This command causes the program to continue the transmission sequence in line 20. The sequence defined there is processed until the command 'r' ( return ) appears. Afterwards the transmission sequence is continued in the line following the command 'S'. These so called subroutines are especially suitable for making complex transmission sequences clear.

013

D

100

 

delay

The execution of the sequence is interrupted for 100 x 100 msec.

014

G

000

 

goto

This command carries out an unconditional jump to the indicated line ( 000 ). It is suitable e.g. for ignoring certain single sequences of the whole sequence for a short time.

015

E

 

 

end

This command marks the end of the sequence.

...

...

...

...

Beginning of the SubRoutine

020

2

10

 

send

The send buffer 10 is transmitted on channel 2.

021

2

12

 

send

The send buffer 12 is transmitted on channel 2.

022

2

14

 

send

The send buffer 14 is transmitted on channel 2.

023

R

 

 

return

Jumps back to the line after the calling 'S' command.

 

In the channel window ( channel 1 ...12 ) the sequence list is started or ended over symbol ( see section <channel 1 ...12> ).

 


Each alteration in the configuration is displayed by an asterisk * in the caption title and will be only effective after saving.

 


MAYR Software

Wuerzburger Ring 39,  D 91056 Erlangen

Manual LIAN 98


LIAN 98 Protocol Router, Simulator and Analyzer
© Copyright 2001, 2006, 2011 by Werner Mayr. All Rights reserved.