Situation

An autoreclosure device is mounted to a utility pole (substation) and monitors data measured at the pole. The autoreclosure device outputs the values to a serial interface using to the IEC 60870–5–101 protocol. The data needs to be transmitted to a network control center that accepts data on a TCP/IP interface using the IEC 60870–5–104 protocol. Data transmission takes place using an INSYS Smart Device (industrial router) using a secure VPN connection.

cg ids converting 101 to 104

Solution

The icom Data Suite running on the INSYS Smart Device (industrial router) will act as a 101 to 104 converter. The icom Data Suite acts as a 101 master and reads out the individual values from the autoreclosure device that acts as a 101 slave. The icom Data Suite will also act as a 104 server and map the 101 values to 104 values. The 104 values can now be requested by the 104 client in the control center. They can also be sent by the 104 server using messages. Below example contains only one value, but can be extended accordingly to convert all values necessary for the application.

It is prerequisite that you have access to the web interface of the icom Data Suite.
It is also prerequisite that the INSYS Smart Device (industrial router) is properly configured to establish the VPN connection to the control center.

Configuring the 101 Connection

  1. In the Data points101 Master menu, add a new device () and edit it ():

    • Description: Autoreclosure device

    • Select the serial interface of the router and enter the serial parameters of the autoreclosure device [1]

    • Mode: unbalanced mode

    • Link layer address slave: enter the slave address on link layer level of the autoreclosure device

    • CASDU (slave): enter the common address of the application service data unit of the autoreclosure device

    • Bytes used for CA: enter the number of bytes (octets) that are reserved for the common address in the data unit

    • Bytes used for IOA: enter the number of bytes (octets) that are reserved for the information object address in the data unit

    • Cyclic read requests: 5.0 [2]

  2. Click on Save settings.

  3. In the Data points101 Master menu in the Items section, add a new item () and edit it (): [3]

    • Description: Switch ON/OFF

    • Type: Data point

    • Data type: Doublepoint [4]

    • IOA monitoring: 527 [5]

    • Data point is writeable: () [6]

    • IOA command: 527 [7]

  4. Click on Save settings.

Configuring the 104 Connection

  1. In the Gateway104 server menu, add a new device () and edit it ():

    • Description: Control center connection

    • Port: 2404 [8]

    • Station address: 1 [9]

  2. Click on Save settings.

  3. In the Gateway104 server menu in the Items section, add a new item () and edit it (): [10]

    • Description: Switch ON/OFF

    • Type: Mapping

    • Data point: 101Item1 - Switch ON/OFF [11]

    • 104 type: Doublepoint [12]

    • IOA: 527 [13]

  4. Click on Save settings.

  5. In the Gateway104 server menu in the Items section, add a new item () and edit it (): [14]

    • Description: Message Switch ON/OFF

    • Type: Message

    • Mappings to send: check above added mapping 104Item1 - Switch ON/OFF

  6. Click on Save settings.

  7. In the Events menu, add a new event () and edit it (): [15]

    • Description: Send Switch ON/OFF to control center upon change

    • Event: Analogue data point has changed

    • Data point: 101Item1 - Switch ON/OFF - has changed [16]

    • Action: Send message

    • Send message: 104Item2 - Message Switch ON/OFF [17]

  8. Click on Save settings.

  9. Activate the profile ().

Troubleshooting

  • View the StatusCurrent values page to check whether the values from the autoreclosure device appear in the 101 Master section if the control center does not receive these values. If the values are missing/incorrect there, check the configuration of the 101 master in the icom Data Suite. If the correct values are displayed there, check the configuration of the 104 server in the icom Data Suite.

  • View the appropriate logs in the StatusLog view page (also of the router) to locate possible problems.

Resources

The following ASCII configuration can be taken over using copy & paste. It must be observed that the individual parameters need to be adapted to the own application. Correct numbering must be observed for numbered parameters. Moreover, it must be observed that no existing parameters with the same number will be overwritten. A proper functionality can only be ensured if the opened profile has been created from default settings before.

ASCII configuration
datapoints.101master.device.add
datapoints.101master.device[1].active=1
datapoints.101master.device[1].description=Autoreclosure device
datapoints.101master.device[1].port=serial2.1
datapoints.101master.device[1].baud=9600
datapoints.101master.device[1].databits=8
datapoints.101master.device[1].parity=par_even
datapoints.101master.device[1].stopbits=1
datapoints.101master.device[1].own_id=
datapoints.101master.device[1].partner_id=11
datapoints.101master.device[1].casdu_slave=13
datapoints.101master.device[1].balanced=unbalanced
datapoints.101master.device[1].cot_origin=0
datapoints.101master.device[1].cot_origin_addr=0
datapoints.101master.device[1].ca_bytes=2
datapoints.101master.device[1].ioa_bytes=3
datapoints.101master.device[1].polling=5.0

datapoints.101master.device[1].item.add
datapoints.101master.device[1].item[1].item_active=1
datapoints.101master.device[1].item[1].item_description= Switch ON/OFF
datapoints.101master.device[1].item[1].item_type=datapoint
datapoints.101master.device[1].item[1].dp_type=doublep
datapoints.101master.device[1].item[1].dp_read_ioa=527
datapoints.101master.device[1].item[1].dp_writeable=1
datapoints.101master.device[1].item[1].dp_write_ioa=527
datapoints.101master.device[1].item[1].dp_write_time=0
datapoints.101master.device[1].item[1].dp_is_polled=0
datapoints.101master.device[1].item[1].msg_type=inter
datapoints.101master.device[1].item[1].inter_group=

gateway.104server.gateway.add
gateway.104server.gateway[1].active=1
gateway.104server.gateway[1].description=Control center connection
gateway.104server.gateway[1].tcp_port=2404
gateway.104server.gateway[1].station_address=1

gateway.104server.gateway[1].item.add
gateway.104server.gateway[1].item[1].item_description=Switch ON/OFF
gateway.104server.gateway[1].item[1].item_active=1
gateway.104server.gateway[1].item[1].item_type=mapping
gateway.104server.gateway[1].item[1].map_datapoint=101Item1
gateway.104server.gateway[1].item[1].map_104type=doublep
gateway.104server.gateway[1].item[1].map_104ioa=527

gateway.104server.gateway[1].item.add
gateway.104server.gateway[1].item[2].item_description=Message Switch ON/OFF
gateway.104server.gateway[1].item[2].item_active=1
gateway.104server.gateway[1].item[2].item_type=message
gateway.104server.gateway[1].item[2].msg_maplist=104Item1
gateway.104server.gateway[1].item[2].msg_group=
gateway.104server.gateway[1].item[2].msg_timestamp=0

events.event.add
events.event[1].active=1
events.event[1].description=Send Switch ON/OFF to control center upon change
events.event[1].event_type=ev_analog
events.event[1].event_analog_datapoint=101Item1
events.event[1].event_analog_change=changed
events.event[1].action_type=act_message
events.event[1].action_message=104Item2

1. Serial parameters, addresses and protocol parameters are available from the manufacturer of the connected device or network operator.
2. A read request will be sent every 5 seconds to the 101 clients.
3. This adds a data point that transmits the value of the Switch ON/OFF variable for the autoreclosure device.
4. The data type can be taken from the protocol description that should be provided by the network operator.
5. The information object address for the monitoring direction can also be taken from the protocol description.
6. This permits that this value cannot only be read, but also set (not part of this Configuration Guide).
7. The information object address for the command direction can also be taken from the protocol description (it is not necessarily identical like in the protocol used for this example).
8. This is the well-known port for 104 servers.
9. This is the usual station address for 104 servers.
10. This adds a mapping that converts the value of the Switch ON/OFF variable in the 101 protocol to the appropriate value in the 104 protocol.
11. This is the data point added previously.
12. The data type can be taken from the protocol description that should be provided by the network operator.
13. The information object address can also be taken from the protocol description.
14. This adds a message that allows to send the value of the Switch ON/OFF variable by the 104 server.
15. This event sends the 104 message containing the Switch ON/OFF variable as soon as the value changes to the 104 clients, i.e. the control center.
16. This is the item added previously.
17. This is the 104 message added previously.