Protocol IEC 60870 5 104 Slave
Protocol IEC 60870 5 104 Slave
00059.01
GENERAL INFORMATION
1. GENERAL INFORMATION
1.1 Summary
Communication Driver Name: IEC8705104S
Current Version: 2016.2.1
Implementation DLL: T.ProtocolDriver.IEC8705104S.dll
Protocol: IEC-60870-5-104 Slave standard protocol
Interface: TCP/IP
Description: The IEC870504S protocol implements communication with client stations compatible with
this protocol, acting as a slave station (server)..
Clients types supported: Any IED compatible with IEC-60870-5-104.
Communication block size: Maximum 253bytes;
Protocol Options: Counters for sending protocol control messages.
Multi-threading: User defined, five threads per node by default.
Max number of nodes: User defined
PC Hardware requirements: Standard PC Ethernet interface board;
PC Software requirements: Action.NET system.
00056.03 1
GENERAL INFORMATION
C_BO_NA: 51- Write 32 bits Bitstring;
Also, all the variant of the ASDUs above with 56 bits timestamp. The codes above are used when
enrolling points, but the variant with date and timestamp obtained from the tags contained in memory
at the moment are used when sendind unsolicited changes.
When starting (or after closing the Tcp-Ip socket), reaches a DISCONNECTED state (with
the socket on a LISTENING state), waiting for a Tcp-Ip connection from a client;
After accepting a client TCP/IP CONNECT, waits for a “Start of data transmission –
STARTDT”. Until the receiving of this message, stays blocked on an ESTABLISHED state,
not answering or sending any messages;
On receiving of the STARTDT message, answers with confirmation and becomes ready to
receive and send any of the implemented messages, on a STARTED state;
Sends unsolicited messages containing data of objects that had their field states changed;
For each k (a user setting parameter) sent messages, or after a period of time without
messages sent, waits for an acknowledgment message numbered with the sequence
number of the last message sent. In case this message of not received, goes to the state
UNCONF STOPPED;
Always responds to Test Frame messages with confirmation if requested;
This module answers to variable reading – analog and digital -, event transmission and
command execution requests. The implementation has the following characteristics:
Responds to cyclical reading requests (general sampling) of digital points (simple or double)
and analog;
Sends unsolicited states change messages of digital points and analog measures. In events
generation dead band and buffer time should be regarded;
Uses 56 bits timestamp tag;
Accepts commands for single or double digital points;
Accepts Direct or Select Before Operate commands;
Implements point quality analysis (QDS);
2 00056.03
CHANNEL SETTINGS
2. CHANNEL SETTINGS
2.1 Protocol Options
t0 - Timeout of Connection establishment(s) – Maximum waiting time, in seconds, for a client TCP/IP
connection establishment into the LISTENNING port. After this time, this driver actively closes TCP/IP
socket and restart it to LISTENNING state. Allowed values lies between 1 and 255.
t1 - Timeout of send or test APDUs(s) - Maximum acceptable time, in seconds, for the slave to send
regular or test APDUs after receiving the START DT sending confirmation. Allowed values lie between 1
and 255.
t2 - Timeout for ack in case of no data(s)- Maximum waiting time, in seconds, for a pending
acknowledgement before sending an acknowledgement for the last received message. A message with
the sequence number of last received. Values from 1 to 255 are allowed. Besides, t2 must be inferior to
t1.
t3 - Timeout for send test frames(s) - Maximum waiting time, in seconds, for the arrival of any
information (in case of a TCP-IP connection already established) before sending a TEST-FR. The Values
are allowed are from 1 to 255.
Maximum Changes to send a message -To improve communication module performance by sending
changes in analog measurements, you can define this number as the maximum number of changes that
must be accumulated to be sent in a single message, instead of sending a measure in each message.
The number considered good is 30 measures, which is the default value.
Max time to send analog changes (ms) - This time defines the maximum wait for sending a message
with changes in analog measurements. If, since the start of accumulation of measurements for the
same message, this time expires before the arrival of the number of measures defined above, this
module will send the message with the measures that have already arrived. This time is set to 3
seconds.
Password for commands: In order to increase the security in sending commands, normally initiated only
by a change in the state of a tag, it is possible to specify in the Client modules a password of up to 9
digits for the command. Here in this server module you must specify the password used by this Server
module to generate the command for the Client module that will actually send the command to the
field. This password must be the same as that used by the module sender of this command.
Logging Level – You can choose from this list the logging mode created by the communication module.
00056.03 3
CHANNEL SETTINGS
Warning Only Warning and Error messages are registered in the LOG.
2.2 Settings
Listenning Port: Port number used for listening clients connections attempts. The standard defines port
2404, by default. User can use custom port numbers.
NodeConnections: Defines the maximum number of parallel requests that could be sent to each node
(asynchronous communication).
4 00056.03
NODES SETTINGS
3. NODES SETTINGS
Each node is a server station (IED). User may set a single station per channel.
3.1 Parameters
CommonAddress- Application Layer address.
w – Send ack after received w IFormatAPDUs – Number of information messages sent spontaneously to
client until it sends an "acknowledgment" with the sequence number of last message it received.
Allowed values lies between 1 and 32767.
Clock Adjust – Can be set as “True” to adjust the clock on this server compute or “False” to make no
adjustment. This module will adjust clock by changing the machine time to match the one that came on
a synchronization message received. For this to be effective, the master IED must send a time that
comes, for example, from a GPS.
Tag for Comm status - In this field can be indicated the name of an existing tag in the project to receive
indication of success / failure in communication from a functional point of view. The module waits a
maximum of Timeout milliseconds (defined in Protocol Options, as t2 above) for receiving a request from
the client. In failure case, the module places the value of this tag in ZERO. In case of success puts the
value in ONE.
Backup Station – The same settings made to the main station can be made to one backup workstation
(alternative IED) if the there is one in the facility.
00056.03 5
POINTS SETTINGs
4. POINTS SETTINGS
4.1 General
The points can be input or output. The input points, points that are acquired by the protocol, have
basically, two main parameters: the point type and address. The output points, used for remote controls
have an additional address field parameter to specify an output operation. In a given IED or Node all
addresses are unique no matter the kind of the point.
The implemented point types are defined by the data objects defined in the IEC standard, presented
below:
6 00056.03
POINTS SETTINGs
00056.03 7
POINTS SETTINGs
C_SE_NA: 48 - Set point command, normalized value;
For sending set points of 16 bits, normalized to IEDS that support this type of command.
The value to be sent is what is at the moment as the value of the "tag" whose address was sent in the
command.
To select Type:
8 00056.03
POINTS SETTINGs
00056.03 9
POINTS SETTINGs
12 = Persistent Signal (B)
The remaining options are a Select command - just select the device to be controlled, or an Execute
command – which means sending the action command itself. In case of Select, we should add 128 to
the code so far obtained by the sum of the parts A and B.
Example: code = 9, in a simple command means Long Pulse to Turn on the remote device;
Select / Execute
SELECT – There will be no execution per se, ie. there will be no alteration on the server’s
memory. A message will be sent to the log (Trace), indicating the mode SELECT, if the output
point was actually found on the server. In case the point doesn’t exist, a message of error
“POINT NOT FOUND” will appear on the log.
EXECUTE- The command will be executed normally and a message of it will appear on the log,
indicating EXECUTE.
10 00056.03
POINTS SETTINGs
Details Options – B Option
0 – No detail – There will be only a “toggle” on the state of the command destiny point (if zero,
goes to 1 and if 1 goes to zero), any that it may be the value of part A.
4 – Short Pulse – The value of part A will be placed into the destiny point, kept this way for 100
ms, and then restored to its original value.
8 – Long Pulse – The value of part A will be placed into the destiny point, kept this way for 1000
ms, and then restored to its original value.
12 – Persistent Signal – The value of part A will be placed into the destiny point and kept this
way.
In order to set the Action.NET with output parameters, follow the procedure below:
(1) One click over the right border of the address shows three command parameters, in the command
tab:
a. Type
b. Address
c. Command parameter
And the command options:
a. Trip
b. Close
c. Execute
d. Select
(2) Select the desired options and when pressing the left arrow ( ), the binary value corresponding
to the selection will be loaded in the command parameter:
If detailing the type of signal to be sent is necessary, before pressing the left arrow click on details and,
as in the figure below, select the type of the output signal:
00056.03 11
POINTS SETTINGs
12 00056.03
POINTS SETTINGs
C_DC_NA: 46 - Double command ;
C_RC_NA: 47 - Regulating step command ;
C_SE_NA: 48 - Set point command, normalized value ;
C_SE_NC: 50 - Set point command, 32 bits floating point ;
C_BO_NA: 51- Write Bitstring de 32 bits
00056.03 13