2.2 LIAN 98 used as Protocol Simulator


 

 

 

2.2.1 Simulation of serial devices

 

 

Connecting Cables

Maybe a special connecting cable must be soldered at first. Normally a DB9 socket is necessary for the connection to the COM interface of the PC.

 

DB9 female socket ( front view )

DB9 male plug ( front view )

 

Cable Assignment for RS-232 mode

 

Full-Duplex-Connection

Most of the devices can transmit data in both directions simultaneously. LIAN 98 and the test object 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.

 

Cable without "Handshaking".

The simplest way for the communication between two devices is a communication without the use of control signals. Only data lines and signal ground are connected, all other pins do not have a connection. Condition for the use of this simplified cable is that the test object does not check the control signals ( DSR, DCD ).

 

Cable with "Loop Back Handshaking".

If a device checks the signals DSR, CTS and DCD the connections between pin 4 to pin 1 and 6 and pin 7 to pin 8 are necessary. LIAN 98 does not use the DCD signal ( Data Carrier Detect ), this connection is optional. Normally the DCD signal indicates the existence of a communication connection between two modems and is also used by some devices ( substations, master stations, ... ).

 

This cable with "Partial Handshaking" works in most cases.

 

Half-Duplex-Connection

In case of a half duplex connection LIAN 98 as well as the test object 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 test object 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 partner that LIAN 98 is ready for operation, as well the software expects an activated DSR signal from the test object.

 

Cable for "Full Handshaking".

 

Modem-connection

 

 

 

 

Cable Assignment for RS-422 / RS-485 ( 4-wire connection )

 

 

 

Cable Assignment RS-485 ( 2-wire connection )

 

 

 

Channel Configuration

In the channel configuration the COM port settings such as COM interface, baud rate, data byte, stop bits, parity and timeout must be checked to ensure their accuracy. ( see KNF file : Configuration )

 

e.g. channel settings IEC 60870-5-101

 

The transmission procedure "balanced/ unbalanced" determines if a station operates in "point-to-point" or in polling mode.

 

RTI : Master Simulation

 

 

Settings in the Simulation List

In the simulation list the correct link- and ASDU address ( station address ) have to be set on the tab "RTI ( master )". All other settings on the tab can be taken at the moment as they are.

Further information to the particular parameters see "SIM file : Simulation" and in the description of the respectively used protocol.

 

e.g. setup master simulation IEC 60870-5-101

 

Start the Master Simulation

Simulation can be started when the previous settings are be done or checked. Open the corresponding parameterized channel window ( channel 1 ...12 ) and activate the master simulation by clicking the button "RTI".

 

master simulation IEC 60870-5-101

 

RTU : Substation Simulation

 

 

Settings in the Simulation List

In the simulation list the correct link- and ASDU address ( station address ) have to be set on the tab "RTU ( slave )". All other settings on the tab can be taken at the moment as they are.

Further information to the particular parameters see "SIM file : Simulation" and in the description of the respectively used protocol.

 

e.g. setup slave simulation IEC 60870-5-101

 

Start the Slave Simulation

Simulation can be started when the previous settings are be done or checked. Open the corresponding parameterized channel window ( channel 1 ...12 ) and activate the slave simulation by clicking the button "RTU".

 

slave simulation IEC 60870-5-101

 

2.2.2 Simulation of network devices

 

The PC must be connected to the network hub or switch before LIAN 98 will be started, otherwise parametrization of the network in LIAN can not be done.

 

RTI : Client Simulation

 

 

Channel Configuration

In the channel configuration the network settings such as network interface card, network protocol, IP address, port number and timeout must be checked to ensure their accuracy. ( see KNF file : Configuration )

 

channel settings IEC 60870-5-104

 

If no IP address is displayed when opening the register card, the network is not correctly installed in Windows or the connection to the network hub does not exist ( network cable ? ). When several network cards are available please select here the card to be used.

Only a server has a fixed port number assigned. Therefore the port number = 0 has to be set for "Local machine" for the client simulation.

 

Settings in the Simulation List

In the simulation list the correct ASDU address ( station address ) and IP address of the server have to be set on the tab "RTI ( master )". All other settings on the tab can be taken at the moment as they are.

Further information to the particular parameters see "SIM file : Simulation" and in the description of the respectively used protocol.

 

setup client simulation IEC 60870-5-104

 

Start the Client Simulation

Simulation can be started when the previous settings are be done or checked. Open the corresponding parameterized channel window ( channel 1 ...12 ) and activate the client simulation by clicking the button "RTI".

 

client simulation IEC 60870-5-104

 

RTU : Server Simulation

 

 

Channel Configuration

In the channel configuration the network settings such as network interface card, network protocol, IP address, port number and timeout must be checked to ensure their accuracy. ( see KNF file : Configuration )

 

channel settings IEC 60870-5-104

 

If no IP address is displayed when opening the register card, the network is not correctly installed in Windows or the connection to the network hub does not exist ( network cable ? ). When several network cards are available please select here the card to be used.

Only a server has a fixed port number assigned. Therefore the port number = 2404 has to be set for "Local machine" for the server simulation.

 

Settings in the Simulation List

In the simulation list the correct ASDU address ( station address ) and IP address of the server have to be set on the tab "RTU ( slave )". All other settings on the tab can be taken at the moment as they are.

Further information to the particular parameters see "SIM file : Simulation" and in the description of the respectively used protocol.

 

setup server simulation IEC 60870-5-104

 

Start the Server Simulation

Simulation can be started when the previous settings are be done or checked. Open the corresponding parameterized channel window ( channel 1 ...12 ) and activate the server simulation by clicking the button "RTU".

 

server simulation IEC 60870-5-104

 

 


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.