Tiav12 Iec61850 Basis
Tiav12 Iec61850 Basis
Tiav12 Iec61850 Basis
USER MANUAL
IEC 61850 Client Basis Library
A documentation paper issued by: Siemens. © Siemens AG 2014. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 2
Contents
2. Installation ............................................................................................ 7
A documentation paper issued by: Siemens. © Siemens AG 2014. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 3
A documentation paper issued by: Siemens. © Siemens AG 2014. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 4
3.13 IEC_WR_RL...................................................................................... 88
3.13.1 Block screenshot ........................................................................ 88
3.13.2 Block description ........................................................................ 88
3.13.3 Called blocks .............................................................................. 88
3.13.4 I/O description ............................................................................ 89
4. Troubleshooting .................................................................................. 90
A. Appendix ............................................................................................. 93
A documentation paper issued by: Siemens. © Siemens AG 2014. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 5
Software:
TIA Portal V12.1 / TIA Portal V13
IEC61850 device engineering tool
IEC Browser
Library:
The library for S7 300 systems is available in two different compilations.
· Lib_TIA_v1[21|3]_IEC61850_Client_300_CP
Using the library with an additional CP module
· Lib_TIA_v1[21|3]_IEC61850_Client_300_TCON
Using the library with the CPUs PN-IO port
See also chapter Simatic Manager – Net configuration
Hardware:
The following Hardware is supported with the IEC61850 block library. (The library therefore is
available in two different compilations)
· S7 300 (Lib_TIA_v1[21|3]_IEC61850_Client_300_[CP|TCON])
· S7 400 (Lib_TIA_v1[21|3]_IEC61850_Client_400)
· S7 1500 (Lib_TIA_v1[21|3]_IEC61850_Client_1500)
For communication over Ethernet it is required to use either:
· CP 343-1EX11 V2.6 Ethernet CP (or higher) or S7 300, S7 CPU with PN-IO interface
· CP 443-1EX11 V2.6 Ethernet CP (or higher) or S7 400 CPU, mEC with PN-IO interface
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 6
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 7
2. Installation
The IEC 61850 Client library comes as global TIA Portal library with the file name
Lib_TIA_v1[21|3]_IEC61850_Client_[3|4|15]00_[CP|TCON].al1[2|3].
The library has to be opened in the project view of TIA Portal. Open the library with op-
tion “Open as read-only” in open file dialog.
After the library was opened you can find out all objects for using the library under-
neath the directory “Master copies”. This directory contains:
· An instruction profile for compiling the library (not S7-1500)
· The IEC61850 data types
· The IEC61850 symbols
· The IEC61850 program blocks
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 8
Copy the libraries instruction profile to your project instruction profiles and activate it
by context menu. Open the profile in editor and change the value in combo box “CPU
family” to the type you are using.
Copy the PLC elements from the library to your PLC object in the project which should
use the IEC 61850 communication.
IEC61850 symbols à PLC tags
IEC61850 data types à PLC data types
IEC61850 program blocks à Program blocks
Figure 4 - PLC
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 9
Note: The IEC61850 library for S7-300/S7-400 PLC types contains function block “Cre-
ateCommunicationBlocks”. This function block has no functionality in IEC61850 com-
munication. The function block is necessary when IEC61850 library is compiled for the
first time. If the library is compiled it makes sure that system blocks FC5 and FC6 will be
generated successful.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 10
· The IEC61850_COM block inputs and outputs are explained detailed in chapter
Block description IEC61850_COM
· MODE:
Here you can choose the mode for the cyclically reading of tags. It is important
to choose the correct mode for your application.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 11
Input name/
device DataSet supported No DataSet supported
properties
Dynamic DataSets Only static DataSets
Device does not support
supported supported DataSets, use LIST
mode, all connected Tag
Device allows dynamic DataSets can only be
blocks are put together
creation of DataSets created with an external
to one READ-request
with IEC61850_COM engineering tool
block
MODE DATASET DATASET LIST
DS_CONF_OP SUPPORTED NOT SPTED NOT SPTED
DS_NAME DataSet name of your Enter the DataSet name,
choice. Will be created which was previously
in device automaticly configured with the ex-
by the library. Entering ternal engineering tool.
only a DataSet name
e.g. “DataSet1” (if re-
will put the DataSet to
sides in VMD area) or
the root directory (VMD
specific area) e.g. “Da- “CTRL/LLN0$$DataSet1”
taSet1” Note: In this case, the
Entering a DataSet configured tag blocks
-
name with Domain have to be engineered
address will create the in the same order like
DataSet in the ade- specified in the previ-
quate directory (do- ously configured Da-
main, item specific) taSet.
e.g. Further: DataSet en-
“CTRL/LLN0$$DataSet1” tries must not contain
objects, but only at-
tributes, except for
ALARM tags.
Table 2 - DATASET configuration
· REPORTING: If your IEC61850 device supports Reporting, enter the DataSet ad-
dress for reporting, containing the list of Report values, in the input
RP_DSADDR. (e.g. “CTRL/LLN0$$DataSet2”). Only the complete address is al-
lowed.
Note: It is recommended to configure not the same DataSet you have config-
ured on input DS_NAME for cyclically reading the tag blocks (e.g. IEC_RD_BO,
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 12
IEC_RD_IN…). For reporting functionality you have to create a separate Data Set
within your IEC61850 server device with the related IEC61850 device engineer-
ing tool. If your IEC61850 server device is a SIPROTEC, the DataSet for reporting
is automatically installed by DIGSI with creating a new report application (see
A.1.3).
Further enter the Report Control block address (e.g.
“CTRL/LLNO$$BR$$brcbA01”) at the input RP_CTRL_ADDR. This Control block
should contain the previous configured DataSet name in the field DataSet after
the communication has started. Please verify with IEC61850 Browser.
· Configure the Input IED_NAME with the IEC 61850 device name. (Please note,
all addresses and names are Case sensitive)
· Set the cycle time of the OB which calls the communication block to SAMPLE_T.
This input should never be 0.0. It’s used for TIMOUT calculation.
· To enable WinCC messaging, set the EN_MSG to 1.
· TIMEOUT is the maximum wait time in milliseconds to wait for an answer after a
READ request.
· Set STRT_COM input to “OFF”, till the engineering work is done; to start com-
munication, set it to “ON”
· Please follow up with adding at least one RD_XXX block. This procedure is ex-
plained in chapter 2.2.2 Configure Tag blocks
The IEC 61850 Client library is designed for a very flexible use. On one hand there is the
IEC61850_COM block which handles the IEC61850 protocol block and management
functionality. On the other hand there are several blocks which can be connected to the
IEC61850_COM block, called tag blocks. Each of the tag blocks represents one value in a
special data format (e.g. INT, REAL, BOOL)
Note: At least one IEC_RD_XXX block has to be connected to the IEC61850_COM block!
Currently the library supports the following tag blocks which read IEC61850 tags cycli-
cally:
· IEC_RD_BO (BOOL)
· IEC_ALARM (BOOL with timestamp)
· IEC_RD_BS (BITSTRING)
· IEC_RD_IN (INT)
· IEC_RD_RL (REAL)
The following tag blocks read values on change with the IEC61850 reporting mecha-
nism
· IEC_REPORT (BOOL on change with timestamp)
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 13
Additionally tags can be written (e.g. substitution values) with the following blocks
· IEC_WR_BO (BOOL)
· IEC_WR_BS (BITSTRING)
· IEC_WR_IN (INT)
· IEC_WR_RL (REAL)
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 14
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 15
Communication via the CP 443-1 /CP343-1 module can be done with the
AG_(L)SEND/AG_(L)RECV communication. Therefore follow up with chapter 2.3.1 Using
network view configuring AG_(L)SEND/AG_(L)RECV
Communication via the PN-IO port requires communication with the T-communication
blocks. If you want to connect an IEC 61850 device with your CPUs PN-IO port follow up
with chapter 2.3.2 Using program block configuring T-communication settings .
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 16
The network view allows configuring the Ethernet connection between the CP443-1
Communication Processor and an active communication partner (IEC 61850 client).
· Navigate to the dedicated S7 PLC in project tree view.
· Open the device configuration editor and switch to network view.
· Choose option “Connections” on toolbar and entry “ISO-on-TCP connection” in
combo box.
· Select PLC object in network view, open its context menu and choose entry “Add
connection”.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 17
· To create a new connection press button “Add” on dialog “Create new connec-
tion” and close the dialog on “Close” button. The new connection was added to
the connection table on tab “Connections”.
· Select the new connection and choose tab “Properties”.
· Choose general entry “Special connection properties” and make sure, “Active
connection establishment” is selected (active).
· Choose “Local ID” and note down the Block Parameters “ID” and “LADDR”. These
parameters are used later for the IEC61850 Server block inputs “CON_ID” and
“LADDR” as connection reference.
· Navigate to “Address details” and enter the Local TSAP and Remote TSAP. These
parameters should be taken out from your IEC 61850 device description. (default
setting is: Local TSAP 00.01 and Remote TSAP 00.01)
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 18
Now you can use the following IEC61850_COM inputs in your program block:
Input
description
name
EN_TCON This Input should be set to “0” disabling T-communication and enabling
AG_(L)SEND/AG_(L)RECV
LADDR Enter the LADDR connection reference parameter from network view
CONN_ID Enter the Connection ID reference parameter from network view
Table 3 - AG_(L)SEND/AG_(L)RECV parameter settings
The following Input parameters have to be setup for the IEC61850_COM block, using
singular communication.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 19
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 20
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 21
This chapter explains how addresses can be copied from StatCon to your blocks in TIA
Portal program. For further information’s about working with the configuration tool,
please refer to the separated StatCon manual.
The first step is to add a new “IEC61850 Client Basic Library” Station device and a new
“External device” in StatCon.
After this, you have to assign the ICD file of your IEC device to the external device. If the
settings of the external device were applied the data structure of your IEC device will be
generated.
Drag the Data Objects of the IEC device, you want to configure, to the tag table of the
“IEC61850 Client Basic Library” Station device. In the tag table a new entry is added
which contains the IEC61850 address of your Data Object with the correct object sepa-
rators as required on tag blocks of the IEC61850 library in TIA Portal.
With the checkbox in table column “Alarm/Report” you can select if the address is used
on a tag block or on an alarm or report block. If you want to use the address on an
alarm or report block, activate the checkbox. After this, the address did not contain the
address part of the IEC61850 Data Attribute name anymore.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 22
To copy the IEC61850 address, open the context of the corresponding tag by a right
click on mouse and select context entry “Copy address to clipboard”.
After this, switch to your TIA Portal program block and paste address value.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 23
3. Block description
3.1 IEC61850_COM
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 24
IEC61850_COM block handles the IEC 61850 protocol. It manages all connected tag
blocks. It recognizes cyclic read tags, creates read requests and dispatches the values to
the connected blocks. Furthermore Reports are dispatched to the dedicated blocks.
In the following the most important inputs and outputs will be explained detailed
RED_CONNECT
Do not change default value of this input (default value 16#8001). This input is just
necessary for H-systems and these systems will not be supported by TIA Portal.
LADDR / CONN_ID
LADDR input and CONN_ID specify the used NetPro connection between the CP 443-1
CP and the IEC 61850 device, when using AG_(L)SEND/AG_(L)RECV communication.
CONN_ID
LADDR input and CONN_ID specify the used NetPro connection between the CP 443-1
CP and the IEC 61850 device, when using AG_(L)SEND/AG_(L)RECV communication.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 25
MODE
Mode input configures the way the IEC61850_COM block requests the cyclically read
values:
DEBUG_MODE (0) means, the IEC_61850_COM block is running in debug mode.
It sends a read request for every tag, which should be read cyclically and evalu-
ates its response. In that mode it can be verified, if an IEC61850 tag address is
not set up correctly. (QBAD = TRUE). This mode is only for debugging.
Caution: This mode does not support IEC_CTRL, IEC_REPORT. Although the
tags blocks can be connected to the IEC61850_COM block, they will not work
properly
DATASET (1) stands for DataSet mode. This means, at beginning a list (DataSet)
is created in the IEC 61850 device. When running in ZYKLCOM, all variables are
read with requesting the list name. Not all devices support the services to create
a DataSet dynamically over the IEC61850 protocol, but allow configuring a Da-
taSet with a Engineering Tool. Therefore it is important to know the existing Da-
taSet with the containing tags. This can be done accessing the device with the
IEC61850 browser. DS_CONF_OP can be set to “NOT_SPTED” and the connected
tag block schedule order should correspond to the order in the DataSet existing
in the device.
LIST (2) mode reads all the connected tags within one request. Therefore a list of
tags containing all addresses is read cyclically. This mode is very scan time con-
suming. It should only used for devices, which not support DataSets.
May be the TIMEOUT variable has to be increased. This is indicated, if
IEC61850_COM block reaches “ZYKLCOM” state but does not keep it stable.
It is recommended to set MODE to DATASET, due to the fact it is the fastest way to
poll tags cyclically. If your IEC 61850 device does not support datasets, use LIST
mode.
DEBUG mode should only used to detect address configuration faults.
LIST mode as well as DATASET mode require a RESET for engineering changes (add,
delete blocks, address change)
Please see also table DATASET configuration
IED_NAME
The IED name has to be set with this input (IED: Intelligent Electronic Device). The IED
name is a string and is set up with your engineering tool. (e.g. IED_001c).
It can be read out with the IEC 61850 browser tool.
DS_CONF_OP
DS_CONF_OP stands for DataSet Configuration Operations. These can either be sup-
ported or be not supported. (dynamic create, delete DataSets). Check your device de-
scription if these operations are supported
DS_NAME
The DataSet name is a string to identify your DataSet to cyclically read tags. The DataSet
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 26
is placed in the IEC61850 device VMD area (entering only the DataSet name like “DS1”
or in the Device Domain/Item area, like “CTRL/LLN0$$DS1”.
RP_CONF_OP
RP_CONF_OP stands for Reporting Configuration Operation. If the IEC 61850 device
supports subscribing and unsubscribing Reports select “SUPPORTED”, otherwise select
“NOT_SPTED”.
If subscribing to reports is selected, the IEC61850_COM block enables the buffered Re-
porting for all tags included in the DataSet specified with RP_DSADDR (whole address)
with the trigger “on change”. Therefore a free Report Control block address which con-
tains the RP_DSADDR in entry DataSet has to be specified in RP_CTRL_ADDR.
If RP_CONF_OP is set to “SUPPORTED”, each installed report block (IEC_REP) will be ini-
tialized during communication startup with the values of the connected IEC61850-
Server device. After initialization, report values will only be changed if a report is trig-
gered through a connected IEC61850-Server device.
RP_DSADDR
pecify the DataSet containing the tags for reporting. The whole DataSet address has to
be configured. E.g. 'CTRL/LLN0$$DataSet1'
RP_CTRL_ADDR
Specify a free Report Control block address to enable reporting. Normally the corre-
sponding Report Control blocks reside in the same tree part like the Report DataSet.
e.g. 'CTRL/LLN0$$BR$$brcbA01'
EN_TCON
This Input should be set to “1” enabling T-communication and disabling
AG_(L)SEND/AG_(L)RECV
IP_ADDR
Enter the IEC61850 server IP address (protection relay), when using T- communication.
TSAP_RID
Enter the IEC61850 server TSAP number (default no: 0001), when using T- communica-
tion.
CPU_ID
Select the communication port. Enter the CPU type, if you use the CPUs PN-IO port. Se-
lect WinAC, if you use a modular Embedded Controller. Select CP443, if you want to run
T-CON communication explicit with a CP 443-1 module. Configuration is only necessary
if T- communication is used.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 27
Interface_ID
Hardware identifier of the local interface. Find out this ID in properties of your commu-
nication module.
TCON_ID/CON_ID
TCON_ID has to be unique for every IEC61850 communication instance running on a S7
CPU. We recommend subsequent numbering for every instance starting with “1”. Con-
figuration is only necessary if T- communication is used.
SAMPLE_T
CFC uses SAMPLE_T to write the block OB cycle time in ms/100. This input should never
be 0.0. It is used for TIMOUT calculation.
EN_MSG
Enables WinCC messaging, if set to “1”
STRT_COM
OFF deactivates the communication via IEC61850. ON starts the communication again.
RESET
Reset deactivates the IEC61850 communication, set all internal variables to INIT value
and re-organizes the internal block list. It has to be excecuted, if for example a tag block
is removed or added or a address has changed.
CONNECT
CONECT output has to be connected with the tag block R0/1_CONNECT input. (singular
mode: connect only R0_CONNECT, redundant mode: connect R0_CONNECT, when
IEC61850_COM is connected with CP Rack 0, otherwise connect R1_CONNECT)
QERR
QERR is set to “1” if any error occurs.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 28
QERR_NO
QERR_NO delivers detailed error information. (Not yet supported)
QRACKF
QRACKF is set to “1”, if a RACK failure occurs
QPARF
QPARF is set to “1”, if plausibility check of connection parameters LADDR and CONN_ID
failed
QCOMF
QCOMF is set to “1”, in case of IEC61850 communication is not in state “ZYKLCOM”.
Communication error.
QB_CR_DS
If QB_CR_DS is set to “1” the DataSet with the name specified in DS_NAME could not be
created.
QB_EN_RP
IF QB_EN_RP is set to “1” writing the Report configuration failed. Reporting could not be
enabled.
Caution: if QB_EN_RP is set to “1”, all connected IEC_REPORT blocks will not work
properly
QSTATE
IEC 61850_COM is mainly organized with a state machine. QSTATE shows the current
state. If communication to the IEC 61850 device is established correctly, the function
block is running in state “ZYKLCOM” after initialization.
The following table lists the possible states
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 29
QRCONNECT
If running in redundant mode, this output has to be connected with the IEC61850_RED
RCONNECT0/1 input
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 30
Depending on used library, not all inputs and outputs in list will still require. So these
inputs and outputs didn´t exists on the block.
These inputs and outputs are marked in list with the extension (opt.).
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 31
I/O De-
I/O I/O Name Type Comment
fault
I RED_CONNECT WORD 16#800 Connection to IEC61850_RED block
1
I LADDR INT 0 Logical CP I/O address
I CONN_ID INT 0 connection ID
I TIMEOUT DINT 1000 Timeout in milliseconds
I MODE INT 0 Debug mode (0) / DATASET (1) / LIST (2)
I IED_NAME STRING XXX IEC61850 IED name
I DS_CONF_OP INT 0 DataSet Configuration Operation SUP-
PORTED / NOT SUPPORTED
I DS_NAME STRING XXX IEC61850 Dataset name
I RP_CON_OP(opt.) INT 0 Report Configuration Operation SUPPORT-
ED / NOT SUPPORTED
I RP_DSADDR(opt.) STRING XXX DataSet address used for Reporting
I RP_CTRL_ADDR(opt.) STRING XXX DataSet Control block address
I MSG_EVID(opt.) DWOR 2 Alarm_8P message ID // depreciated
D
I SAMPLE_T REAL Sample time input (system input)
I EN_MSG(opt.) BOOL 0 1 = enable alarm
I MSG_EVID(opt.) BOOL 0 System input for Alarming
I EN_TCON(opt.) BOOL 0 1=T-communicatoin, 0=AG_SEND/AG_RECV
I IP_ADDR(opt.) STRING 0 IEC61850 device IP address
I TSAP_RID(opt.) WORD 0 TSAP remote ID for T-communication
I CPU_ID(opt.) BYTE 0 Select correct CPU/CP for T-communication
I TCON_ID(opt.) WORD 0 Use unique number for T-communication
instance
IO STRT_COM BOOL 0 1 = start communication
IO RESET BOOL 0 1 = reset function block
O CONNECT BOOL 1 Connection to input R_CONNECT of
READ_IEC blocks
O QERR BOOL 0 General error
O QERR_NO WORD 0 Error number – not yet supported
O QRACKF BOOL 0 1 = Rack failure (power fault, CPU error, …)
O QPARF BOOL 0 1 = Parameter assignment error module
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 32
I/O De-
I/O I/O Name Type Comment
fault
O QCOMF BOOL 0 1 = Communication error, Communication
not running in ZYKLCOM.
O QB_CR_DS BOOL 1 Create DataSet failed
O QB_EN_RP(opt.) BOOL 1 Subscribing Report failed
O QSTATE INT 0 Internal state
O QSNDACT BOOL 0 1 = data sent
O QSNDDIAG WORD 0 Detailed send status
O QRCVDAT BOOL 0 1 = data received
O QRCVDIAG WORD 0 Detailed receive status
O QLEN INT 0 Length of received data
O QMSG_ERR(opt.) BOOL 0 1 = ALARM_8P Error
O QMSG_SUP(opt.) BOOL 0 1 = Message suppression active
O MSG_STAT(opt.) WORD 0 ALARM_8P: STATUS Output
O MSG_ACK(opt.) WORD 0 ALARM_8P: ACKNOWLEDGE Output
O QRACK_NO INT 0 CP Rack-Number
O QSLOT_NO INT 0 CP Slot-Number
O QBLOCKS INT 0 Number of connected blocks
O QTAGS INT 0 Number of connected tags
O QRCONNECT WORD 16#00 Red. Communication output
Table 7 - IEC61850 I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 33
R0/1_CONNECT
R0_CONNECT input has to be connected to the IEC61850_COM block CON-
NECT output.
ADDRESS
The address for the tag has to be configured with the input ADDRESS. The
address has to be entered as IEC61850 address string including the
IEC61850 objects attribute name. (Note: The additional character “$” has to
replaced with “$$” in STEP 7).
Note: The IEC61850 address strings can also be generated and copied via
the StatCon configuration tool.
The function block outputs can be connected with other SIMATIC S7 blocks.
Example for address:
“CTRL/LLN0$$ST$$LEDRs$$stVal”
TIMOUTMS
TIMOUTMS specifies the time in ms the quality gets bad, if there is no actu-
alization of the value.
QERR0
QERR0 is set, if the CFC connection to the IEC61850_COM block can not be
found or is faulty.
QCOMERR0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 34
VALUE
VALUE represents the actual BOOL value addressed through IEC61850_COM
IED_NAME and IEC_RD_BO ADDRESS string.
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 35
I/O De-
I/O I/O Name Type Comment
fault
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O VALUE BOOL 0 Addressed value as BOOL
Table 9- IEC_RD_BO I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 36
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 37
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O VALUE DWORD 0 Addressed value as BITSTRING
Table 11- IEC_RD_BS I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 38
IEC_RD_IN reads one DINT tag cyclically. The Integer size is 32 bit (4byte).
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 39
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O VALUE DINT 0 Addressed value as Integer (DINT)
Table 13- IEC_RD_IN I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 40
IEC_RD_RL reads one REAL tag cyclically. The Floating point value size is 32
bit (4byte).
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 41
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O VALUE REAL 0 Addressed value as Floating point value
(REAL)
Table 15- IEC_RD_RL I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 42
IEC_ALARM reads one BOOL value cyclically with its timestamp which is
updated, if the variable changes.
This block is not supported by S7-300 CPUs.
Note: The address has to be set without the IEC 61850 objects attribute
name, only the IEC 61850 object name has to be set.
Note: The IEC61850 address strings can also be generated and copied via
the StatCon configuration tool.
Example for address:
“CTRL/LLN0$$ST$$LEDRs”
EN_MSG
EN_MSG enables Alarming in WinCC. Special messages can be specified.
Please see chapter 2.3.3 Set up user defined WinCC messages for a explana-
tion on how do setup individual WinCC messages for a function block.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 43
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS BOOL 1 IEC 61850 tag address
I TIMEOUTS INT 5000 Timeout in milliseconds
I COUNTABLE BOOL 1 Internal value
I EN_MSG 1 = enable alarming in WinCC
I MSG_EVID DWORD Alarm_8 message ID
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O ALARM REAL 0 Alarm value (BOOL)
O TIMEST DT Time Stamp of Value
O MSG_DONE BOOL 0 1 = ALARM_8 DONE
O QMSG_ERR BOOL 0 1 = ALARM_8 Error
O QMSG_SUP BOOL 0 1 = Message suppression active
O MSG_STAT WORD 0 ALARM_8P: STATUS Output
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 44
I/O De-
I/O I/O Name Type Comment
fault
O MSG_ACK WORD 0 ALARM_8P: STATUS Output
Table 17- IEC_ALARM I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 45
IEC_REP reads one BOOL value or one BITSTRING value asynchronous via
IEC 61850 Report mechanism with its timestamp. This block is not sup-
ported by S7-300 CPUs.
To use this Report block, the IEC 61850 device has to support the IEC61850
service Report. Further a DataSet containing the tag (addressed with
IEC_REP) has to exist in the device. The DataSet name and its address for
Reporting has to be set in IEC61850_COM: RP_DSADDR. Furthermore ena-
bling Reporting has to be executed successfully. IEC61850_COM: QB_EN_RP
has to be “0” after initialization.
ADDRESS
The address has to be set without the IEC 61850 objects attribute name,
only the IEC 61850 object name has to be set.
Note: The IEC61850 address strings can also be generated and copied via
the StatCon configuration tool.
Example for address:
“CTRL/LLN0$$ST$$LEDRs”
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 46
EN_MSG
EN_MSG enables Alarming in WinCC. Special messages can be specified.
Please see chapter 2.3.3 Set up user defined WinCC messages for a explana-
tion on how do setup individual WinCC messages for a function block.
BS_VALUE
Please set up BS_VALUE depending on the data type of your value. If the
value you want to report is a BITSTRING value, you have to set up BS_VALUE
with 1 (TRUE). If it is a BOOL value, please set up BS_VALUE with 0 (FALSE –
default).
Note:
If adding two IEC_REP tag blocks with the same address, only the first
IEC_REP tag will be updated. The library allows no duplicate IEC_REP
blocks.
3.7.3 Alarming
There are triggered two different messages, depending on the value data
type (BOOL or BITSTRING). For both messages, the timestamps of the
IEC61850 report event (e.g. switch change time in IEC61850 server device)
is delivered to WinCC.
1 BS
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 47
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS BOOL 1 IEC 61850 tag address
I TIMEOUTS INT 5000 Timeout in milliseconds
I COUNTABLE BOOL 1 Internal value
I EN_MSG BOOL 1 1 = enable alarming in WinCC
I BS_VALUE BOOL 0 1 = value with BITRSTING type
I MSG_EVID DWORD Alarm_8 message ID
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O ALARM REAL 0 Alarm value (BOOL)
O TIMEST DT Time Stamp of Value
O MSG_DONE BOOL 0 1 = ALARM_8 DONE
O QMSG_ERR BOOL 0 1 = ALARM_8 Error
O QMSG_SUP BOOL 0 1 = Message suppression active
O MSG_STAT WORD 0 ALARM_8P: STATUS Output
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 48
I/O De-
I/O I/O Name Type Comment
fault
O MSG_ACK WORD 0 ALARM_8P: STATUS Output
Table 19- IEC_REP I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 49
3.8 IEC_CTRL
IEC_CTRL controls an IEC 61850 device switch using the IEC 61850 Control
Service. If CTRL is set to “1” a Control command is executed with the Con-
trol value CTRLVAL.
ADDRESS
The address has to be set without the IEC 61850 objects attribute name,
only the IEC 61850 object name has to be set. Addresses for Control objects
contain the function constraint “CO”
Note: The IEC61850 address strings can also be generated and copied via
the StatCon configuration tool.
Example for address:
“CTRL/LLN0$$CO$$LEDRs”
ORIGIN
Specify the command source (Actor). This string cannot be empty. Default
value is “SIEMENS”
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 50
WITHILOC
If WITHILOC is set, before executing control command an Interlock check is
done in the device
WITHSYNC
If WITHSYNC is set, before executing control command a Synchro check is
done in the device.
TEST
If TEST is set the switch command is only for testing, real switching is not
executed.
CTRLVAL
Specifies the Command value: “0” stands for close, “1” represents open.
SBO
Specifies if “Select before Operate” should be used. If Select before Operate
is selected, first a “Select” telegram is sent to the IEC61850 device, after
acknowledging a second “Operate” telegram is sent, to control the switch. If
SBO is disabled, only “Operate” telegram is sent to the device
QBAD
If DONE bit is not raised up for time TIMOUT, QBAD gets “1”, else QBAD
equals “0”.
DONE
If the switch execution was successful, DONE bit is raised up.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 51
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS BOOL 1 IEC 61850 tag address
I TIMEOUTS INT 5000 Timeout in milliseconds
I COUNTABLE BOOL 1 Internal value
I ORIGIN STRING[52 Actor name, control source
I WITHILOCK 1 = enables Interlock check
I WITHSYNCHR 1 = enables Synchro check
I TEST Only test switch control command
I CTRLVAL Switch command
1: open
0: close
I SBO 1: Select before operate
0: only operate
IO CTRL BOOL Control command trigger, is reset au-
tomatically
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 52
I/O De-
I/O I/O Name Type Comment
fault
O QBAD BOOL 1 0: QDONE raised up after CTRL = 1
1: QDONE did not raise up after CTRL =
1
O QDONE REAL 0 Switch operation executed successfully
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 53
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 54
In the following the most important inputs and outputs will be explained
detailed.
R0/1_CONNECT
R0_CONNECT input has to be connected to the IEC61850_COM block CON-
NECT output.
TIMOUTMS
TIMOUTMS specifies the time in ms the quality gets bad, if there is no actu-
alization of the value.
EN_MSG
EN_MSG enables Alarming in WinCC. Special messages can be specified.
Please see chapter 2.3.3 Set up user defined WinCC messages for a explana-
tion on how do setup individual WinCC messages for a function block.
ALARM_2nd_Block (UNI_RP60R20)
This input only exists on UNI_RP60R20 block. It has to be connected to the
output QALARM of the second block (UNI_RP60R20_2)
QALARM (UNI_RP60R20_2)
This output only exists on UNI_RP60R20_2 block. It has to be connected to
the input ALARM_2nd_Block of the first block (UNI_RP60R20)
DSC_Reportxx
DSC_Reportxx (xx with the number from 01 to 60) is the description text for
the report configured at AD_Rerportxx. It is shown in the WinCC faceplate
for the related report.
AD_Reportxx
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 55
AD_Reportxx (xx with the number from 01 to 60) has to be set up with the
address of the data object within the report dataset. The address has to be
entered as IEC61850 address string without the IEC 61850 objects attribute
name, only the IEC 61850 object name has to be set. (Note: The additional
character “$” has to replaced with “$$” in STEP 7). Example for address:
“CTRL/LLN0$$ST$$LEDRs”
AD_Realxx
AD_Realxx (xx with the number from 01 to 20) has to be set up with the
address of the real value data attribute within IEC61850 server device. The
address has to be entered as IEC61850 address string with the IEC 61850
objects attribute name. (Note: The additional character “$” has to replaced
with “$$” in STEP 7). Example for address:
“CTRL/LLN0$$ST$$LEDRs$$stVal”
SF_Realxx
On SF_Realxx (xx with the number from 01 to 20), the scaling factor for
the real value, addressed on AD_Realxx, can be set.
AD_Error
This input has to be set up with the address of the data attribute (bool val-
ue) which represents the error status of the connected IEC61850 server
device. For a Siprotec it is the attribute: 'CTRL/CALH1$$ST$$GrAlm$$stVal'.
This attribute is preconfigured on AD_Error.
AD_Warning
This input has to be set up with the address of the data attribute (bool val-
ue) which represents the warning status of the connected IEC61850 server
device. For a Siprotec it is the attribute: 'CTRL/CALH1$$ST$$GrWrn$$stVal'.
This attribute is preconfigured on AD_Warning.
QERR0/1
QERR0/1 is set, if the CFC connection to the IEC61850_COM block can not
be found or is faulty.
QCOMERR0/1
QCOMERR0/1 is set, if the IEC 61850 communication the IEC61850_COM
handles is not working properly. IEC61850_COM: QSTATE != ZYKLCOM
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 56
QBAD
QBAD is set, if the values of one or more real tags or reports are not valid
anymore, or if the bool- value, addressed with AD_Error and AD_Warning,
aren’t valid anymore.
QE0_Reportxx
QE0_Reportxx (xx with the number from 01 to 60) is set, if the IEC 61850
communication of the related (internal) report is not working properly (first
IEC61850_COM block).
QE1_Reportxx
QE1_Reportxx (xx with the number from 01 to 60) is set, if the IEC 61850
communication of the related (internal) report is not working properly
(second IEC61850_COM block).
QE0_Realxx
QE0_Realxx (xx with the number from 01 to 20) is set, if the IEC 61850
communication of the related (internal) real value is not working properly
(first IEC61850_COM block).
QE1_Realxx
QE1_Realxx (xx with the number from 01 to 20) is set, if the IEC 61850
communication of the related (internal) real value is not working properly
(second IEC61850_COM block).
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 57
QB_Realxx (xx with the number from 01 to 60) is set, if the value of the
related (internal) real tag is not valid anymore.
Possible reasons are:
· No connection to any IEC61850_COM block (block internal)
· No IEC 61850 communication running
· Address string not set properly, value was not updated for time
TIMOUTMS
V_Reportxx
V_Reportxx (xx with the number from 01 to 60) represents the alarm value
of the related report.
TS_REPORTxx
TS_REPORTxx (xx with the number from 01 to 60) is set with the timestamp
of the related report send by the IEC61850 server device.
V_Realxx
V_Realxx (xx with the number from 01 to 20) is set with the not scaled real
value of the related real tag.
V_ScaledRealxx
V_ScaledRealxx (xx with the number from 01 to 20) is set with the scaled
real value of the related real tag. The scaling factor for the related real val-
ue can be set on input SF_Realxx.
FB520 IEC_RP
SFB35 ALARM_8P
UDT9 DWORD_ACCESS32BIT
FC21 LEN
Table 33 – UNI_RP60R20 and UNI_RP60R20_2 called blocks
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 58
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY Connection to IEC_COM block
I R1_CONNECT ANY Connection to IEC_COM block
I TIMOUTMS INT 5000 Timeout [ms]
I EN_MSG BOOL 1 1 = 8P Alarm
I ALARM_2nd_BLK BOOL 0 Connection to UNI_RP60R20_2 block
I MSG_EVID1 DWORD 2
I MSG_EVID2 DWORD 2
I MSG_EVID3 DWORD 2
I MSG_EVID4 DWORD 2
I MSG_EVID5 DWORD 2
I DSC_Report01 STRING[52] Description for Report Bool 01
I AD_Report01 STRING[52] Tag Address for Report Bool 01
I DSC_Report02 STRING[52] Description for Report Bool 02
I AD_Report02 STRING[52] Tag Address for Report Bool 02
I DSC_Report03 STRING[52] Description for Report Bool 03
I AD_Report03 STRING[52] Tag Address for Report Bool 03
I DSC_Report04 STRING[52] Description for Report Bool 04
I AD_Report04 STRING[52] Tag Address for Report Bool 04
I DSC_Report05 STRING[52] Description for Report Bool 05
I AD_Report05 STRING[52] Tag Address for Report Bool 05
I DSC_Report06 STRING[52] Description for Report Bool 06
I AD_Report06 STRING[52] Tag Address for Report Bool 06
I DSC_Report07 STRING[52] Description for Report Bool 07
I AD_Report07 STRING[52] Tag Address for Report Bool 07
I DSC_Report08 STRING[52] Description for Report Bool 08
I AD_Report08 STRING[52] Tag Address for Report Bool 08
I DSC_Report09 STRING[52] Description for Report Bool 09
I AD_Report09 STRING[52] Tag Address for Report Bool 09
I DSC_Report10 STRING[52] Description for Report Bool 10
I AD_Report10 STRING[52] Tag Address for Report Bool 10
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 59
I/O De-
I/O I/O Name Type Comment
fault
I DSC_Report11 STRING[52] Description for Report Bool 11
I AD_Report11 STRING[52] Tag Address for Report Bool 11
I DSC_Report12 STRING[52] Description for Report Bool 12
I AD_Report12 STRING[52] Tag Address for Report Bool 12
I DSC_Report13 STRING[52] Description for Report Bool 13
I AD_Report13 STRING[52] Tag Address for Report Bool 13
I DSC_Report14 STRING[52] Description for Report Bool 14
I AD_Report14 STRING[52] Tag Address for Report Bool 14
I DSC_Report15 STRING[52] Description for Report Bool 15
I AD_Report15 STRING[52] Tag Address for Report Bool 15
I DSC_Report16 STRING[52] Description for Report Bool 16
I AD_Report16 STRING[52] Tag Address for Report Bool 16
I DSC_Report17 STRING[52] Description for Report Bool 17
I AD_Report17 STRING[52] Tag Address for Report Bool 17
I DSC_Report18 STRING[52] Description for Report Bool 18
I AD_Report18 STRING[52] Tag Address for Report Bool 18
I DSC_Report19 STRING[52] Description for Report Bool 19
I AD_Report19 STRING[52] Tag Address for Report Bool 19
I DSC_Report20 STRING[52] Description for Report Bool 20
I AD_Report20 STRING[52] Tag Address for Report Bool 20
I DSC_Report21 STRING[52] Description for Report Bool 21
I AD_Report21 STRING[52] Tag Address for Report Bool 21
I DSC_Report22 STRING[52] Description for Report Bool 22
I AD_Report22 STRING[52] Tag Address for Report Bool 22
I DSC_Report23 STRING[52] Description for Report Bool 23
I AD_Report23 STRING[52] Tag Address for Report Bool 23
I DSC_Report24 STRING[52] Description for Report Bool 24
I AD_Report24 STRING[52] Tag Address for Report Bool 24
I DSC_Report25 STRING[52] Description for Report Bool 25
I AD_Report25 STRING[52] Tag Address for Report Bool 25
I DSC_Report26 STRING[52] Description for Report Bool 26
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 60
I/O De-
I/O I/O Name Type Comment
fault
I AD_Report26 STRING[52] Tag Address for Report Bool 26
I DSC_Report27 STRING[52] Description for Report Bool 27
I AD_Report27 STRING[52] Tag Address for Report Bool 27
I DSC_Report28 STRING[52] Description for Report Bool 28
I AD_Report28 STRING[52] Tag Address for Report Bool 28
I DSC_Report29 STRING[52] Description for Report Bool 29
I AD_Report29 STRING[52] Tag Address for Report Bool 29
I DSC_Report30 STRING[52] Description for Report Bool 30
I AD_Report30 STRING[52] Tag Address for Report Bool 30
I AD_Real01 STRING[52] Tag Address Real 01
I SF_Real01 INT 0 Scaling Factor Real 01
I AD_Real02 STRING[52] Tag Address Real 02
I SF_Real02 INT 0 Scaling Factor Real 02
I AD_Real03 STRING[52] Tag Address Real 03
I SF_Real03 INT 0 Scaling Factor Real 03
I AD_Real04 STRING[52] Tag Address Real 04
I SF_Real04 INT 0 Scaling Factor Real 04
I AD_Real05 STRING[52] Tag Address Real 05
I SF_Real05 INT 0 Scaling Factor Real 05
I AD_Real06 STRING[52] Tag Address Real 06
I SF_Real06 INT 0 Scaling Factor Real 06
I AD_Real07 STRING[52] Tag Address Real 07
I SF_Real07 INT 0 Scaling Factor Real 07
I AD_Real08 STRING[52] Tag Address Real 08
I SF_Real08 INT 0 Scaling Factor Real 08
I AD_Real09 STRING[52] Tag Address Real 09
I SF_Real09 INT 0 Scaling Factor Real 09
I AD_Real10 STRING[52] Tag Address Real 10
I SF_Real10 INT 0 Scaling Factor Real 10
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 61
I/O De-
I/O I/O Name Type Comment
fault
I AD_Error STRING[52] 'CTRL/C Tag Address Group alarm
ALH1$$
ST$$Gr
Alm$$st
Val'
I AD_Warning STRING[52] 'CTRL/C Tag Address Group warning
ALH1$$
ST$$Gr
Wrn$$st
Val'
O QERR0 BOOL 1
O QCONERR0 BOOL 1
O QERR1 BOOL 1
O QCONERR1 BOOL 1
O QBAD BOOL 1
O QE0_Report01 BOOL 0
O QE1_Report01 BOOL 0
O QB_Report01 BOOL 0
O V_Report01 BOOL 0 Value Report BOOL 01
O TS_REPORT01 TIME
O QE0_Report02 BOOL 0
O QE1_Report02 BOOL 0
O QB_Report02 BOOL 0
O V_Report02 BOOL 0 Value Report BOOL 02
O TS_REPORT02 TIME
O QE0_Report03 BOOL 0
O QE1_Report03 BOOL 0
O QB_Report03 BOOL 0
O V_Report03 BOOL 0 Value Report BOOL 03
O TS_REPORT03 TIME
O QE0_Report04 BOOL 0
O QE1_Report04 BOOL 0
O QB_Report04 BOOL 0
O V_Report04 BOOL 0 Value Report BOOL 04
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 62
I/O De-
I/O I/O Name Type Comment
fault
O TS_REPORT04 TIME
O QE0_Report05 BOOL 0
O QE1_Report05 BOOL 0
O QB_Report05 BOOL 0
O V_Report05 BOOL 0 Value Report BOOL 05
O TS_REPORT05 TIME
O QE0_Report06 BOOL 0
O QE1_Report06 BOOL 0
O QB_Report06 BOOL 0
O V_Report06 BOOL 0 Value Report BOOL 06
O TS_REPORT06 TIME
O QE0_Report07 BOOL 0
O QE1_Report07 BOOL 0
O QB_Report07 BOOL 0
O V_Report07 BOOL 0 Value Report BOOL 07
O TS_REPORT07 TIME
O QE0_Report08 BOOL 0
O QE1_Report08 BOOL 0
O QB_Report08 BOOL 0
O V_Report08 BOOL 0 Value Report BOOL 08
O TS_REPORT08 TIME
O QE0_Report09 BOOL 0
O QE1_Report09 BOOL 0
O QB_Report09 BOOL 0
O V_Report09 BOOL 0 Value Report BOOL 09
O TS_REPORT09 TIME
O QE0_Report10 BOOL 0
O QE1_Report10 BOOL 0
O QB_Report10 BOOL 0
O V_Report10 BOOL 0 Value Report BOOL 10
O TS_REPORT10 TIME
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 63
I/O De-
I/O I/O Name Type Comment
fault
O QE0_Report11 BOOL 0
O QE1_Report11 BOOL 0
O QB_Report11 BOOL 0
O V_Report11 BOOL 0 Value Report BOOL 11
O TS_REPORT11 TIME
O QE0_Report12 BOOL 0
O QE1_Report12 BOOL 0
O QB_Report12 BOOL 0
O V_Report12 BOOL 0 Value Report BOOL 12
O TS_REPORT12 TIME
O QE0_Report13 BOOL 0
O QE1_Report13 BOOL 0
O QB_Report13 BOOL 0
O V_Report13 BOOL 0 Value Report BOOL 13
O TS_REPORT13 TIME
O QE0_Report14 BOOL 0
O QE1_Report14 BOOL 0
O QB_Report14 BOOL 0
O V_Report14 BOOL 0 Value Report BOOL 14
O TS_REPORT14 TIME
O QE0_Report15 BOOL 0
O QE1_Report15 BOOL 0
O QB_Report15 BOOL 0
O V_Report15 BOOL 0 Value Report BOOL 15
O TS_REPORT15 TIME
O QE0_Report16 BOOL 0
O QE1_Report16 BOOL 0
O QB_Report16 BOOL 0
O V_Report16 BOOL 0 Value Report BOOL 16
O TS_REPORT16 TIME
O QE0_Report17 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 64
I/O De-
I/O I/O Name Type Comment
fault
O QE1_Report17 BOOL 0
O QB_Report17 BOOL 0
O V_Report17 BOOL 0 Value Report BOOL 17
O TS_REPORT17 TIME
O QE0_Report18 BOOL 0
O QE1_Report18 BOOL 0
O QB_Report18 BOOL 0
O V_Report18 BOOL 0 Value Report BOOL 18
O TS_REPORT18 TIME
O QE0_Report19 BOOL 0
O QE1_Report19 BOOL 0
O QB_Report19 BOOL 0
O V_Report19 BOOL 0 Value Report BOOL 19
O TS_REPORT19 TIME
O QE0_Report20 BOOL 0
O QE1_Report20 BOOL 0
O QB_Report20 BOOL 0
O V_Report20 BOOL 0 Value Report BOOL 20
O TS_REPORT20 TIME
O QE0_Report21 BOOL 0
O QE1_Report21 BOOL 0
O QB_Report21 BOOL 0
O V_Report21 BOOL 0 Value Report BOOL 21
O TS_REPORT21 TIME
O QE0_Report22 BOOL 0
O QE1_Report22 BOOL 0
O QB_Report22 BOOL 0
O V_Report22 BOOL 0 Value Report BOOL 22
O TS_REPORT22 TIME
O QE0_Report23 BOOL 0
O QE1_Report23 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 65
I/O De-
I/O I/O Name Type Comment
fault
O QB_Report23 BOOL 0
O V_Report23 BOOL 0 Value Report BOOL 23
O TS_REPORT23 TIME
O QE0_Report24 BOOL 0
O QE1_Report24 BOOL 0
O QB_Report24 BOOL 0
O V_Report24 BOOL 0 Value Report BOOL 24
O TS_REPORT24 TIME
O QE0_Report25 BOOL 0
O QE1_Report25 BOOL 0
O QB_Report25 BOOL 0
O V_Report25 BOOL 0 Value Report BOOL 25
O TS_REPORT25 TIME
O QE0_Report26 BOOL 0
O QE1_Report26 BOOL 0
O QB_Report26 BOOL 0
O V_Report26 BOOL 0 Value Report BOOL 26
O TS_REPORT26 TIME
O QE0_Report27 BOOL 0
O QE1_Report27 BOOL 0
O QB_Report27 BOOL 0
O V_Report27 BOOL 0 Value Report BOOL 27
O TS_REPORT27 TIME
O QE0_Report28 BOOL 0
O QE1_Report28 BOOL 0
O QB_Report28 BOOL 0
O V_Report28 BOOL 0 Value Report BOOL 28
O TS_REPORT28 TIME
O QE0_Report29 BOOL 0
O QE1_Report29 BOOL 0
O QB_Report29 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 66
I/O De-
I/O I/O Name Type Comment
fault
O V_Report29 BOOL 0 Value Report BOOL 29
O TS_REPORT29 TIME
O QE0_Report30 BOOL 0
O QE1_Report30 BOOL 0
O QB_Report30 BOOL 0
O V_Report30 BOOL 0 Value Report BOOL 30
O TS_REPORT30 TIME
O QE0_Real01 BOOL 0
O QE1_Real01 BOOL 0
O QB_Real01 BOOL 0
O V_Real01 REAL 0.0 Value REAL 01
O V_ScaledReal01 REAL 0.0 Scaled Value REAL 01
O QE0_Real02 BOOL 0
O QE1_Real02 BOOL 0
O QB_Real02 BOOL 0
O V_Real02 REAL 0.0 Value REAL 02
O V_ScaledReal02 REAL 0.0 Scaled Value REAL 02
O QE0_Real03 BOOL 0
O QE1_Real03 BOOL 0
O QB_Real03 BOOL 0
O V_Real03 REAL 0.0 Value REAL 03
O V_ScaledReal03 REAL 0.0 Scaled Value REAL 03
O QE0_Real04 BOOL 0
O QE1_Real04 BOOL 0
O QB_Real04 BOOL 0
O V_Real04 REAL 0.0 Value REAL 04
O V_ScaledReal04 REAL 0.0 Scaled Value REAL 04
O QE0_Real05 BOOL 0
O QE1_Real05 BOOL 0
O QB_Real05 BOOL 0
O V_Real05 REAL 0.0 Value REAL 05
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 67
I/O De-
I/O I/O Name Type Comment
fault
O V_ScaledReal05 REAL 0.0 Scaled Value REAL 05
O QE0_Real06 BOOL 0
O QE1_Real06 BOOL 0
O QB_Real06 BOOL 0
O V_Real06 REAL 0.0 Value REAL 06
O V_ScaledReal06 REAL 0.0 Scaled Value REAL 06
O QE0_Real07 BOOL 0
O QE1_Real07 BOOL 0
O QB_Real07 BOOL 0
O V_Real07 REAL 0.0 Value REAL 07
O V_ScaledReal07 REAL 0.0 Scaled Value REAL 07
O QE0_Real08 BOOL 0
O QE1_Real08 BOOL 0
O QB_Real08 BOOL 0
O V_Real08 REAL 0.0 Value REAL 08
O V_ScaledReal08 REAL 0.0 Scaled Value REAL 08
O QE0_Real09 BOOL 0
O QE1_Real09 BOOL 0
O QB_Real09 BOOL 0
O V_Real09 REAL 0.0 Value REAL 09
O V_ScaledReal09 REAL 0.0 Scaled Value REAL 09
O QE0_Real10 BOOL 0
O QE1_Real10 BOOL 0
O QB_Real10 BOOL 0
O V_Real10 REAL 0.0 Value REAL 10
O V_ScaledReal10 REAL 0.0 Scaled Value REAL 10
O QE0_Error BOOL 0
O QE1_Error BOOL 0
O QB_Error BOOL 0
O Error BOOL 0 Group alarm
O QE0_Warning BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 68
I/O De-
I/O I/O Name Type Comment
fault
O QE1_Warning BOOL 0
O QB_Warning BOOL 0
O Warning BOOL 0 Group warning
O STATUS_RP_QE0_1 DWORD 16#000 Report Status Word QE0_1 for WinCC/Scada
00000
O STATUS_RP_QE1_1 DWORD 16#000 Report Status Word QE1_1 for WinCC/Scada
00000
O STATUS_RP_QB_1 DWORD 16#000 Report Status Word QBx 1 for WinCC/Scada
00000
O STATUS_R_QE0_1 DWORD 16#000 Real Status Word QE0_1 for WinCC/Scada
00000
O STATUS_R_QE1_1 DWORD 16#000 Real Status Word QE1_1 for WinCC/Scada
00000
O STATUS_R_QB_1 DWORD 16#000 Real Status Word QB_1 for WinCC/Scada
00000
O MSG_DONE1 BOOL 0
O MSG_STAT1 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK1 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR1 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP1 BOOL 0 1 = Message suppression active
O MSG_DONE2 BOOL 0
O MSG_STAT2 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK2 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR2 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP2 BOOL 0 1 = Message suppression active
O MSG_DONE3 BOOL 0
O MSG_STAT3 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK3 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR3 BOOL 0 1 = ALARM_8P Error
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 69
I/O De-
I/O I/O Name Type Comment
fault
O QMSG_SUP3 BOOL 0 1 = Message suppression active
O MSG_DONE4 BOOL 0
O MSG_STAT4 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK4 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR4 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP4 BOOL 0 1 = Message suppression active
O QMSG_SUP BOOL 0 1 = one Message suppression active
Table 34 - UNI_RP60R20 I/O description
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY Connection to IEC_COM block
I R1_CONNECT ANY Connection to IEC_COM block
I TIMOUTMS INT 5000 Timeout [ms]
I EN_MSG BOOL 1 1 = 8P Alarm
I MSG_EVID1 DWORD 2
I MSG_EVID2 DWORD 2
I MSG_EVID3 DWORD 2
I MSG_EVID4 DWORD 2
I DSC_Report31 STRING[52] Description for Report Bool 31
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 70
I/O De-
I/O I/O Name Type Comment
fault
I AD_Report31 STRING[52] Tag Address for Report Bool 31
I DSC_Report32 STRING[52] Description for Report Bool 32
I AD_Report32 STRING[52] Tag Address for Report Bool 32
I DSC_Report33 STRING[52] Description for Report Bool 33
I AD_Report33 STRING[52] Tag Address for Report Bool 33
I DSC_Report34 STRING[52] Description for Report Bool 34
I AD_Report34 STRING[52] Tag Address for Report Bool 34
I DSC_Report35 STRING[52] Description for Report Bool 35
I AD_Report35 STRING[52] Tag Address for Report Bool 35
I DSC_Report36 STRING[52] Description for Report Bool 36
I AD_Report36 STRING[52] Tag Address for Report Bool 36
I DSC_Report37 STRING[52] Description for Report Bool 37
I AD_Report37 STRING[52] Tag Address for Report Bool 37
I DSC_Report38 STRING[52] Description for Report Bool 38
I AD_Report38 STRING[52] Tag Address for Report Bool 38
I DSC_Report39 STRING[52] Description for Report Bool 39
I AD_Report39 STRING[52] Tag Address for Report Bool 39
I DSC_Report40 STRING[52] Description for Report Bool 40
I AD_Report40 STRING[52] Tag Address for Report Bool 40
I DSC_Report41 STRING[52] Description for Report Bool 41
I AD_Report41 STRING[52] Tag Address for Report Bool 41
I DSC_Report42 STRING[52] Description for Report Bool 42
I AD_Report42 STRING[52] Tag Address for Report Bool 42
I DSC_Report43 STRING[52] Description for Report Bool 43
I AD_Report43 STRING[52] Tag Address for Report Bool 43
I DSC_Report44 STRING[52] Description for Report Bool 44
I AD_Report44 STRING[52] Tag Address for Report Bool 44
I DSC_Report45 STRING[52] Description for Report Bool 45
I AD_Report45 STRING[52] Tag Address for Report Bool 45
I DSC_Report46 STRING[52] Description for Report Bool 46
I AD_Report46 STRING[52] Tag Address for Report Bool 46
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 71
I/O De-
I/O I/O Name Type Comment
fault
I DSC_Report47 STRING[52] Description for Report Bool 47
I AD_Report47 STRING[52] Tag Address for Report Bool 47
I DSC_Report48 STRING[52] Description for Report Bool 48
I AD_Report48 STRING[52] Tag Address for Report Bool 48
I DSC_Report49 STRING[52] Description for Report Bool 49
I AD_Report49 STRING[52] Tag Address for Report Bool 49
I DSC_Report50 STRING[52] Description for Report Bool 50
I AD_Report50 STRING[52] Tag Address for Report Bool 50
I DSC_Report51 STRING[52] Description for Report Bool 51
I AD_Report51 STRING[52] Tag Address for Report Bool 51
I DSC_Report52 STRING[52] Description for Report Bool 52
I AD_Report52 STRING[52] Tag Address for Report Bool 52
I DSC_Report53 STRING[52] Description for Report Bool 53
I AD_Report53 STRING[52] Tag Address for Report Bool 53
I DSC_Report54 STRING[52] Description for Report Bool 54
I AD_Report54 STRING[52] Tag Address for Report Bool 54
I DSC_Report55 STRING[52] Description for Report Bool 55
I AD_Report55 STRING[52] Tag Address for Report Bool 55
I DSC_Report56 STRING[52] Description for Report Bool 56
I AD_Report56 STRING[52] Tag Address for Report Bool 56
I DSC_Report57 STRING[52] Description for Report Bool 57
I AD_Report57 STRING[52] Tag Address for Report Bool 57
I DSC_Report58 STRING[52] Description for Report Bool 58
I AD_Report58 STRING[52] Tag Address for Report Bool 58
I DSC_Report59 STRING[52] Description for Report Bool 59
I AD_Report59 STRING[52] Tag Address for Report Bool 59
I DSC_Report60 STRING[52] Description for Report Bool 60
I AD_Report60 STRING[52] Tag Address for Report Bool 60
I AD_Real11 STRING[52] Tag Address Real 11
I SF_Real11 INT 0 Scaling Factor Real 11
I AD_Real12 STRING[52] Tag Address Real 12
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 72
I/O De-
I/O I/O Name Type Comment
fault
I SF_Real12 INT 0 Scaling Factor Real 12
I AD_Real13 STRING[52] Tag Address Real 13
I SF_Real13 INT 0 Scaling Factor Real 13
I AD_Real14 STRING[52] Tag Address Real 14
I SF_Real14 INT 0 Scaling Factor Real 14
I AD_Real15 STRING[52] Tag Address Real 15
I SF_Real15 INT 0 Scaling Factor Real 15
I AD_Real16 STRING[52] Tag Address Real 16
I SF_Real16 INT 0 Scaling Factor Real 16
I AD_Real17 STRING[52] Tag Address Real 17
I SF_Real17 INT 0 Scaling Factor Real 17
I AD_Real18 STRING[52] Tag Address Real 18
I SF_Real18 INT 0 Scaling Factor Real 18
I AD_Real19 STRING[52] Tag Address Real 19
I SF_Real19 INT 0 Scaling Factor Real 19
I AD_Real20 STRING[52] Tag Address Real 20
I SF_Real20 INT 0 Scaling Factor Real 20
I AD_Error STRING[52] 'CTRL/C Tag Address Group alarm
ALH1$$
ST$$Gr
Alm$$st
Val'
I AD_Warning STRING[52] 'CTRL/C Tag Address Group warning
ALH1$$
ST$$Gr
Wrn$$st
Val'
O QERR0 BOOL 1
O QCONERR0 BOOL 1
O QERR1 BOOL 1
O QCONERR1 BOOL 1
O QBAD BOOL 1
O QALARM BOOL 0
O QE0_Report31 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 73
I/O De-
I/O I/O Name Type Comment
fault
O QE1_Report31 BOOL 0
O QB_Report31 BOOL 0
O V_Report31 BOOL 0 Value Report BOOL 31
O TS_REPORT31 TIME
O QE0_Report32 BOOL 0
O QE1_Report32 BOOL 0
O QB_Report32 BOOL 0
O V_Report32 BOOL 0 Value Report BOOL 32
O TS_REPORT32 TIME
O QE0_Report33 BOOL 0
O QE1_Report33 BOOL 0
O QB_Report33 BOOL 0
O V_Report33 BOOL 0 Value Report BOOL 33
O TS_REPORT33 TIME
O QE0_Report34 BOOL 0
O QE1_Report34 BOOL 0
O QB_Report34 BOOL 0
O V_Report34 BOOL 0 Value Report BOOL 34
O TS_REPORT34 TIME
O QE0_Report35 BOOL 0
O QE1_Report35 BOOL 0
O QB_Report35 BOOL 0
O V_Report35 BOOL 0 Value Report BOOL 35
O TS_REPORT35 TIME
O QE0_Report36 BOOL 0
O QE1_Report36 BOOL 0
O QB_Report36 BOOL 0
O V_Report36 BOOL 0 Value Report BOOL 36
O TS_REPORT36 TIME
O QE0_Report37 BOOL 0
O QE1_Report37 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 74
I/O De-
I/O I/O Name Type Comment
fault
O QB_Report37 BOOL 0
O V_Report37 BOOL 0 Value Report BOOL 37
O TS_REPORT37 TIME
O QE0_Report38 BOOL 0
O QE1_Report38 BOOL 0
O QB_Report38 BOOL 0
O V_Report38 BOOL 0 Value Report BOOL 38
O TS_REPORT38 TIME
O QE0_Report39 BOOL 0
O QE1_Report39 BOOL 0
O QB_Report39 BOOL 0
O V_Report39 BOOL 0 Value Report BOOL 39
O TS_REPORT39 TIME
O QE0_Report40 BOOL 0
O QE1_Report40 BOOL 0
O QB_Report40 BOOL 0
O V_Report40 BOOL 0 Value Report BOOL 40
O TS_REPORT40 TIME
O QE0_Report41 BOOL 0
O QE1_Report41 BOOL 0
O QB_Report41 BOOL 0
O V_Report41 BOOL 0 Value Report BOOL 41
O TS_REPORT41 TIME
O QE0_Report42 BOOL 0
O QE1_Report42 BOOL 0
O QB_Report42 BOOL 0
O V_Report42 BOOL 0 Value Report BOOL 42
O TS_REPORT42 TIME
O QE0_Report43 BOOL 0
O QE1_Report43 BOOL 0
O QB_Report43 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 75
I/O De-
I/O I/O Name Type Comment
fault
O V_Report43 BOOL 0 Value Report BOOL 43
O TS_REPORT43 TIME
O QE0_Report44 BOOL 0
O QE1_Report44 BOOL 0
O QB_Report44 BOOL 0
O V_Report44 BOOL 0 Value Report BOOL 44
O TS_REPORT44 TIME
O QE0_Report45 BOOL 0
O QE1_Report45 BOOL 0
O QB_Report45 BOOL 0
O V_Report45 BOOL 0 Value Report BOOL 45
O TS_REPORT45 TIME
O QE0_Report46 BOOL 0
O QE1_Report46 BOOL 0
O QB_Report46 BOOL 0
O V_Report46 BOOL 0 Value Report BOOL 46
O TS_REPORT46 TIME
O QE0_Report47 BOOL 0
O QE1_Report47 BOOL 0
O QB_Report47 BOOL 0
O V_Report47 BOOL 0 Value Report BOOL 47
O TS_REPORT47 TIME
O QE0_Report48 BOOL 0
O QE1_Report48 BOOL 0
O QB_Report48 BOOL 0
O V_Report48 BOOL 0 Value Report BOOL 48
O TS_REPORT48 TIME
O QE0_Report49 BOOL 0
O QE1_Report49 BOOL 0
O QB_Report49 BOOL 0
O V_Report49 BOOL 0 Value Report BOOL 49
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 76
I/O De-
I/O I/O Name Type Comment
fault
O TS_REPORT49 TIME
O QE0_Report50 BOOL 0
O QE1_Report50 BOOL 0
O QB_Report50 BOOL 0
O V_Report50 BOOL 0 Value Report BOOL 50
O TS_REPORT50 TIME
O QE0_Report51 BOOL 0
O QE1_Report51 BOOL 0
O QB_Report51 BOOL 0
O V_Report51 BOOL 0 Value Report BOOL 51
O TS_REPORT51 TIME
O QE0_Report52 BOOL 0
O QE1_Report52 BOOL 0
O QB_Report52 BOOL 0
O V_Report52 BOOL 0 Value Report BOOL 52
O TS_REPORT52 TIME
O QE0_Report53 BOOL 0
O QE1_Report53 BOOL 0
O QB_Report53 BOOL 0
O V_Report53 BOOL 0 Value Report BOOL 53
O TS_REPORT53 TIME
O QE0_Report54 BOOL 0
O QE1_Report54 BOOL 0
O QB_Report54 BOOL 0
O V_Report54 BOOL 0 Value Report BOOL 54
O TS_REPORT54 TIME
O QE0_Report55 BOOL 0
O QE1_Report55 BOOL 0
O QB_Report55 BOOL 0
O V_Report55 BOOL 0 Value Report BOOL 55
O TS_REPORT55 TIME
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 77
I/O De-
I/O I/O Name Type Comment
fault
O QE0_Report56 BOOL 0
O QE1_Report56 BOOL 0
O QB_Report56 BOOL 0
O V_Report56 BOOL 0 Value Report BOOL 56
O TS_REPORT56 TIME
O QE0_Report57 BOOL 0
O QE1_Report57 BOOL 0
O QB_Report57 BOOL 0
O V_Report57 BOOL 0 Value Report BOOL 57
O TS_REPORT57 TIME
O QE0_Report58 BOOL 0
O QE1_Report58 BOOL 0
O QB_Report58 BOOL 0
O V_Report58 BOOL 0 Value Report BOOL 58
O TS_REPORT58 TIME
O QE0_Report59 BOOL 0
O QE1_Report59 BOOL 0
O QB_Report59 BOOL 0
O V_Report59 BOOL 0 Value Report BOOL 59
O TS_REPORT59 TIME
O QE0_Report60 BOOL 0
O QE1_Report60 BOOL 0
O QB_Report60 BOOL 0
O V_Report60 BOOL 0 Value Report BOOL 60
O TS_REPORT60 TIME
O QE0_Real11 BOOL 0
O QE1_Real11 BOOL 0
O QB_Real11 BOOL 0
O V_Real11 REAL 0.0 Value REAL 11
O V_ScaledReal11 REAL 0.0 Scaled Value REAL 11
O QE0_Real12 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 78
I/O De-
I/O I/O Name Type Comment
fault
O QE1_Real12 BOOL 0
O QB_Real12 BOOL 0
O V_Real12 REAL 0.0 Value REAL 12
O V_ScaledReal12 REAL 0.0 Scaled Value REAL 12
O QE0_Real13 BOOL 0
O QE1_Real13 BOOL 0
O QB_Real13 BOOL 0
O V_Real13 REAL 0.0 Value REAL 13
O V_ScaledReal13 REAL 0.0 Scaled Value REAL 13
O QE0_Real14 BOOL 0
O QE1_Real14 BOOL 0
O QB_Real14 BOOL 0
O V_Real14 REAL 0.0 Value REAL 14
O V_ScaledReal14 REAL 0.0 Scaled Value REAL 14
O QE0_Real15 BOOL 0
O QE1_Real15 BOOL 0
O QB_Real15 BOOL 0
O V_Real15 REAL 0.0 Value REAL 15
O V_ScaledReal15 REAL 0.0 Scaled Value REAL 15
O QE0_Real16 BOOL 0
O QE1_Real16 BOOL 0
O QB_Real16 BOOL 0
O V_Real16 REAL 0.0 Value REAL 16
O V_ScaledReal16 REAL 0.0 Scaled Value REAL 16
O QE0_Real17 BOOL 0
O QE1_Real17 BOOL 0
O QB_Real17 BOOL 0
O V_Real17 REAL 0.0 Value REAL 17
O V_ScaledReal17 REAL 0.0 Scaled Value REAL 17
O QE0_Real18 BOOL 0
O QE1_Real18 BOOL 0
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 79
I/O De-
I/O I/O Name Type Comment
fault
O QB_Real18 BOOL 0
O V_Real18 REAL 0.0 Value REAL 18
O V_ScaledReal18 REAL 0.0 Scaled Value REAL 18
O QE0_Real19 BOOL 0
O QE1_Real19 BOOL 0
O QB_Real19 BOOL 0
O V_Real19 REAL 0.0 Value REAL 19
O V_ScaledReal19 REAL 0.0 Scaled Value REAL 19
O QE0_Real20 BOOL 0
O QE1_Real20 BOOL 0
O QB_Real20 BOOL 0
O V_Real20 REAL 0.0 Value REAL 20
O V_ScaledReal20 REAL 0.0 Scaled Value REAL 20
O QE0_Error BOOL 0
O QE1_Error BOOL 0
O QB_Error BOOL 0
O Error BOOL 0 Group alarm
O QE0_Warning BOOL 0
O QE1_Warning BOOL 0
O QB_Warning BOOL 0
O Warning BOOL 0 Group warning
O STATUS_RP_QE0_2 DWORD 16#000 Report Status Word QE0_2 for WinCC/Scada
00000
O STATUS_RP_QE1_2 DWORD 16#000 Report Status Word QE1_2 for WinCC/Scada
00000
O STATUS_RP_QB_2 DWORD 16#000 Report Status Word QB 2 for WinCC/Scada
00000
O STATUS_R_QE0_2 DWORD 16#000 Real Status Word QE0_2 for WinCC/Scada
00000
O STATUS_R_QE1_2 DWORD 16#000 Real Status Word QE1_2 for WinCC/Scada
00000
O STATUS_R_QB_2 DWORD 16#000 Real Status Word QB_2 for WinCC/Scada
00000
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 80
I/O De-
I/O I/O Name Type Comment
fault
O MSG_DONE5 BOOL 0
O MSG_STAT5 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK5 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR5 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP5 BOOL 0 1 = Message suppression active
O MSG_DONE6 BOOL 0
O MSG_STAT6 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK6 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR6 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP6 BOOL 0 1 = Message suppression active
O MSG_DONE7 BOOL 0
O MSG_STAT7 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK7 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR7 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP7 BOOL 0 1 = Message suppression active
O MSG_DONE8 BOOL 0
O MSG_STAT8 WORD 16#000 ALARM_8P: STATUS Output
0
O MSG_ACK8 WORD 16#000 ALARM_8P: ACK_STATE Output
0
O QMSG_ERR8 BOOL 0 1 = ALARM_8P Error
O QMSG_SUP8 BOOL 0 1 = Message suppression active
O QMSG_SUP BOOL 1 = Message suppression active
Table 35 - UNI_RP60R20_2 I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 81
3.10 IEC_WR_BO
R0/1_CONNECT
R0_CONNECT input has to be connected to the IEC61850_COM block CON-
NECT output.
ADDRESS
The address for the tag has to be configured with the input ADDRESS. The
address has to be entered as IEC61850 address string including the
IEC61850 objects attribute name. (Note: The additional character “$” has to
replaced with “$$” in STEP 7)
Note: The IEC61850 address strings can also be generated and copied via
the StatCon configuration tool.
Example for address:
“CTRL/LLN0$$ST$$LEDRs$$stVal”
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 82
TIMOUTMS
TIMOUTMS specifies the time in ms the quality gets bad, if the IEC61850
device does not respond with a positive acknowledge in between.
VALUE
Represents the Boolean value which should be written to the IEC61850 de-
vice. Write is performed on value change.
RETRANS
If RETRANS is set to “TRUE”, the current value will be retransmitted. Input
resets automatically to “FALSE”.
QERR0
QERR0 is set, if the CFC connection to the IEC61850_COM block can not be
found or is faulty.
QCOMERR0
QCOMERR0 is set, if the IEC 61850 communication the IEC61850_COM
handles is not working properly. IEC61850_COM: QSTATE != ZYKLCOM
QBAD
QBAD is set, if the value is not valid anymore.
Possible reasons are:
· No connection to any IEC61850_COM block
· No IEC 61850 communication running
· Address string not set properly, value was not written successfully in
between specified timeout
· Access rights: no permission for writing value / value cannot be
overwritten
DONE
Done will be set to TRUE, after transmission of value
RETVAL
RETVAL shows theIEC61850 Write return value.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 83
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
I VALUE BOOL 1 Tag value to be written in device
I RETRANS BOOL 1 Retransmission of value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O QDONE BOOL 0 Addressed value as BITSTRING
O RETVAL BYTE 0 Return code
Table 22- IEC_RD_BS I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 84
3.11 IEC_WR_BS
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 85
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
I VALUE DWORD 1 Tag value to be written in device
I RETRANS BOOL 1 Retransmission of value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O QDONE BOOL 0 Addressed value as BITSTRING
O RETVAL BYTE 0 Return code
Table 24- IEC_RD_BS I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 86
3.12 IEC_WR_IN
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 87
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
I VALUE DINT 1 Tag value to be written in device
I RETRANS BOOL 1 Retransmission of value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O QDONE BOOL 0 Addressed value as BITSTRING
O RETVAL BYTE 0 Return code
Table 26- IEC_RD_IN I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 88
3.13 IEC_WR_RL
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | TIA Portal V12.1/V13 Client Library IEC61850 | 89
I/O De-
I/O I/O Name Type Comment
fault
I R0_CONNECT ANY(Struct) Connection to IEC61850_COM block DB
I ADDRESS STRING[52] IEC61850 tag address
I TIMEOUTS INT 5000 Timeout in ms
I COUNTABLE BOOL 1 Internal value
I VALUE REAL 1 Tag value to be written in device
I RETRANS BOOL 1 Retransmission of value
O QERR0 BOOL 1 1 = Connection to IEC61850_COM block
0 faulty
O QCOMERR0 BOOL 1 Communication IEC61850_COM block 0
not ok
O QBAD BOOL 1 0 = Data valid
O QDONE BOOL 0 Addressed value as BITSTRING
O RETVAL BYTE 0 Return code
Table 28- IEC_RD_IN I/O description
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 90
4. Troubleshooting
No Problem Possible Reason Solution
1. IEC61850_COM does not get into MODE: DATASET, some of the tag ad- Change mode into LIST, to see which tags keep QBAD
QSTATE “ZYKLCOM” dresses are not valid = “TRUE”. Check tag addresses with the IEC 61850
browser tool.
MODE: DATASET, DataSet modifica- Either check if static DataSet can be used. Set
tions are not supported with IEC DS_CONF_OP to “FALSE” and ensure your tag block
61850 deivce sequence is the same like your tag order in the exist-
ing DataSet.
Another possibility is to use “LIST” mode instead of
DATASET mode.
TIMEOUT or SAMPLE_T are not set Check TIMEOUT value. It’s the time the block waits for
properly a successful response to its requests. It should be at
minimum 1000ms. Running in LIST mode it should be
at minimum 2000ms
Check SAMPLE_T. It should represent the current scan
time / 100.
IEC61850 _COM block is placed in Ensure, the IEC61850_COM block is placed only in one
more than one cyclic OBs OB (e.g. OB35)
2. IEC_RD_XX tag QBAD = 1 Invalid IEC 61850 address string Check the address of your tag with the IEC61850
browser. Remember that in Step 7 the additional sign
“$” has to be replaced with “$$”
Further keep in mind, for IEC_ALARM, IEC_REPORT and
IEC_CTRL only the address including the IEC61850
object name has to be set. For all others the IEC
61850 attribute has to be added to the address.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 91
A. Appendix
A.1.1 Prearrangement
· Make sure, DIGSI is installed and your SIPROTEC device exists in the
Devices folder. If not, please install DigSi and then add the SIPROTEC
device to your Device Folder. The complete Device MLFB number is
necessary for this operation.
· Make sure, an IEC61850 Station exists in your Device Folder. If not:
right click in your Device Folder, select “Insert new Object” and then
“IEC61850 Station”
· Right click onto the IEC61850 Station. Select “Object Properties”
Go to the topic “Communicator”, select your device and execute
“Add”. Your device is now part of the IEC61850 station.
Press “Ok” and leave the Properties dialog.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 94
Example:
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 95
If more than one IEC_REP blocks are connected, for every IEC_REP block the
interconnection corresponding to the address configured in the CFC has to
be added to the Report Application.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 96
e.g. IED_0031/CTRL/LLN0/LEDRs
After downloading to the Siprotec, you can inspect all changes on the de-
vice with the IEC61850 Browser tool. The Report Applications are now in-
stalled in the device and for each Report Application one DataSet has been
added automatically with the tags you have added into the interconnection
window of DIGSI.
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 97
If you’re using the library in redundant mode, you have to give address of
the Report Application, you can find in IEC61850 Browser tool, to the
RP_CTRL_AD0 and RP_CTRL_AD1 input parameter of IEC61850_REP block.
But because the DataSets for both Report Applications are identical, it is
only necessary to give one of the two created DataSets. Please configure
one of the both DataSets on the input parameter RP_DSADDR (see 2.2.1).
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.
USER MANUAL | PCS7 V7.1 Client Library IEC61850 | 98
www.siemens.com Siemens AG
© Siemens AG 2015
A documentation paper issued by: Siemens. © Siemens AG 2015. All rights reser ved.