4.7.3 Protocol : Siemens SINAUT ST7


 

Telegram structure

The SINAUT ST protocol uses the telegram frames FT1.2, FT2 and FT2+ following the standard DIN19244 und IEC60870. Only telegram format FT1.2 is realized in LIAN 98 at the moment. Formats with fixed and variable length are also admitted as the single characters E5H and A2H.

Each telegram consists of single UART signs, one start bit, 8 bits information, 1 parity bit and one stop bit. The transmission of data bytes takes place after the principle "LSB first". It is an asynchronous protocol with hamming distance = 4. Via the parity bit in the asynchronous character each byte is secured with d = 2. The telegram section, defined via the block length, is additionally secured with a check sum, whereby a hamming distance of d = 4 is reached. As the start sign and the block length are not contained in the check sum they are transmitted twice and therefore the same high transmission security of d = 4 is reached. The checksum is the arithmetic sum over all user data bytes.

 

Information about the structure of the telegram see
<SINAUT ST7 : Telegram structure>

 


SINAUT ST7 : Configuration

 

 

With the channel button ( channel 1 ...12 ) on the bottom following settings are possible :

 

Each character has one start bit ( binary = 0 ), 8 information bits and normally one even parity bit and one stop bit ( binary = 1 ).

 

Interface

For each channel any COM port ( COM 1 till COM 24 ) can be selected.

Modem

An individual modem can be installed and connected for each channel. LIAN 98 is able to process up to twelve modems in the range of COM1 till COM24 simultaneously. Select here the modem assigned to the selected channel. Normally this assignment will be recognized by LIAN 98 and the corresponding modem will be set.

Setup Modem

The settings of the modem must be executed via the windows control panel "telephone and modem options". With this button you can check the modem settings and see if they correspond to the LIAN 98 configuration.

Connection type
Full duplex :

Most of the modems are full duplex and can transmit data in both directions simultaneously. DTE ( LIAN 98 ) and DCE ( Modem ) work simultaneously as transmitter and receiver. None of both transmitters has to wait for clearance for transmitting data. Therefore the signals RTS and CTS are not significant. Sure, LIAN 98 is setting the control signals RTS and DTR to 1 when it is ready for transmission and receipt but it does not check the signals CTS and DSR.

Half duplex :

In case of a half duplex connection DTE ( LIAN 98 ) as well as DCE ( Modem ) can work as transmitter and receiver, hereby only one data line ( 2-wire connection ) is available that can be used alternately for transmission or receipt of data. The control signals RTS and CTS are used in order to define the allocation of transmission or receipt. When LIAN 98 should work as transmitter it activates the signal RTS and waits for the confirmation of the modem via the signal CTS. After the receipt of the signal CTS the data are transmitted and after the transmission of the data the signal RTS is set to 0. In each other case LIAN 98 is working as receiver only.

As long as the LIAN 98 software is ready for transmission and receipt the signal DTR is activated in order to show the modem that LIAN 98 is ready for operation, as well the software expects an activated DSR signal from the modem.

RTS Leading delay

0 ... 1000 msec
This parameter ist only used for the connection type "half duplex" and is determined by the initial transient behaviour of the used transmission equipment.
The RTS Leading defines the delay time from activating RTS signal to transmitting the first character and is used for modems whithout the hardware handshake signals "RTS and CTS". In this case the "RTS signal" must be led back over the "CTS line" to the PC with the help of a brazing bridge in the monitor cable. Dependent of the used modem it may be necessary to connect additionally the DTR-pin with the DSR-pin.
This function is deactivated if the "Leading and the Trailing" is set to NULL and therefore the control signals are analyzed diectly from the modem.

RTS Trailing delay

0 ... 1000 msec
This parameter ist only used for the connection type "half duplex" and is determined by the final transient behaviour of the used transmission equipment.
The RTS Trailing defines the delay time from the last character transmitted up to the RTS signal is deactivated.
This function is deactivated, if the "Leading and the Trailing" is set to NULL.

 

Baud rate

Transmission speed : 25 - 115200 Baud ( variable )

Data byte

8 bit ( fixed )

Stop bit

1 bit ( variable )

Parity

even ( variable )

Time out

1 - 9999 msec ( variable )

 

Transmission procedure
S : balanced,
point to point

If balanced transmission procedure is used, each station may initiate message transfers. The balanced mode is restricted to "end-end configuration" or "multiple end-end configuration". Balanced mode can be used in a full duplex transmission.

U : unbalanced,
party line

Unbalanced transmission is used in SCADA systems in which a master station controls the data traffic by polling outstations sequentially.
The master station is the primary station that initiates all message transfers while outstations are secondary stations ( slaves ) that may transmit only when they are polled.
The unbalanced mode can be used generally, but must be used in party line configuration.

 


SINAUT ST7 : Simulation

 

SINAUT ST7 : RTI ( Master )-Simulation

In the polling mode ( unbalanced ) LIAN 98 simulates a MASTER and can communicate with up to 32 connected substations simultaneously.

 

Station number
( Address of the target station )

All telegrams to be sent are provided with the station number of the SIM list during master simulation. .Exception for unbalanced mode :

. If the station number 255 ( one octet address ) of a "BROADCAST command" is inserted in a telegram of the TDB buffer, the telegram will be transmitted unchanged with the address already inserted.
 
. If a station number of the scan list is inserted in the telegram it will be transmitted unchanged with the address already inserted.

Target TLN Number

 

Source TLN Number

 

Response timeout

1 - 30 000 msec

A fixed time out interval is provided to be used for repeated transmissions. The time out interval and maximum number of retries are configurable and appropriate values will depend on the transmission system.

This parameter determines the time in milliseconds that the program LIAN 98 as primary station at most has to wait for an acknowledge before the last transmission is repeated.

Number of frame retries

0 - 255

Via this parameter it is defined how many times the transmission is to be repeated when the acknowledge is missing.

Enable clock synchronization

yes / no

After the initialization of the communication LIAN 98 will transmit first of all a time synchronization command and will repeat it cyclic ( Clock SYNC cycle time ), if this parameter is activated.

Clock SYNC cycle time

1 - 1440 minutes

Dependent on this time LIAN 98 as master station will transmit the time synchronization command continually.

Clock SYNC command

TDB buffer number where the organizational telegram ( ORG 256 ) is stored.

Use system date/ time

yes / no

The system time of the PC will be taken over into the time synchronization command ( ORG 256 ) before the telegram will be transmitted, if this parameter is activated. Alternatively the telegram remains unchanged as before edited by the user.

Enable general interrogation

yes / no

After the initialization of the communication LIAN 98 will transmit a general interrogation command and will repeat it cyclic ( GI cycle time ), when necessary if this parameter is activated.

GI cycle time

1 - 1440 minutes

Dependent on this time LIAN 98 as master station will transmit the general interrogation command continually.

GI command

TDB buffer number where the organizational telegram ( ORG 0 ) is stored.

 

 

Insert scan addresses
Number of addresses
delete
insert

Unbalanced : ( party line )
All stations to be processed at this line have to be inserted into the scan list. LIAN 98 establishes the connection to this stations and interrogates continuously the user data of this stations.

In order to insert the addresses please proceed as follows :

Activate "Insert scan addresses" ( button "insert" will be displayed ).
Insert in the fields "Link address" / "Address of ASDU" the station to be entered in the scan list.
Take over the addresses into the scan list by clicking "insert".
When all stations are inserted, please deactivate "insert scan addresses" ( button "insert" disappears ).

In order to delete a station out of this list select it and click "delete".

Disable automatic scan

Unbalanced : yes / no

When the communication establishment is finished, LIAN 98 starts automatically the request of the user data ( polling ). If it is not wanted the request can be deactivated here.

Polling

Unbalanced :
Number of the TDB buffers where the polling telegram is stored.

Scan delay

Unbalanced :  0 - 30 000 msec

This parameter determines the time that the program LIAN 98 delays the next polling telegram. 

 

 

Acknowledge

Unbalanced :
Number of the TDB buffer where the acknowledge of the master ( A2H ) is stored. 

 

SINAUT ST7 : RTU ( Slave )-Simulation

 

 

Station number

All telegrams to be sent will be provided with station number out of the SIM list during slave simulation.

Source TLN number

All telegrams to be sent will be provided with the source TLN number out of the SIM list during slave simulation.

Target TLN number

All telegrams to be sent will be provided with the target TLN number out of the SIM list during slave simulation.

Response timeout

Balanced : 1 - 30 000 msec

A fixed time out interval is provided to be used for repeated transmissions. This time out interval and the maximum number of retries are configurable and appropriate values will depend on the transmission system.

This parameter determines the time in milliseconds that the program LIAN 98 as substation at most has to wait for an acknowledge before the last transmission is repeated.

Number of frame retries

Balanced : 0 - 255

Via this parameter it is defined how many times the last transmission is to be repeated when the acknowledge ( only balanced ) is missing.

Enable clock synchronization

yes / no

The current system time of the PC is given back in the "activation confirmation" of the time synchronization command, if this parameter is activated. Otherwise the received time will be only mirrored.

Set new system date/ time

yes / no

The system time of the PC will be adjusted to the received time values of the time synchronization command ( ORG 256 ), if this parameter is activated.

Time correction
( for system time of the PC )

0 - 9 999 msec ( correction of transmission time )

A correction value can be entered for the setting of the PC system time with a time synchronization command. It will be added onto the received value in the synchronization command.

Clock SYNC command

TDB buffer number where the organizational telegram ( ORG 256 ) is stored.

Use system date/ time

yes / no

The system time of the PC will be inserted in the time stamp of the telegram before transmission. Otherwise the telegram remains unchanged as before edited by the user.

 

 

Acknowledge

Unbalanced :
Number of the TDB buffer where the acknowledge of the master ( E5H ) is stored.

 

SINAUT ST7 : Simulation procedures

 

Simulation of the communication services :

 

Station initialization

 

Data acquisition by cyclic polling
( unbalanced )

 

 

Simulation of the application functions :

 

Cyclic data transmission

 

Acquisition of events
( unbalanced )

 

General interrogation

The general interrogation is used in order to update the controlled station after the initialization or when the controlling station detects a loss of information. 
The general interrogation function of the controlling station requests the controlled station to transmit the actual values of all processing variables. The interrogation procedure is finished when the controlling station receives the message "end of interrogation"

Clock synchronization

Date and time of controlled stations are initially synchronized by the controlling station after initialization and afterwards re-synchronized periodically.

Command transmission

 

 


SINAUT ST7 : Pre-filter/ Pre-trigger

 

It is absolutely necessary to set the start byte ( 10H or 68H ) for the filter- and trigger settings. With the start byte is determined whether the filter definition is valid for a telegram with fxed length or a telegram with variable length.

 

SINAUT ST7 : Monitoring filters

 

Monitoring filters reduce capture on particular pre-defined data records. By setting the corresponding filters a carefully directed data preselection can be achieved, which results in a reduction of the data to be analyzed later.

 

  

Filter released

yes / no

With this option already set monitoring filters for one channel can be deactivated temporarily without deleting them.

Protocol specific
filter mask

Here monitoring can be filtered for telegram specific values in which several OR-linked filter masks can be defined for the channel.

= Only values equal to 'from' are let through.
# Only values not equal to 'from' are let through.
< Only values less than 'from' are let through.
> Only values greater than 'from' are let through.
R 'from' and 'till' define a valid range
add Adds the next OR-element.
remove Removes the current OR-element.

 

SINAUT ST7 : Action filters

 

For the simulation and execution of data tests actions can be caused with the receipt of defined records. Therefore the possibility exists to define action filters, that effect the transmission of a send-sequence or transmit one or more message buffers ( TDB ).

 

 

Action filter released

yes / no

With this option already set action filters for one channel can be deactivated temporarily without deleting them.

protocol specific
filter mask

The action filter is described over telegram specific features corresponding to a filter setting. Additionally each action filter requires an allocation to a send buffer or alternatively to a send sequence.

= Only values equal to 'from' are let through.
# Only values not equal to 'from' are let through.
< Only values less than 'from' are let through.
> Only values greater than 'from' are let through.
R 'from' and 'till' define a valid range
Sendbuffer number
( from, from/ till )

In correspondence with the action filter the message buffer "from" or the message buffers "from/ till" are to be sent.

Sequence line number
( from, from/ till )

In correspondence with the action filter the send sequence is to be started at line number "from" or to be started at line number "from" and to be ended at line number "till".

add Adds the next OR-element.
remove Removes the current OR-element.

 

SINAUT ST7 : Start trigger

 

With the receipt of a telegram pre-defined as start trigger, recording is started.

 

 

Start trigger released

yes / no

With this option already set start triggers for one channel can be deactivated temporarily without deleting them.

protocol specific
trigger mask

Here you can define telegram specific start triggers for monitoring in which several OR-linked triggers can be defined for the channel.

= Only values equal to 'from' are let through.
# Only values not equal to 'from' are let through.
< Only values less than 'from' are let through.
> Only values greater than 'from' are let through.
R 'from' and 'till' define a valid range
add Adds the next OR-element.
remove Removes the current OR-element.

 

SINAUT ST7 : Stop trigger

 

Monitoring can also be stopped by telegram-specific filters and/ or "stop on error" after a defined number of following records. The number of the following records is defined in the field "records after stop on error/ stop trigger" in the global parameters of the VFL settings.

 

 

Stop trigger released

yes / no

With this option already set stop triggers for one channel can be deactivated temporarily without deleting them.

protocol specific
trigger mask

Here you can define telegram specific stop triggers for monitoring in which several OR-linked triggers can be defined for the channel.

= Only values equal to 'from' are let through.
# Only values not equal to 'from' are let through.
< Only values less than 'from' are let through.
> Only values greater than 'from' are let through.
R 'from' and 'till' define a valid range
add Adds the next OR-element.
remove Removes the current OR-element.

 


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

 


SINAUT ST7 : Message display format

 

The sent and received messages of all channels are entered binary into the archive file. Before displaying on screen, the binary archived data are coverted to an easily readable procedure specific plaintext. In order to optimize the representation it can be chosen between five different plaintext settings. The plaintext format is set separately for each channel.
( see also "FMT file - Display format" )

 

 

Plaintext format 1

Everything is displayed : Telegram header, object number and information elements

 

Plaintext format 2

No header is displayed : Object number and information elements

 

Plaintext format 3

No header and object number is displayed : Only information elements are displayed

 

Plaintext format 4

No object number and information element is displayed : Only telegram header is displayed

 

Plaintext format 5

No information element is displayed : Only telegram header and object number

 

Additional to the plaintext output the transmission data can also be displayed in hexadecimal, decimal, ASCII, binary ( LSB first ) or binary ( MSB first ). Of course the plain text output can also be deactivated in order to display the transmission data only e.g. hexadecimal.

 


SINAUT ST7 : Error messages

 

Error checks during receive

 

per character

the start bit, the stop bit and the even parity bit.

per frame

the start character, the frame checksum and the end character and the
length ( 2 bytes ) and second start character in frames with variable length.

 

*** TimeOut !

Within a telegram, there may be no pause between characters. In case of timeout occurs it is assumed that it is the end of the telegram and the telegram check is started. The sensitivity can be parameterized in the configuration ( timeout ).
Normally a time out is no error, but it is stored in the PRO file together with the initial error for a better analysis of the faulty transmission line in connection with a line error.

*E: COM-PORT !

Error during writing on the COM port. May be it is already occupied by another program.

*E: Length !

The length of the telegram is wrong. For telegrams with fixed length the length is not 5.

*E: Format !

The repetition of the length or the start characters ( 68H ) in the message header are faulty, or the stop byte ( 16H ) is missing or set wrongly.

*E: Checksum !

The message checksum in the checksum byte is incorrect.

*E: SYNC !

The receive routine initially searches for 68H, 10H, E5H ( or A2H ). Each other character is noted as synchronization error and inserted in the PRO file.

*E: Overflow !

Error message from the UART. This error is noted only in the PRO file.

*E: Parity !

Error message from the UART. This error is noted only in the PRO file.

*E: Start/ Stop !

Error message from the UART. This error is noted only in the PRO file.

 

Error checks during simulation

 

*E: DIR bit !

Direction bit has an incorrect value

*E: unexpected !

The respond at this time was not expected.

*E: Link address !

The received station number is incorrect or the entry in the SIM list is wrong.

*E: ASDU address !

The received TLN number is incorrect or the entry in the SIM list is wrong.

*E: Sequence !

The telegram counter ( TC ) in the telegram is wrong.

*E: TypeID !

The used TypeID is not provided.
( see protocol specific parameters - PAR File )

 


SINAUT ST7 : Parameter list

 

SINAUT ST7 : TypeID assignment list

Unfortunately the TypeID is not recognizable out of the ST7 telegram. In the process system it is defined by the subscriber and the object number. In LIAN 98 an unambiguous TypeID is defined for each data type in order to display the information ( message, measurand ... ) in an easily readable plaintext and not only hexadecimal. With the help of the parameter list the correct typeID can be assigned to the objects of individual subscribers. Organizational telegrams are unambiguous and must not entered in the parameter list.

 

 

line

Line number : ( 1 ... 512 )

SUB from

from subscriber number : The assignment is valid for that subscriber number, if the parameter "SUB till" is not specified. Otherwise, the assignment applies to all subscriber numbers in the specified range.

SUB till

till subscriber number : If this parameter is specified, the assignment is valid for the entire range of subscriber numbers.

OBJ from

from object number : The assignment is valid for that object number, if the parameter "OBJ till" is not specified. Otherwise, the assignment applies to all object numbers in the specified range.

OBJ till

till object number : If this parameter is specified, the assignment is valid for the entire range of object numbers.

TypeID

Type of information : Type identification number for the process information in control or monitoring direction.

 

The state of the delivery of the list is only to see as an example and certainly needs to be adapted to your plant. The definition of the telegram type numbers you will find in the ST7 chapter <Telegram structure>.

 


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.