Professional Documents
Culture Documents
4
Westinghouse F4F Slave Protocol
Trace back information:
Workspace Main version a26
Checked in 2014-05-16
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
Contents
1 Copyrights ............................................................................................. 5
2 Introduction ........................................................................................... 7
2.1 This manual .................................................................................. 7
2.2 Use of symbols ............................................................................. 8
2.3 Related documents ....................................................................... 9
2.4 Document conventions ................................................................. 9
2.5 Document revisions ...................................................................... 9
3 Instructions ........................................................................................... 11
3.1 Application programming .............................................................. 11
3.2 Data transfer between the base system and Westinghouse ........ 11
3.2.1 Cross-reference handling ............................................... 11
3.3 Analog inputs ................................................................................ 12
3.3.1 Indications ....................................................................... 12
3.3.2 Time tags ........................................................................ 13
3.3.3 Pulse counters ............................................................... 13
3.4 Process output data ..................................................................... 13
3.4.1 Process commands ........................................................ 14
3.4.2 Analog setpoints ............................................................. 14
3.4.3 System start-up ............................................................... 14
3.5 Device attributes ........................................................................... 16
3.6 Line attributes ............................................................................... 20
3
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
1 Copyrights
The information in this document is subject to change without notice and should not be
construed as a commitment by ABB Oy. ABB Oy assumes no responsibility for any
errors that may appear in this document.
In no event shall ABB Oy be liable for direct, indirect, special, incidental or consequential
damages of any nature or kind arising from the use of this document, nor shall ABB Oy
be liable for incidental or consequential damages arising from the use of any software
or hardware described in this document.
This document and parts thereof must not be reproduced or copied without written
permission from ABB Oy, and the contents thereof must not be imparted to a third party
nor used for any unauthorized purpose.
The software or hardware described in this document is furnished under a license and
may be used, copied, or disclosed only in accordance with the terms of such license.
Copyright © 2014 ABB Oy. All rights reserved.
Trademarks
ABB is a registered trademark of ABB Group. All other brand or product names
mentioned in this document may be trademarks or registered trademarks of their respective
holders.
Guarantee
Please inquire about the terms of guarantee from your nearest ABB representative.
Third Party Copyright Notices
List of third Party Copyrights notices are documented in "3rd party licenses.txt" and
included in SYS600 installation package.
5
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
2 Introduction
General principles
Since the Westinghouse outstation and SYS600/PC-NET are completely different
hardware platforms, the protocol emulation is somewhat restricted and it should therefore
not be assumed that all features available in the Westinghouse outstation are available
in the PC-NET implementation.
The general strategy used in this implementation can be summarized as follows:
• The Westinghouse control center sees SYS600 as a Westinghouse outstation.
• SYS600 contains the necessary protocol conversion features that enable it to send
and receive F4F telegrams.
• The SCIL application program in base systems sees the SYS600 F4F-emulator as
a WES type device.
• Commands and output messages sent by the control center are seen as process inputs
to the SCIL program. When this kind of input is activated, the application reads the
input value and performs scaling and address conversions, before it activates the
desired output.
• The PC-NET has an internal database for data that must be sent to the control center.
The control center sees the PC-NET internal database as input.
The cross-reference information needed to associate data in the base system with the
corresponding Westinghouse objects is included in the process objects of the base system.
7
SYS600 9.4 MicroSCADA Pro 1MRS758098
MicroSCADA
Westinghouse
control center Base System IED
PC-NET
Although warning hazards are related to personal injury, and caution hazards are
associated with equipment or property damage, it should be understood that operation
of damaged equipment could, under certain operational conditions, result in degraded
process performance leading to personal injury or death. Therefore, comply fully with
all warnings and caution notices.
8
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
9
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
3 Instructions
The association between SYS600 objects and Westinghouse objects (IO-module and
word numbers) is implemented using cross-reference information from the process object.
Cross-reference information is added to the process object with the process object editor.
Information is kept in the FX and FI attributes.
The general syntax for an FX cross-reference is:
<STA_NUMBER.><ADDRESS.>(<BIT_NUMBER.>)
11
SYS600 9.4 MicroSCADA Pro 1MRS758098
STA_NUMBER:
Logical STA number (range 1..255). The value is stored as 3 right justified ASCII digits
with leading spaces added if necessary. STA_NUMBER uses positions 1..3 of the FX
string.
ADDRESS:
The address of the Westinghouse object. The address is coded from the IO module
number and word number the following way:
ADDRESS = 10*IO_MODULE_NUMBER + IO_WORD_NUMBER
BIT_NUMBER:
Bit number range 0..15. This is used only if the process object is an indication. The
BIT_NUMBER uses string positions 7,8 of the FX string.
The FI attribute is used for commands and setpoints which are coming from the control
center. The base system database has intermediate process objects for the setpoints and
commands. There is a certain relation between the object address (OA attribute) of the
process object, the module number and the IO number information associated with
setpoint and command messages. The FI attribute of the intermediate process object
informs the SCIL program which is a process object index (of SRIO). The process object
index is connected to that output, see Section 3.4.1 Process commands.
3.3.1 Indications
Indications are manipulated using the ID attribute. The ID attribute changes the state of
one bit in an object word. This means that if double indication is used, it is necessary to
update two ID attributes. The value of the changed word is transferred directly to the
control center, without using any data reduction mechanism. The following example
shows the usage of single indications:
12
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
Time tag events are generated using the EV attribute. Time tag events look like single
indications with a time stamp, which indicates the time when the change occurred. Time
tags may not be written to the PC-NET before the internal time of the PC-NET is
synchronized with the control center. The status of the time synchronization can be
checked with the TI attribute. The following example shows the usage of single
indications:
;READ CROSS REFERENCE INFO
@STA_NR = DEC_SCAN(SUBSTR(‘LN’:PFX(‘IX’),1,3))
@BLK_NR = DEC_SCAN(SUBSTR(‘LN’:PFX(‘IX’),4,3))
@BIT_NR = DEC_SCAN(SUBSTR(‘LN’:PFX(‘IX’),7,2))
;UDATE NET INTERNAL DATABASE
#SET STA’STA_NR’:SEV(%BLK_NR) = (RTU_ATIME(%RT),%BIT_NR,%BI)
The Westinghouse outstation has special counter cards for pulse counting. The
implementation of the pulse counters for the PC-NET has some limitations. This is due
to the fact that the addressing of these counters differs from the normal input cards and
because the hardware has specific commands. The PC-NET does not simulate any counter
commands (for example freeze counters) and it is possible to use only the first four
counters of the card (0..3). The value of the pulse counter uses two successive 16-bit
words. The actual values of the pulse counters are stored in the least significant 16-bits
in a 24-bit long word. The highest 8-bits have hardware specific information of the state
of the pulse counters. This information is simulated by adding a constant to the actual
counter value. The following example shows the usage of the pulse counters:
;READ CROSS REFERENCE INFO
@STA_NR = DEC_SCAN(SUBSTR(‘LN’:PFX(‘IX’),1,3))
@BLK_NR = DEC_SCAN(SUBSTR(‘LN’:PFX(‘IX’),4,3))
;UDATE NET INTERNAL DATABASE
#SET STA’STA_NR’:SAV(%BLK_NR) = ROUND(%AI) MOD 65536
#SET STA’STA_NR’:SAV(%BLK_NR+1) = ROUND(%AI) DIV 65536 + 36864
13
SYS600 9.4 MicroSCADA Pro 1MRS758098
before it is written to the actual output object. The command procedure is activated
through an event channel which is bound to the input object.
The process commands from the Westinghouse control center are handled as digital
inputs, with the object address (OA attribute) in the range 256..4095. The relation between
the object address and the actual address of the command is the following:
Object address = 128*IO_MODULE+16*WORD_NUMBER+BIT_NUMBER+256
When the PC-NET receives a process command message, it reads the object number
from the message and activates the SYS600 process object with this object address. Then
it sets its value according to the command.
Here is a command procedure that is used when no special processing is required for a
command:
@OBJ_IX = ‘LN’:PFI(‘IX’)
#SET ‘LN’:PBO(%OBJ_IX) = %DI
Analog setpoints are seen as AI process objects. The object address (OA attribute) range
is 0..254.
The relation between the object address and the actual address of a setpoint is the
following:
Object address = 8*IO_MODULE+WORD_NUMBER
Object address 255 is reserved for time synchronization information.
Here is a command procedure that is used to handle analog setpoint when no special
processing is needed for the setpoint value:
@OBJ_IX = ‘LN’:PFI(‘IX’)
#SET ‘LN’:PAO(%OBJ_IX) = %AI
When the systems is restarted, the PC-NET program is started automatically and the
configuration must be loaded from SCIL. For more information see Chapter 4
Configuration example.
After start-up, the PC-NET does not reply to any telegrams from Westinghouse because
its internal database is undefined. The application must first incorporate into the PC-NET
internal database all the data that has to be sent to the control center. This is done with
the communication attributes AV and ID. When the PC-NET internal database is updated,
14
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
the application program must set the DI attribute to 1 to start communication between
the systems.
Time tagged events are not allowed to be transferred before the control center has
synchronized the clock of PC-NET. The TI attribute of PC-NET informs the user when
the time is synchronized.
The handling of the clock depends on the type of time synchronization. The Westinghouse
remote terminals may have two types of time synchronization:
• With PIP time synchronization (PIP sync), the control center performs the time
synchronization by sending the time and a PIP code to slave devices by using a
special PIP card. Because PC-NET cannot reply correctly to the PIP code, this
method does not work without changes in the PIP card.
• With soft synchronization (soft sync), the control center sends a specific message
to set the internal time of SYS600. PC-NET supports the soft synchronization method
directly.
The synchronization type affects the handling of the PC-NET internal time, because the
control center sends the absolute time to PC-NET with PIP sync, but not with soft sync.
This means that with PIP sync the control center updates the time of the PC-NET internal
clock every time when synchronization occurs (every 12 min.). SYS600 may also
synchronize the process devices to have the same time as the control center. The base
system can detect the moment of the synchronization using a process object which is
reserved for this purpose (analog setpoint with the object address = 255). PC-NET updates
the value of the process object every time it receives a PIP sync message.
With soft sync, the control center does not send new time to the slave. It only stores the
time of the synchronization.
3. Set time sync mode to 1 (updating the internal clock is always allowed).
#SET STA51:SMD=1
4. Start communication between PC-NET and control center by writing to the flag DI
=1
15
SYS600 9.4 MicroSCADA Pro 1MRS758098
#SET STA51:SDI = 1
;Time synchronization
when OA 255 is updated, time sync is received from the control center
(PC-NET and the base system have the same time)
;Timed events
writing time tagged events to PC-NET is allowed after the first time
synchronization (STA51:STI == 1)
3. Start communication between PC-NET and control center by writing to the flag DI
=1
#SET STA51:SDI = 1
;Time synchronization
after every 10 min. (time channel), the process may be synchronized
;Timed events
writing time tagged events to PC-NET is allowed after the first time
synchronization (STA51:STI = 1).
AS Allocating Application
The application number of the application has reserved the F4F interface.
Access: Read-only
Index range: no indices
16
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
AS Allocating Application
Value range: 0...250
0 = no application
AV Analog Value
The changes in the analog measured values that are to be sent to the control center are
written to this attribute. The value must change more than the data reduction factor
parameter before it can be transmitted to the control center.
Access: No limitations
Index range: 200...317
Value range: 0...65535
The relation between the attribute index and the Westinghouse addressing is the following:
Index = 10 * IO module number + word number
Example:
IO module = 20, Word number = 1, New value= 1111
#SET STA51:SAV(201)=1111
CN Category Number
This attribute determines the transmission priority of certain IO words. All category
numbers are automatically downloaded by the control center when the system starts
up.
Access: Read, conditional write
Index range: 0...317
Value range: 0...7
DI Database Initialized
At system start-up the PC-NET sets DI to 0. When the base system has updated all
values in the PC-NET internal database, this attribute has to be set to 1 by the application
program. PC-NET does not answer to polls before the DI attribute equals 1.
Access: No limitations
Index range: no indices
Value range: 0...1
17
SYS600 9.4 MicroSCADA Pro 1MRS758098
The relation between the attribute index and the Westinghouse addressing is the following:
Index = 10 * IO module number + word number
Example:
IO module = 10, Word number = 2, Bit number= 3 New value= 1
#SET STA51:SEV(102)=(RTU_ATIME(%clock),3,1)
#SET STA51:SEV(102)=(RTU_ATIME(%clock),3,1)
GN Group Number
This attribute determines the data reduction group of an IO word. All the group numbers
are automatically downloaded by the control center when the system starts up.
Access: Read, conditional write
Index range: 200...317
Value range: 0...7
ID Indications
By writing to the ID attribute, the base system is able to send the new value of a binary
object to the control center. If the bit number is 16, the value is used as 16 bit analog
value.
Access: Read, conditional write
Index range: 0...199
18
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
ID Indications
Value range: Vector
Vector: (<BIT_NR>,<VALUE>)
BIT_NR: 0...15
VALUE: 0...1
Example:
IO module = 1, Word number = 3, Bit number = 0 New value = 1
#SET STA51:SID(13)=(0,1)
IU In Use
Set the protocol emulator in/out of use.
Access: No limitations
Index range: none
Value range: 0...1
LI Line number
The number of the line to which the protocol emulator is connected.
Access: No limitations
Index range: none
Value range: 1...12
MI Message Identification
The object address of the process object that receives the system messages from the
device.
Access: No limitations
Index range: none
Default: 26000 + station number
MS Message Application
The number of the application that receives the systems messages.
Access: Read, conditional write
Index range: none
Value range: 1...250
19
SYS600 9.4 MicroSCADA Pro 1MRS758098
SA Station Address
The station address of the protocol emulator. The WES device replies only those mes-
sages which have the right station address.
Access: No limitations
Index range: none
Value range: 1...255
TI Time Initialized
PC-NET sets the value of the TI attribute to 1 when it has received a time synchroniza-
tion message from the control center.
Access: No limitations
Index range: none
Value range: 0...1
20
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
DE CTS Delay
Value range: 0...65535 (in milliseconds)
MS Message Application
The number of the application that is the receiver of the system messages generated by
the line.
Access: Read, conditional write
Index range: 1...12 (NET line numbering)
Value range: 1...250
PY Parity
Specifies the parity check (if any) used for the characters transferred on the line.
Access: Read, conditional write
Index range: 1...12 (NET line numbering)
Value range: 0..2
0 = no parity check
1 = odd parity
2 = even parity
SB Stop Bits
Specifies the number of stop bits attached to each transmitted character .
Access: Read, conditional write
Index range: 1...12 (NET line numbering)
Value range: 1...2
21
SYS600 9.4 MicroSCADA Pro 1MRS758098
PD PIP Code
When PC-NET receives a PIP time synchronisation message from the control center,
it replies with a simulated PIP code which is stored to the PD attribute.
Access: No limitations
Index range: 1...12 (NET line numbering)
Value range: 0...65535
22
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
4 Configuration example
The base system station object must be created. The common way to do this is to add
the following lines to the SYS_BASCON.COM file:
#CREATE STA:V = LIST(-
TT = "EXTERNAL",-
ST = "WES",-
ND = 2,-
TN = 1)
#CREATE STA1:B = %STA
Normally the TN attribute is equal to the number of the station, in this example number
1. The object is created when the system is started.
When the system is running, the Westinghouse F4F line and station objects can be created
online using the following SCIL-script. The PC-NET node number in this example is 2,
the line number is 1 and the station number is also 1.
@NET=2
@STA = 1
@LINE = 1
#SET NET'NET':SPO'LINE'=18
#SET NET'NET':SDV(26)=('STA','LINE')
#SET NET'NET':SSD'LINE'="COM6" ; COM port 6 used.
#SET NET'NET':SBR'LINE'=200
#SET NET'NET':SEN'LINE'=3
#SET NET'NET':SHT'LINE'=150
#SET NET'NET':SMS'LINE'='NET'
#SET STA'STA':SAL=1
#SET STA'STA':SSA='LINE'
#SET STA'STA':SIU=1
#SET NET'NET':SIU'LINE'=1
23
1MRS758098 MicroSCADA Pro SYS600 9.4
Issued: 16.5.2014 Westinghouse F4F Slave Protocol
Version: A/16.5.2014
Configuration Manual
Index
IU .......................................................................... 19
A
Address ................................................................ 12 L
AL ......................................................................... 16
allocating application ............................................ 17 LI ........................................................................... 19
allocation .............................................................. 16 line attributes ........................................................ 20
analog inputs ........................................................ 12 Line number .......................................................... 19
analog setpoints ................................................... 14
analog value ......................................................... 17 M
AS ......................................................................... 17
AV ......................................................................... 17 MD ........................................................................ 20
Message Application ...................................... 19, 21
B Message Identification .......................................... 19
message system .................................................. 19
bit number ............................................................. 12 MI .......................................................................... 19
BIT number ........................................................... 12 MS .................................................................. 19, 21
C P
category number .................................................. 17 Parity .................................................................... 21
CN ........................................................................ 17 PD ......................................................................... 22
CTS Delay ............................................................ 21 PIP Code .............................................................. 22
PIP synchronization .............................................. 15
PIP time synchronization ...................................... 15
D pulse counters ...................................................... 13
database initialized ............................................... 17 PY ......................................................................... 21
data reduction factor table .................................... 18
DE ......................................................................... 21 R
DI .......................................................................... 17
RD ........................................................................ 21
Receiver Data Bit Count ....................................... 21
E RK ......................................................................... 22
EV ......................................................................... 18 RT ......................................................................... 20
RTS ...................................................................... 22
F
S
FT ......................................................................... 18
SA ......................................................................... 20
SB ......................................................................... 21
G soft synchronization .............................................. 15
GN ........................................................................ 18 STA number .......................................................... 12
Group Number ...................................................... 18 Station Address .................................................... 20
Stop Bits ............................................................... 21
SYS_BASCON.COM ............................................ 23
I Sys Reply Time-out .............................................. 20
ID .......................................................................... 12
Indications ............................................................ 19
in use .................................................................... 19
25
SYS600 9.4 MicroSCADA Pro 1MRS758098
26
Contact us
www.abb.com/substationautomation