Voltage regulator TAPCON 240 Supplement 2398402/00 Protocol description for IEC 60870-5-103
All rights reserved by Maschinenfabrik Reinhausen Copying and distribution of this document and utilization and communication of its contents are strictly prohibited unless expressly authorized. Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a patent, utility model or ornamental design registration. The product may have been modified after this document went to press. We expressly reserve the right to make changes to the technical data, the design or the scope of delivery. Generally, the information provided and the arrangements agreed during processing of the relevant quotations and orders are binding. The original operating instructions were drawn up in German.
Table of Contents Table of Contents 1 General notes... 5 1.1 About this document... 5 1.2 Information about the standard... 5 1.3 Abbreviations used... 6 2 Voltage regulator connections... 7 3 Settings on the voltage regulator... 9 3.1 Communication interface RS232... 9 3.2 Communication interface RS485... 10 3.3 Fiber-optic cable (optional)... 10 4 Data points... 11 4.1 Message structure... 11 4.1.1 Function types... 11 4.1.2 Type codes... 11 4.1.3 Data types... 11 4.2 Monitoring direction... 12 4.2.1 General commands in monitoring direction... 12 4.2.2 Signals at the digital input terminals... 14 4.2.3 Generic data in monitoring direction... 15 4.3 Control direction... 15 4.3.1 System functions... 15 4.3.2 General data in control direction... 16 4.3.3 Generic data in control direction... 17 Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 3
Table of Contents 5 Sample sequences... 19 5.1 Time synchronization... 19 5.2 General query... 20 5.3 General command... 21 5.4 General query, generic data... 22 5.5 Generic command (write entry with version)... 23 6 Tap position telegram... 25 6.1 Structure of telegram... 25 6.2 Examples of messages for tap position telegrams... 27 6.3 Setting time and date settings... 28 4 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
1 General notes 1 General notes 1.1 About this document This document describes implementation of the interface protocol IEC60870-5-103 for the TAPCON 240. Read this description along with the technical file for the TAPCON 240. 1.2 Information about the standard The <Communication protocol> interface protocol was originally developed for communication between protective devices. The pre-defined function types and associated information numbers are not suitable for the information that the voltage regulator has to transfer. A function type from the "private sphere" of the protocol is therefore used for all "non-generic data points". The information numbers for all general commands and messages with the function type from the "private sphere" are specific. Analog values are transferred in the control direction (command) and monitoring direction (message) using a generic message type. All measured values are assigned to class 2 and all parameters to class 1. In addition to the 9.6 and 19.2 kilobaud rates required by the standard, baud rates of 38.4 and 57.6 kilobauds can also be selected on the voltage regulator. Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 5
1 General notes 1.3 Abbreviations used Abbreviation Definition ASDU Application Service Data Unit BCD Binary Coded Decimal CIC Communication Interface Card GQ General query GPI General Purpose Input GPO General Purpose Output Fiber-optic cable Fiber-optic cable MR Maschinenfabrik Reinhausen RTC Real Time Clock TAPCON trol PC software for displaying regulator data Table 1 Abbreviations 6 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
2 Voltage regulator connections 2 Voltage regulator connections The physical interfaces RS232, RS485 and optional fiber-optic cables are provided on the voltage regulator for data transfer via the IEC60870-5-103 protocol. Figure 1 CIC card 1 RS232 (9 pin female SUB-D connector) 2 RS485 3 Ethernet RJ45 (optional) 4 FH-ST or F-SMA fiber-optic cable in 850 nm or 660 nm (optional) 5 Reset key 6 TxD LED for transmit signal 7 RxD LED for receive signal 8 Clk LED for operating mode (flashes for 2 seconds) 9 Clip for connecting cable shield with functional ground Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 7
2 Voltage regulator connections RS232 RS485 Fiber-optic cable (optional) 9 pin female SUB-D connector Pin 2: TxD Pin 3: RxD Pin 5: GND 3 pin connector from Phoenix (MC1.5/3 GF 3.5) Pin 1: GND (100 Ω ground resistance) Pin 2: B (inverted) Pin 3: A (not inverted) Polarity: A > B by 200 mv corresponds to 1. A < B by 200 mv corresponds to 0. An interrupted communication line corresponds to 1. The start bit has the designation 0. Recommended terminating resistor 120 Ω. FH-ST (850 nm or 660 nm) F-SMA (850 nm or 660 nm) Table 2 Interfaces available Transfer on physical plane: Asynchronous with 8 data bits, even parity, 1 stop bit (8E1) 8 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
3 Settings on the voltage regulator 3 Settings on the voltage regulator The following chapters describe how to set the parameters for communication at the relevant interface on the TAPCON 240. > Configuration > Next* > Comm. interface Depending on the product version and software, you will need to press "Next" a varying number of times to reach the "Comm. interface" menu. You will find more information on how to set the parameters in the technical file for TAPCON 240. 3.1 Communication interface RS232 Communication interface Baud rate communication Fiber-optic cable light ON/OFF Local SCADA address RS232 9.6/19.2/38.4/57.6 kilobaud not used 1...255 (0 = Broadcast message) Send delay time 0...254 ms* Table 3 Interface settings RS232 Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 9
3 Settings on the voltage regulator 3.2 Communication interface RS485 Communication interface Baud rate communication Fiber-optic cable light ON/OFF Local SCADA address RS485 9.6/19.2/38.4/57.6 kilobaud not used 0...254 (255 = Broadcast message) Send delay time 0...254 ms* Table 4 Interface settings RS485 *) e.g 2 ms, in order to compensate for the response time of an external converter RS485/RS232 when switching between transmit and receive operation. 3.3 Fiber-optic cable (optional) Communication interface Baud rate communication Fiber-optic cable light ON/OFF Local SCADA address Fiber-optic cable 9.6/19.2/38.4/57.6 kilobaud ON (1 corresponds to light On) or OFF (1 corresponds to light Off) 0...254 (255 = Broadcast message) Send delay time Table 5 not used Interface settings Fiber-optic cable In addition to the 9.6 and 19.2 kilobaud rates required by the standard, baud rates of 38.4 and 57.6 kilobauds can also be selected on the voltage regulator. 10 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
4 Data points 4 Data points 4.1 Message structure The function types, type codes and data types which are listed in the data tables are explained below. 4.1.1 Function types 4.1.2 Type codes 4.1.3 Data types 110 = function type from the private sphere (can be defined specifically) 254 = generic function type 255 = global function type 1 = message with time stamp 6 = time synchronization 7 = general query 10 = generic data 20 = general command 21 = generic command 7 = short real Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 11
4 Data points 4.2 Monitoring direction All spontaneous messages (in the event of changes) are transmitted with a time stamp. The time stamp always relates to when the message is sent. A message caused by a general query is sent without a time stamp. 4.2.1 General commands in monitoring direction Type code Info no. Byte 2 Info no. Byte 1 Class Description 1 110 16 1 Auto/manual (On = auto mode; Off = manual mode) 1 110 19 1 Desired voltage value 1 On 1 110 20 1 Desired voltage value 2 On 1 110 21 1 Desired voltage value 3 On 1 110 27 1 SI command 1 active* 1 110 28 1 SI command 2 active* 1 110 29 1 SI command 3 active* 1 110 31 1 Motor-drive unit running Messages which can be parameterized: The TAP- CON 240 has 4 messages which can be parameterized. These can be put on an input or relay. The messages are ON when there is a signal at the parameterized input or the parameterized relay is activated. 1 110 33 1 Message no. 1 1 110 34 1 Message no. 2 1 110 43 1 Message no. 3 1 110 39 1 Message no. 4 1 110 35 1 Parallel operation On Parallel operation is only active when all conditions for parallel operation are met. 1 110 36 1 Master parallel operation method On (feedback) 1 110 37 1 Follower parallel operation method On (feedback) 1 110 38 1 Circulating reactive current parallel operation method On (feedback) 1 110 40 1 Parallel operation error 1 110 49 1 Voltage regulator error ON when recording a parameterization error. 12 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
4 Data points Type code Info no. Byte 2 Info no. Byte 1 Class Description 4 110 118 1 204 110 54 1 1 110 51 1 Tap position This is an alternative way of recording the tap position. The value is the same as under GIN LSB 54 and GIN MSB 2. Tap position This is another way for the control system to record the tap position. The value is the same as for the other tap position telegrams. Function monitoring (a control deviation has existed for 15 minutes) 1 110 42 1 Local/Remote (On = Remote; Off = Local) 1 110 44 1 Overvoltage V> 1 110 45 1 Undervoltage V< 1 110 46 1 Overcurrent I> Table 6 Data points in monitoring direction Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 13
4 Data points 4.2.2 Signals at the digital input terminals Most signals can be transferred to the SCADA system via the digital input terminals. When triggered, the interface addresses to the corresponding inputs behave as follows: Type code Info no. Byte 2 Info no. Byte 1 Class Description Card type Specification for hardware version I Specification for hardware version III 1 110 65 1 IO X1/z20 X1/33 1 110 66 1 IO X1/d20 X1/31 1 110 67 1 UC1 X1/d30 X1/33 1 110 68 1 UC1 X1/b30 X1/32 1 110 69 1 UC1 X1/d28 X1/31 1 110 70 1 UC1 X1/b28 X1/30 1 110 71 1 UC1 X1/d26 X1/17 1 110 72 1 UC1 X1/b26 X1/16 1 110 73 1 UC1 X1/d24 X1/15 1 110 74 1 UC1 X1/b24 X1/14 1 110 75 1 UC1 X1/d22 X1/11 1 110 76 1 UC1 X1/b22 X1/12 1 110 77 1 UC2 X2/d30 X2/33 1 110 78 1 UC2 X2/b30 X2/32 1 110 79 1 UC2 X2/d28 X2/31 1 110 80 1 UC2 X2/b28 X2/30 1 110 81 1 UC2 X2/d26 X2/17 1 110 82 1 UC2 X2/b26 X2/16 1 110 83 1 UC2 X2/d24 X2/15 1 110 84 1 UC2 X2/b24 X2/14 1 110 85 1 UC2 X2/d22 X2/11 1 110 86 1 UC2 X2/b22 X2/12 Table 7 Signals at the digital input terminals 14 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
4 Data points 4.2.3 Generic data in monitoring direction Type code Function type GIN LSB GIN MSB Data type Class Description 10 254 54 2 7 1 Tap position Set values Since the set values are transferred as the "Short real" data type, deviations may arise between the set value and the value transferred via the interface if the set value cannot be depicted accurately as a "Short real" value. 10 254 55 1 7 1 Desired voltage value 1 10 254 144 2 7 2 Actual voltage 10 254 145 2 7 2 Deviation 10 254 146 2 7 2 Active current 10 254 147 2 7 2 Reactive current 10 254 148 2 7 2 Apparent current Table 8 Generic data in monitoring direction 4.3 Control direction For commands from the control system to be executed on the Monitoring system, Remote mode must be set. 4.3.1 System functions Type code Description 7 Start of general query 6 Time synchronization 21 Start of general query for generic data Table 9 System functions A message to indicate the end of the general query follows the last info message for the GQ cycle. Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 15
4 Data points 4.3.2 General data in control direction Type code Info no. Byte 2 Info no. Byte 1 Class Description 20 110 16 1 Auto/manual (On = auto mode; Off = manual mode) 20 110 17 1 Raise (On = raise; Off = lower; only in manual mode) 20 110 18 1 Lower (On = lower, Off = no function; only during manual mode) 20 110 19 1 Raise/lower desired voltage value This function is optional. Parameterization is undertaken by MR. The desired voltage value function 1/2/3 is possible under the following conditions: - no inputs parameterized for selecting desired voltage values 2 and 3 - raise/lower desired voltage value function not parameterized Parameterization is undertaken by MR. 20 110 19 1 Desired voltage value 1 20 110 20 1 Desired voltage value 2 20 110 21 1 Desired voltage value 3 Each SI command sets a flag in the TAPCON 240. The status of the flags can be used like an input for the I/O or UC modules to activate or deactivate a TAPCON 240 function. Example: If the "Parallel group input" parameter is set to "SI:cmd1" for two TAPCON 240, parallel control for these TAPCON 240 can be activated or deactivated by setting the "SI command 1" on/off command for both TAPCON 240. 20 110 27 1 SI command 1 20 110 28 1 SI command 2 20 110 29 1 SI command 3 20 110 35 1 Parallel operation (On = activate circulating reactive current parallel operation, Off = deactivate parallel operation) 20 110 36 1 Master parallel operation method (On = activate master parallel operation mode, Off = activate "Automatic synchronization" parallel operation mode) 20 110 37 1 Follower parallel operation method (On = activate follower parallel operation mode) Table 10 General data in control direction The voltage regulator returns the command received with reason for transmission 20 if the message has been accepted. 16 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
4 Data points The voltage regulator can only process generic commands with one data set per message. 4.3.3 Generic data in control direction Type code Function type GIN LSB GIN MSB Data type Class Description 10 254 55 1 7 1 Voltage level Table 11 Generic data in control direction Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 17
5 Sample sequences 5 Sample sequences 5.1 Time synchronization Sample command for time synchronization: 68 f f 68 28 1 6 81 8 1 ff 0 77 9 2f 88 90 9 9 91 16 Code (hexadecimal) Definition 68 f f 68 28 1 Start message 6 Type code = 6 (decimal) = Time synchronization command 8 Reason for transmission = 8 = Time synchronization ff Function type = 255 = Global function type 0 Info number (or address of information object 2nd octet) = 0 = Time synchronization 9 2f 88 90 9 9 Time structure CP56Time2a 91 16 End message Figure 2 Sample command for time synchronization After time synchronization, the voltage regulator returns the time synchronization feedback as positive confirmation. The reason for transmission is set to 8. These time details are only used for display purposes in the TAPCON trol visualization software; internally the regulator uses a continuous RTC. The time stamp in the regulator's telegrams is produced by the communication card and is only set when the telegram is sent. Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 19
5 Sample sequences 5.2 General query Sample command for general query (GQ): 68 9 9 68 43 1 7 81 9 1 ff 0 0 d5 16 Code (hexadecimal) Definition 68 9 9 68 43 1 Start message 7 Typ code = 7 (decimal) = General query 9 Reason for transmission = 0 = not used Function type (or address of information object 1st ff octet) = 255 = Global function type Info number (or address of information object 2nd octet) = 0 0 d5 16 End message Figure 3 Sample command for general query (GQ) After the last data message from the general query cycle, the "GQ complete" message is issued with type code 8 and reason for transmission 10. 20 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
5 Sample sequences 5.3 General command Example of general command: 68 a a 68 43 1 14 81 14 1 ff 0 0 d5 16 Code (hexadecimal) Definition 68 a a 68 43 1 Start message 14 Typ code = 20 (decimal) = General command 14 Reason for transmission = 20 (decimal) = General command 6e Function type = 110 (decimal) = Private sphere 10 Info number (or address of information object 2nd octet) = 16 (decimal) = Auto/Manual 1 Value = OFF 6d 16 End message Figure 4 Example of general command Once it has received a valid command, the voltage regulator returns the command message as positive confirmation. The reason for transmission is set to 20. Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 21
5 Sample sequences 5.4 General query, generic data Sample command for general query, generic data: 68 a a 68 43 1 15 81 9 1 fe f5 0 0 d7 16 Code (hexadecimal) Definition 68 a a 68 43 1 Start message 15 Type code = 21 (decimal) = General query 9 Reason for transmission = 9 = not used fe Function type (or address of information object 1st octet = 254 (decimal) = Generic funktion type f5 Info number (or address of information object 2nd octet) = 245 (decimal) = General query, generic data d7 16 End message Figure 5 Sample command for general query, generic data After the last data transfer for the "General query", a message entitled "GQ complete" is transferred with type code 10, info number 245 and reason for transmission 10. 22 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
5 Sample sequences 5.5 Generic command (write entry with version) Example of generic command (write entry with version): 68 14 14 68 43 1 a 81 28 1 fe fa 0 1 1 37 1 1 7 4 1 0 0 ca 42 42 16 Code (hexadecimal) Definition 68 14 14 68 43 1 Start message a Type code = 10 (decimal) = Generic Data 28 Reason for transmission = 40 = Generic write command fe Function type (or address of information object 1st octet) = 254 (decimal) = Generic function type fa Info number (or address of information object 2nd octet) = 250 (decimal) = Write entry 37 1 GIN LSB = 55 (decimal), GIN MSB = 1; 55 = Desired volatge value 1 7 Data type = 7 = Short real 0 0 ca 42 4 bytes of data 42 16 End message Figure 6 Example of generic command (write entry with version) Once it has received a valid command, the voltage regulator returns the command message as positive confirmation. The reason for transmission is set to 40. If the command cannot be performed, the reason for transmission is 41. The generic command "Write entry with confirmation" (info number 249) is not implemented. Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 23
6 Tap position telegram 6 Tap position telegram 6.1 Structure of telegram The structure of the individual telegrams is described in the tables below. Message type Variable structure code Reason for transmission Shared address of ASDU Function type Information number RII NGD GIN LSB GIN MSB KOD Data type Number of data bytes Quantity 10 0x81 1 or 9 Address set 254 244 1 1 For tap position 54 For tap position message 2 1 7 (short real) 4 1 Data (4 bytes, short real) Table 12 Structure of type 10 telegram Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 25
6 Tap position telegram Message type Variable structure code Reason for transmission Shared address of ASDU Function type Information number Data (4 bytes, short real) Relative time ms (2 bytes) Error number (2 bytes) 4 0x81 1 or 9 Address set 110 For tap position message 118 Tap position not used, always 0 not used, always 0 Time (2 bytes) Table 13 Structure of type 4 telegram Message type Variable structure code Reason for transmission Shared address of ASDU Function type Information number 204 0x81 1 or 9 Address set 110 For tap position 54 Tap position Data (4 bytes, short real) Time (4 bytes) SIN (1 byte) Table 14 Structure of type 204 telegram 26 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
6 Tap position telegram 6.2 Examples of messages for tap position telegrams The examples were taken from various log files which recorded the telegram traffic between a PC and the voltage regulator. The voltage regulator address was set to 1. Some of the tap positions in the sample telegrams selected are different in order to show examples with different values. The same tap position is normally reported in all three telegrams. Telegram Comments 68 9 9 68 43 1 7 81 9 1 ff 0 0 d5 16 General query command from PC 68 a a 68 43 1 15 81 1 fe f5 0 0 d7 16 General query command for generic data from PC 68 14 14 68 28 1 4 81 9 1 6e 76 0 0 20 41 0 0 0 0 f3 9b 82 0 d 16 68 14 14 68 28 1 a 81 9 1 fe f4 0 81 36 2 1 7 4 1 0 0 20 41 d7 16 68 11 11 68 28 1 cc 81 9 1 6e 36 0 0 0 0 c7 65 80 0 0 d0 16 68 14 14 68 28 1 4 81 1 1 6e 76 0 0 80 3f 0 0 0 0 fd a4 27 8b a6 16 68 14 14 68 28 1 a 81 1 1 fe f4 0 1 36 2 1 7 4 1 0 0 80 3f ad 16 68 11 11 68 8 1 cc 81 1 1 6e 36 0 0 0 40 18 d5 27 8b 0 db 16 Table 15 Type 4 telegram, sent during general query Type 10 telegram, sent during general query Tap position 0 is reported in bytes 0 20 41 10 Type 204 telegram, sent during general query Tap position 0 is reported in bytes 0 0 0 0 Type 4 telegram, sent due to a change in tap position Tap position 1 is reported in bytes 0 0 80 3f Type 10 telegram, sent due to a change in tap position Tap position 1 is reported in bytes 0 0 80 3f Type 204 telegram, sent due to a change in tap position Tap position 2 is reported in bytes 0 0 0 40 Examples of messages for tap position message telegram Maschinenfabrik Reinhausen 2010 2398402/00 EN TAPCON 240 27
6 Tap position telegram 6.3 Setting time and date settings The TAPCON 240 has a counter module which counts the number of seconds after the supply voltage fails. Its supply is buffered by a large capacitor such that it continues to count for at least a few days even if the TAP- CON 240 is switched off. The time and date are set using an offset value which is converted into the time and date displayed in the measured value plotter screen along with the current counter reading. The interface software sends the time and date from the IEC103 time synchronization telegram to the actual CPU with the regulator firmware. The regulator firmware uses this information to calculate the new offset value to display for time and date in the measured value plotter screen. The counter in the TAPCON 240 counts whole seconds. Because the figures are rounded up or down, the time displayed in the measured value plotter screen may deviate from the time in the time synchronization telegram. The TAPCON 240's time and date will only be set from the control system's time synchronization telegram if both the interface software and firmware in the regulator support this. The telegrams' time stamp at the interface is not affected by the setting for the time displayed by the TAPCON 240. This time stamp is produced locally on the CIC card itself. 28 TAPCON 240 2398402/00 EN Maschinenfabrik Reinhausen 2010
2398402/00 EN 12/10 Maschinenfabrik Reinhausen GmbH Falkensteinstrasse 8 93059 Regensburg Phone: Fax: Email: +49 941 4090 0 +49 941 4090 7001 sales@reinhausen.com www.reinhausen.com