Académique Documents
Professionnel Documents
Culture Documents
3
CDC-II Slave Protocol
1MRS756649 MicroSCADA Pro SYS 600 9.3
Issued: 31.3.2010 CDC-II Slave Protocol
Version: A/31.3.2010
Configuration Manual
Contents
Copyrights .....................................................................................5
1. Introduction ...............................................................................7
1.1. This manual ...................................................................................7
1.2. Use of symbols ..............................................................................7
1.3. Related documents .......................................................................7
1.4. Document conventions ..................................................................7
1.5. Document revisions .......................................................................8
2. Safety information .....................................................................9
2.1. Backup copies ...............................................................................9
2.2. Fatal errors ....................................................................................9
3. Instructions ..............................................................................11
3.1. Product overview .........................................................................11
3.2. Configuration ...............................................................................11
3.2.1. Base system configuration ...............................................12
3.2.2. Communication system configuration ..............................14
3.2.2.1. Station object attributes ......................................16
3.2.2.2. Data transfer attributes .......................................17
3.2.2.3. Control Attributes ...............................................18
3.2.2.4. Monitoring attributes ...........................................19
3.2.2.5. Special Attributes ...............................................20
3.2.3. CDC-II Slave configuration ..............................................20
3.2.3.1. Logging parameters (LOG) ................................21
3.2.3.2. SYS 600 connection parameters (CPI) ..............23
3.2.3.3. RTU emulation parameters ................................23
3.2.3.4. Communication links ..........................................25
3.2.3.5. Various parameters ............................................28
3.3. CDC-II Slave Monitoring Tool .....................................................31
3.3.1. Scan3X ............................................................................33
3.3.2. Sequence of Events (SOE) ..............................................34
3.3.3. SOE size ..........................................................................36
4. Technical Description .............................................................37
4.1. Signal Engineering ......................................................................37
4.1.1. Signal addressing, indications .........................................40
4.1.2. Signal addressing, commands ........................................40
4.1.2.1. Bistable Controls ................................................41
4.1.2.2. Specifying Accumulator’s Reset Points ..............41
4.1.3. Signal addressing, SOE ..................................................42
3
SYS 600 9.3 MicroSCADA Pro 1MRS756649
5. Terminology ............................................................................ 43
6. Abbreviations ......................................................................... 45
4
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
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 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 alicense and
may be used, copied, or disclosed only in accordance with the terms of such license.
Copyright © 2010 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.
5
6
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
1. Introduction
7
SYS 600 9.3 MicroSCADA Pro 1MRS756649
• Press ESC E C indicates that you press and release each key in sequence (to copy
a selected object in this case).
• The names of push and toggle buttons are boldfaced. For example, click OK.
• The names of menus and menu items are boldfaced. For example, the File menu.
• The following convention is used for menu operations: Menu Name > Menu
Item > Cascaded Menu Item. For example: select File > Open > New
Project.
• The Start menu name always refers to the Start menu on the Windows Task
Bar.
• System prompts/messages and user responses/input are shown in the Courier
font. For example, if you enter a value out of range, the following message is
displayed:
Entered value is not valid. The value must be 0 to
30.
You may be told to enter the string MIF349 in a field. The string is shown as follows
in the procedure:
MIF349
• Variables are shown using lowercase letters:
sequence name
8
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
2. Safety information
This chapter gives information about the prevention of hazards.
System backup
Usually a system backup is taken after the application is made. A backup should be
taken again when changes are made to the SYS 600 system. For example, if the
driver configuration or the network set-up is changed.
Application backup
An application backup is taken simultaneously with the system backup after the
application is made. A backup should be taken again when changes are made to the
application. For example, if pictures or databases are edited or new pictures are
added.
9
SYS 600 9.3 MicroSCADA Pro 1MRS756649
3. In Windows, the data kept in the main memory at the moment of a fatal error is
placed in the drwtsn32.log file. It is placed in a system folder, for example,
WINNT. Analyse and copy the data in this file.
4. Restart the system.
Report the program break-down together with the possible SYS 600 error messages
and the information from the drwtsn32.log file to the SYS 600 supplier.
Status codes
Error messages in SCIL are called status codes. A list of status codes and short
explanations can be found in SYS 600 Status Codes.
10
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
3. Instructions
A050165
The default mode of operation is a standard CDC Type 2 protocol, but also a variant
CDC Type 2 'Sync' is supported. In the CDC-II Sync protocol, each message is
started with two start characters 16hex 16hex and also the block framing is different
from the standard CDC Type 2. This variant is configured using a communication
link parameter 'use_async_io'.
3.2. Configuration
The configuration can be divided into following parts:
• Base system configuration
• Communication system configuration
• CDC-II Slave configuration
11
SYS 600 9.3 MicroSCADA Pro 1MRS756649
MicroSCADA
Node Number: 9
Station Address: 209
CPI Library
CDC-II Slave
Node Number: 2
Station Address: 202
RTU
A050164
Configuration steps
Add the CDC-II Slave protocol connectivity option to the base system:
1. Define a LAN link.
Example
#CREATE LIN:V = LIST(LT = "LAN")
#CREATE LIN2:B = %LIN
2. Define a NOD object.
Example
#CREATE NOD:V = LIST( LI = 2, SA = 202)
#CREATE NOD2:B = %NOD
3. Define from one to eight stations for CDC-II Logical Remote Units (LRU).
12
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
Example
#CREATE STA:V = LIST(-
TT = "EXTERNAL",-
ST = "RTU",-
ND = 2,-
TN = 1)
#CREATE STA1:B = %STA
4. To enable COM 500i for the application, add or uncomment the following line
to the application definitions:
QD = (1,1,0,0,0,0,1,1,1,1,1,1,1,1,1),-
;Parallel queue dedication/
;Needed in COM 500 Applications
5. SYS_BASCON.COM starts the CDC-II Slave protocol with the following
command:
@ss = ops_process("\sc\prog\cdc_slave\cdcslave.exe","\sc\prog\cdc_slave")
You only have to uncomment the command line from the SYS_BASCON.COM
file.
6. Use the SYS 600 Control Panel to prepare the application for COM 500i
Configuration file
Example
;
; SYS_BASCON.COM
; BASE SYSTEM CONFIGURATION
TEMPLATE
;
************************************************************************
#CREATE SYS:B = LIST(-
SA = 203,- ;STATION ADDRESS OF BASE SYSTEM
ND = 3,- ;NODE NUMBER OF BASE SYSTEM
DN = 3,- ;DEFAULT NET NODE NUMBER
DS = "RTU",- ;STA TYPES: E.G. STA,RTU,SPA,REX
FS = "NEVER" ;FILE SYNCH CRITERIA
;***********************************************************************
;
; COMMUNICATION LINKS
#CREATE LIN:V = LIST(LT = "LAN")
#CREATE LIN2:B = %LIN
;***********************************************************************
;
; COMMUNICATION NODES
#CREATE NOD:V = LIST( LI = 2, SA = 202)
#CREATE NOD2:B = %NOD
;***********************************************************************
;
; PRINTERS
;***********************************************************************
;
; MONITORS
#LOOP_WITH I = 1..5
#CREATE MON'I':B = LIST(-
TT = "LOCAL",- ;TRANSLATION TYPE
DT = "X") ;X MONITOR
@MON_MAP(%I) = -1
13
SYS 600 9.3 MicroSCADA Pro 1MRS756649
#LOOP_END
#LOOP_WITH I = 6..10
#CREATE MON'I':B = LIST(-
TT = "LOCAL",- ;TRANSLATION TYPE
DT = "VS") ;VISUAL SCIL MONITOR
@MON_MAP(%I) = -1
#LOOP_END
;***********************************************************************
;
; APPLICATIONS
#CREATE APL:V = LIST(-
TT = "LOCAL",- ;TRANSLATION TYPE
NA = "CPI_TEST",- ;NAME OF APPLICATION DIRECTORY
AS = "HOT",- ;APPLICATION STATE: COLD,WARM,HOT
HB = 2000,- ;HISTORY BUFFER SIZE)
RC = VECTOR("FILE_FUNCTIONS_CREATE_DIRECTORIES"),-
AP = (1,2),-
MO = %MON_MAP,- ;MONITOR MAPPING
PR = (1,2,3)) ;PRINTER MAPPING
;QD = (1,1,0,0,0,0,1,1,1,1,1,1,1,1,1),-;Parallel queue dedication/
;Needed in COM 500 Applications
[RTU]
rtu_base_address=10
xref_path=c:\sc\apl\tutor\pict
soe_buffer_size=4096
bistable_timeout=0
ignore_feedbacks=yes
com500_version=3N
report_commands=yes
14
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
[LOG]
log_path=.
log_level=255
log_all=y
;log_conf_xref_point=No
;log_conf_ini=y
;log_comm=y
;log_dl=y
;log_al=y
;log_storage_al=y
[LINKS]
Master_links=1
;use_async_io=yes
;Link_status_timeout=30
;Link_status_address=2100
;Lru_reset_timeout=900
;CTS_Timeout=16
Pretransmit=16
[Master_0_link]
Number_of_lines=2
;xref_numbers=1,2,3
;lru_numbers=2,3,4
xref_numbers=1
lru_numbers=1
permit_time_sync=y
master_name=TP NCC 1
[Master_0_Line_0]
port=COM3
speed=1200
rx_carrier=switched
tx_carrier=switched
dtr_control=disabled
dsr_flow=no
idle_char=FF
rx_squelch=0
mark_limit=8
dtr_map=n
idle_time=0
[master_0_Line_1]
port=COM4
speed=1200
rx_carrier=switched
tx_carrier=switched
dtr_control=disabled
dsr_flow=no
idle_char=FF
rx_squelch=0
mark_limit=16
dtr_map=n
idle_time=0
[master_1_link]
Number_of_lines=2
xref_numbers=4,3,1
lru_numbers=5,7,8
permit_time_sync=y
master_name="TP NCC 2"
[master_1_line_0]
port=COM5
;speed=1200
15
SYS 600 9.3 MicroSCADA Pro 1MRS756649
;cts_flow=y
;dsr_flow=y
;dtr_control=disable
;rx_carrier=switched
;tx_carrier=switched
;cts_timeout=0
;idle_char=FF
;rx_squelch=0
;mark_limit=16
;dtr_map=n
;idle_time=0
[master_1_line_1]
port=COM6
;speed=1200
;cts_flow=y
;dsr_flow=y
;dtr_control=disable
;rx_carrier=switched
;tx_carrier=switched
;cts_timeout=0
;idle_char=FF
;rx_squelch=0
;mark_limit=16
;dtr_map=n
;idle_time=0
[COMPLIANCE]
;SOE_Dump_CPU_Report=BIT_C_ENABLE_DUMP
;SOE_Read_Test_Points=NO
;SOE_Event_Inactive=NO
;CD_Bit_Set=POINT_SCAN
;time_tune=0
scan12_report_type=all
;scan3_report_type=all
;compensate_recv_errors=no
wait_all_points=no
;reset_bit=mem3
;long_select_response=yes
;wait_all_points=no
AL Allocation
The CDC-II Slave Emulator CPI application is always reserved for a particular
SYS 600 application, therefore the AL attribute is always 1.
Data type: Integer
Value: 1
Access: Read
16
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
AS Allocation application
The CDC-II Slave Emulator configuration file provides an application number. The
application number is reported to the base system. All the LRUs’ station objects are
allocated to the same application.
Data type: Integer
Access: Read-only
IU In Use
Sets in use flag to CDC-II Slave Emulator. Any LRU can be set in or out of use.
Data type: Integer
Value: 0 or 1
Access: Read/Write
LI Line Number
This attribute is supported, but setting it on does not have an effect on CDC-II Slave
Emulator.
Data type: Integer
Value: 1..12
Access: Read/Write
MI Message Identification
Default value 1000 + station number
Access: Read-only
MS Message System
Data type: Integer
Access: Read-only
SA Station Address
The value 1 corresponds to offset 0 etc. The station objects’ initial set is read from
the configuration file.
Value: 1...4
Access: Read-only
AV Analog Value
COM 500i sends the AV attribute to CDC-II Slave Emulator that passes a re-routed
Analog Value.
Data type: Vector
Index range: 128...255
Access: Read/Write
17
SYS 600 9.3 MicroSCADA Pro 1MRS756649
DD Double inDication
COM 500i sends the DD attribute to CDC-II Slave Emulator that passes a re-routed
Double Indication Signal. Only values 0 and 1 are reported to CDC-II Master.
Data type: Vector
Index range: 0...63
Access: Read/Write
ID InDication
COM 500i sends the ID attribute to CDC-II Slave Emulator that passes a re-routed
Indication Signal.
Data type: Vector
Index range: 0...63
Access: Read/Write
PC Pulse Counter
COM 500i sends the PC attribute to CDC-II Slave Emulator that passes a re-routed
Pulse Accumulator Value.
Data type: Vector
Index range: 64...95
Access: Read/Write
DI Database initialized
If the value is 1, COM 500i starts the system. After starting, COM 500i updates all
the values in the NET database. The Emulated Logical RTU does not respond to the
Master SCADA polls until the DI attribute is set to a corresponding STA object and
all the configured indications are initialized.
Data type: Integer
Value: 0...1
Access: Read/Write
18
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
AI Analog Input
Returns the value of the Analog Input point from the CDC-II Slave Emulator
Data type: Integer
Index range: 1..128
Index calculation: SN (Sequence number) - 127
Access: Read-only
PA Pulse Accumulator
Returns the value of the Pulse Accumulator point from the CDC-II Slave Emulator
Data type: Integer
Index range: 1..32
Index calculation: SN - 63
Access: Read-only
SS Simple Status
Returns the value of the Simple Status point from the CDC-II Slave Emulator
Data type: Integer
Index range: 1..256
Index calculation: (SN - 48) * 16 + BN + 1
Access: Read-only
19
SYS 600 9.3 MicroSCADA Pro 1MRS756649
SY Synchronization settings
Each bit corresponds with a link to the master system. The bits are combined via
logical OR operation.
Data type: Integer
Value: 0..3
By choosing value 1, the time synchronization command sets the
system clock.
By choosing value 0, the time synchronization command has no
effect on the system clock.
Access: Read/Write
NC
Returns the Master NCC name as specified in the configuration file cdcslave.ini
(See Table 3.2.3.4-2 Master_Name).
If a parameter is leaved out, an empty string will be returned.
Data type: Character string
Index Range: 1...N
(N = number of Master NCCs)
Access: Read
20
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
A050192
21
SYS 600 9.3 MicroSCADA Pro 1MRS756649
A050193
If the LOG_ALL parameter value is No, all the following subparameters’ value is No.
The following parameters are needed, if there is a need to supervise the CDC-II functionality in a more accurate
level. If the LOG_ALL parameter value is set to Yes, all the following parameters’ value is Yes.
22
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
23
SYS 600 9.3 MicroSCADA Pro 1MRS756649
24
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
CTS_Timeout No Number 16
Master_X_link
Master_X_link is required for each link.
25
SYS 600 9.3 MicroSCADA Pro 1MRS756649
Master_X_Line_Y
Master_X_Line_Y describes the communication parameters and the parameters are
required for each link.
Constant
Input characters are processed
regardless of the CD state.
26
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
Switched
The driver sets RTS before sending
the message. It drops RTS when
the message is sent. CTS must be
present before the message is sent.
Constant
The driver outputs mark idle
characters permanently.
NoCTS
The driver sets RTS before sending
the message. Driver drops RTS
when the message is sent.
27
SYS 600 9.3 MicroSCADA Pro 1MRS756649
28
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
29
SYS 600 9.3 MicroSCADA Pro 1MRS756649
Time_sync_and_Mem3
Both the Write Memory message
and the time synchronization
message have been received.
Time_Sync
Time synchronization message is
received.
Zero
Reset bit is always 0.
30
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
A050167
31
SYS 600 9.3 MicroSCADA Pro 1MRS756649
A050197
A050188
32
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
3.3.1. Scan3X
The first column is for the Scan3X table number. The next two colums are reference
tables. The fourth column is for sequence numbers, see Fig. 3.3.1.-1.
The CDC-II emulator dump files include a LRU number corresponding to
COM 500i NCC on the first row. The next 15 rows contains comma-separated
values, see Fig. 3.3.1.-1.
A050168
A050185
33
SYS 600 9.3 MicroSCADA Pro 1MRS756649
Since the Process objects column can contain from zero to eight process objects for
one sequence number, the process objects are displayed in a separate dialog. To have
more information about process objects, double-click the appropriate row or select
the appropriate row and click the Show button, see Fig. 3.3.1.-2., to open the Process
Object dialog, see Fig. 3.3.1.-3.
A050186
Column Description
LN Logical Name
IN Index
OI Object Identifier
OX Object Text
CX Comment Text
34
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
A050169
A050187
35
SYS 600 9.3 MicroSCADA Pro 1MRS756649
A050170
36
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
4. Technical Description
Signals are divided into indications and commands, that is input and output process
objects. Indications are sent from process units to COM 500i where they are re-
routed to one or several NCCs. Usually there are single indications, double
indications and measurements that need to be forwarded to the NCCs.
Commands are sent from the NCC to COM 500i where they are re-routed to process
units. Secured commands, direct commands and setpoints are typical commands that
are sent.
Logical Remote Units (LRU) and signals for each LRU are defined with the
COM 500i Signal Cross-References tool. The CDC-II Slave protocol parses the
COM 500i Signal Cross-References tool files and uses these files as a signal
configuration information.
The program reads three variants of Signal Cross-References tool output:
• COM 500 2.0 export files
• COM 500 3.0 export files
• COM 500 3.0 (or newer) print files
It is possible to configure BINARY INDICATION as both the status point and SOE
point with COM 500 3.0 (or newer). You have to specify two addresses for a point
in each NCC.
The following steps are taken when making signal engineering for a NCC:
1. Define the NCCs.
Marking NCC as a CDC-II LRU is easy. The CDC-II slave protocol handles all the
NCCs as CDC-II LRUs, if a string CDC-II is either in the name field or in the
comment field.
37
SYS 600 9.3 MicroSCADA Pro 1MRS756649
Since the CDC-II SOE addressing differs significantly from the block addressing,
the specified addresses must be calculated, if these are specified in COM 500 2.0 or
in COM 500 3.0 (or newer).
Specified addresses:
SOE_test_point_block = 96 + PPU_number,
SOE_test_point_bit = bit_number
SOE_point_block = 130 + PPU_number + bit_number / 16
SOE_point_bit = bit_number MOD 16
Defining the SOE points in COM 500 3.0 (or newer).
If the SOE points share a signal with another indication, they are defined in the
SOE address fields. Otherwise the SOE points are defined the same way as
COM 500 2.0.
3. Make the configuration visible for the CDC-II Slave protocol.
Export the cross-reference for COM 500 2.0.
Print NCC, indications and commands to files: NCC.TXT, IND.TXT and
CMD.TXT for COM 500 3.0 (or newer), see Fig. 4.1.-1,
Fig. 4.1.-2 and Fig. 4.1.-3. The comma (,) is a field separator for the print function,
see Fig. 4.1.-4.
A050189
A050191
38
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
A050190
A050071
39
SYS 600 9.3 MicroSCADA Pro 1MRS756649
Number
Sequence of points Corresponding
Correspoding Number of points per
CDC-II Point type number per SYS 600 process
block number block
range sequence object type
number
Number
Sequence Corresponding
of points Corr. Block Number of points per
CDC-II Point type number SYS 600 Process
per Number block
range Object Type
Seq.No.
40
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
41
SYS 600 9.3 MicroSCADA Pro 1MRS756649
42
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
5. Terminology
The following is a list of terms associated with CDC-II Protocol that you should be
familiar with. The list contains terms that are unique to ABB or have a usage or
definition that is different from standard industry usage.
Term Description
STA Station
An addressable entity in SYS 600 NET (NOD) object
43
44
1MRS756649 MicroSCADA Pro SYS 600 9.3
CDC-II Slave Protocol
Configuration Manual
6. Abbreviations
Abbreviation Description
SA Substation Automation
SN Sequence number
45
Contact us
www.abb.com/substationautomation
1MRS756649 A/31.3.2010