Programming and configuration for
IEC 60870-5-104 using TIA Portal
Configuration and Programming
CP 1542SP-1 IRC and CP1243-1
Page 2
Configuration and Programming
PLC IP Addressing
Page 3
Configuration and Programming
Station IP Addressing
Page 4
Configuration and Programming
Select communication type
Page 5
Configuration and Programming
Service port
Page 6
Configuration and Programming
ASDU Address
Page 7
Configuration and Programming
Setting max time between S and O for testing
Page 8
Configuration and Programming
IEC 104 Clients
Page 9
Configuration and Programming
IEC 104 Redundant Clients
Page 10
Configuration and Programming
Time sync for RTUs
Page 11
Configuration and Programming
Data source
Page 12
Configuration and Programming
Data mapping
Page 13
Configuration and Programming
Setting for SBO
Page 14
// Simulate Single Point Info
Configuration and Programming "SCADA".SP_Info := ("SCADA".SP_Info OR "SCADA".SP_CMD_Close) AND NOT "SCADA".SP_CMD_Open;
Output simulation // Simulate Messurement value
"R_TRIG_Sim"(CLK:="Clock_5Hz");
"Random"(#RandomNumber);
IF "SCADA".SP_Info AND "R_TRIG_Sim".Q THEN
"SCADA".Measurement := "SCADA".Measurement + 0.5;
IF "SCADA".Measurement >= "SCADA".Setpoint THEN
// Simulate TAP "SCADA".Measurement := "SCADA".Setpoint + #RandomNumber;
IF "SCADA".TAP_Cmd[0] = 0 AND "SCADA".TAP_Cmd[1] = 1 THEN END_IF;
"SCADA".TAP_Position := "SCADA".TAP_Position + 1; END_IF;
IF "SCADA".TAP_Position >= 255 THEN // Simulate Double Point Info
"SCADA".TAP_Position := 255; IF "SCADA".DP_Cmd[0] = 0 AND "SCADA".DP_Cmd[1] = 1 THEN
END_IF; "DP_Cmd".Now := 1;
"SCADA".TAP_Cmd[0] := "SCADA".TAP_Cmd[1] := 0; END_IF;
END_IF; IF "SCADA".DP_Cmd[0] = 1 AND "SCADA".DP_Cmd[1] = 0 THEN
"DP_Cmd".Now := 2;
IF "SCADA".TAP_Cmd[0] = 1 AND "SCADA".TAP_Cmd[1] = 0 THEN END_IF;
"SCADA".TAP_Position := "SCADA".TAP_Position - 1; "R_TRIG_DP_Cmd"(CLK:="DP_Cmd".Now <> "DP_Cmd".Prev);
IF "SCADA".TAP_Position <= 0 THEN IF "R_TRIG_DP_Cmd".Q THEN
"SCADA".TAP_Position := 0; "SCADA".DP_Info[0] := "SCADA".DP_Cmd[0];
END_IF; "SCADA".DP_Info[1] := "SCADA".DP_Cmd[1];
"SCADA".TAP_Cmd[0] := "SCADA".TAP_Cmd[1] := 0; "DP_Cmd".Prev := "DP_Cmd".Now;
END_IF; END_IF;
Page 15
Commissioning
Page 16
Commissioning
IEC Client setting before connect
Page 17
Commissioning
Single point command testing
Page 18
Commissioning
Single point command testing
Page 19
Commissioning
Server -> Client data flow
Page 20
Commissioning
Double point command testing
Page 21
Commissioning
Double point command testing
Page 22
Commissioning
Regulating Step Command testing
Page 23
Commissioning
Regulating Step Command testing
Page 24
Commissioning
Setpoint Command testing
Page 25
Commissioning
Setpoint Command testing
Page 26
Commissioning
Select Before Operate testing
Page 27
Commissioning
Select Before Operate testing
Page 28
Commissioning
Select Before Operate testing
Page 29
Commissioning
Select Before Operate testing
Page 30
Commissioning
Select Before Operate testing
Page 31
Commissioning
Connect to 2 RTUs
Page 32
Commissioning
2 Clients
Page 33
Commissioning
Testing using Freyr IEC104 Client
Page 34
Commissioning
Freyr IEC104 Client. Server -> Client data flow and Menu to Point Command
Page 35
Commissioning
Freyr IEC104 Client. Single Point Command
Page 36
Commissioning
Freyr IEC104 Client. Two Clients
Page 37
IEC 61850
Page 38
Intelligent Electronic Devices (IED)
• IEDs act as IEC 61850 server in the IEC
61850 network
• All Siemens SIPROTEC 4, SIPROTEC
Compact and SIPROTEC 5 devices
support IEC 61850
• More than 300,000 SIPROTEC devices
installed worldwide
• Only one SIPROTEC device for all tasks in
the feeder:
Contacting – Controlling – Measuring –
Automating
Page 39 Restricted | © Siemens 2023 | Lifecycle Management Suite | June 2023
Product
Merging the two worlds
Operation and Monitoring Operation and Monitoring
Process Energy
Process Energy
Plant
Field Swg Drive Motor IED1 IED2 IED3 IED4
Page 40
SCADA SCADA Historian
Client Client and Client
Structure
To A0, A2
IEC-60870-5-
104 module S7-1200
SCADA SCADA
Primary Secondary Server
Server
Managed 1517H 1517H
switch
HMI
Switch
Remote I/O
Local
I/Os
Control
system Gateway to others
Modbus devices
IED IED IED IED
Page 41
Topologies S7-1500
S7-1500
S7-1500
IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED
S7-1500 S7-1500 S7-1500 S7-1500
R/H R/H R/H R/H
IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED IED
Page 42
IEC 61850 Overview
Page 43
IEC 61850
The Hierarchical Data Model
Physical Device
Logical Device
Logical Node
Data Object
Data Attribute
Data or data attributes can be
M Mandatory
O Optional Eg:
C Conditional SEPAM_IED/LD0/XCBR1.Pos.stVal
Page 44
IEC 61850
Device Model
Physical Device Logical Device
Station Bus
GGIO GAPC Limit overflow
HMI
General Input / Output Automatic Process
Control Switch position
PTRC controller
Trip Conditioning Trip Decision
PTOC
Overcurrent Protection Start value
Process Bus
gateway
RDRE
XCBR
Disturbance recorder
RMS
Circuit Breaker
MMXU Measurements
Measurement Unit
Example
for some information
Page 45
IEC 61850
Logical Nodes
L System LN (2) M Metering and measurement (8)
P Protection (28) S Sensor and monitoring (4)
R Protection related (10) X Switchgear (2)
C Control (5) T Instrument transformers (2)
G Generic (3) Y Power transformers (4)
I Interfacing and archiving (4) Z Other power system
A Automatic control (4) equipment (15)
Examples:
■ PDIF: Differential protection ■ CSWI: Switch controller
■ RBRF: Breaker failure ■ MMXU: Measurement unit
■ XCBR: Circuit breaker ■ YPTR: Power transformer
Page 46
IEC 61850
Data Objects
Represents the data within a Logical Node
• Voltage, current, breaker position, protection settings…
Defined by groupings of specific data attribute types
• Description, status, measurements, control…
Uses standardized names instead of registers
• PhV – Phase to neutral voltage (ie: not 41001)
Abstract Services functions
• GetDataValues
• GetAllDataValues
• SetDataValues
Page 47
IEC 61850
Data Attributes
ctlVal Controllable value
d Textual description of the value
db Deadband
mag Value
q Quality of the attribute represented by the value
stVal Status value of the data
t Timestamp of the last data update
…
Page 48
IEC 61850
Functional Constraints (FC)
ST Status Values ● SP Setpoint
MX Measurands (analogue) ● SV Substitution
CO Control ● SG Setting Group
CF Configuration ● SE Setting Group Editable
DC Descriptions
EX Extended Definition
● BR Buffered Report
● RP Unbuffered Report
● LG Logging
● GO GOOSE Control
● GS GSSE Control
● MS Multicast SV Control
● US Unicast SV Control
Page 49
IEC 61850
Self Description
A standardized device description language
• Substation Configuration Description Language (SCL)
• Based on XML (Extensible Mark up Language)
Describes IED communication and IED parameters to the client
Provides a compatible way to exchange IED and substation automation system
descriptions between IED engineering tools of different manufacturers
What are you?
Client Server
I am… , I have
these models, …
Self description
Now I
Understand it
Page 50