Professional Documents
Culture Documents
PG&E (Cooper 2179) Master Protocol
PG&E (Cooper 2179) Master Protocol
S1120-58-1, version 6
Contents
Tables ............................................................................................................................................. iii
1. Introduction ............................................................................................................................. 1
2. Features.................................................................................................................................... 2
2.1 Communications....................................................................................................................... 2
2.2 Supported Requests ................................................................................................................. 2
2.2.1 Device Data Retrieval ................................................................................................. 3
2.2.2 Device Control (Select Before Operate) ....................................................................... 3
3. Configuration Settings ............................................................................................................. 4
3.1 General Settings....................................................................................................................... 4
3.2 Redundancy Settings ................................................................................................................ 5
3.3 Events ..................................................................................................................................... 6
3.3.1 Event Files................................................................................................................. 6
3.3.2 Event Description ....................................................................................................... 6
3.4 Analog Input Settings ............................................................................................................... 7
3.4.1 Analog Input Settings................................................................................................. 7
3.4.2 Pulse Accumulator Settings......................................................................................... 7
3.4.3 Calculation Input Settings........................................................................................... 7
3.4.4 Analog Memory Input Settings .................................................................................... 8
3.5 Binary Input Settings ................................................................................................................ 8
3.5.1 Simple Status Input Settings....................................................................................... 8
3.5.2 Two-Bit Status Input Settings ..................................................................................... 9
3.6 Binary Output Settings ............................................................................................................. 9
3.6.1 Select-Before-Operate Settings ................................................................................... 9
3.7 Request Interval Settings ........................................................................................................ 10
4. Implementation Details ......................................................................................................... 11
4.1 Startup Sequence ................................................................................................................... 11
4.2 Scan Cycle ............................................................................................................................. 11
5. Troubleshooting ..................................................................................................................... 13
2.1 Communications
The following communications features are available when interconnecting devices to the
SMP Gateway:
Feature Comment
Serial Port This protocol component supports RS-232 interfaces at bit rates of
up to 38,400 b/s.
Serial Multidrop Multiple instances of this protocol component can share a single
serial port as long as different addresses are used to identify the
devices and if the serial hardware supports such a feature.
Link Redundancy This protocol component supports redundant links. If one link fails,
the other one takes over.
Passthrough This protocol component supports passthrough connections. Note
Connections that link activity must be suspended while the passthrough
connection is in effect.
File Retrieval For the devices capable of generating files, file retrieval to a shared
folder is supported.
TCP/IP This protocol component supports TCP/IP communications.
TCP/IP Multidrop Multiple instances of this protocol component can share a single
TCP/IP port as long as different addresses are used to identify the
devices and if the serial hardware supports such a feature.
Request Description
00 Basic Scan Operation
03 Scan for Floating Point Quantities
04 Time Tagged Events
10 Supervisory Control
20 RTU Internal Control and Configuration (Request 00 - Initialize RTU and
Command 38 – Set RTU Time only)
28 Return RTU Configuration (Request 30 – Read RTU Memory content only)
Setting Description
Device Address The address of the device with which the protocol component
communicates.
Range: 0 to 2047
Default value: 0
Device COM Port The COM port of the device used to communicate with the master
protocol component.
Allowed values: COM 1
COM 2
COM 3
COM 4
Default value: COM 1
Master Address Address of the master protocol component.
Range: 0 to 31
Default value: 0
Echo On A checkmark indicates that the master echoes the request.
Range: checkmark / no checkmark
Default value: checkmark
Rx Timeout Timer The time, in milliseconds, to wait for the remote device response
before attempting any retries. This timer is started after the last
data reception from the remote device.
Setting a short reception timeout may cause the link to operate
erratically (timeout declared even though the response is still
coming). Setting a long reception timeout may cause inefficiencies,
with a considerable amount of bandwidth wasted when
communication errors occur.
Range: 100 to 30,000 milliseconds
Default value: 1,000 milliseconds
Rx Retry Count The number of consecutive times a bad response (or no response)
must be received before a communication failure is declared and an
attempt is made to re-initialize the link.
Range: 0 to 100
Default value: 2
Setting Description
Link 1 Test Interval The delay, in milliseconds, between two complete link test requests
on link 1.
Range: 0 to 300,000 milliseconds
Default value: 3,000 milliseconds
Link 2 Test Interval The delay, in milliseconds, between two complete link test requests
on link 2.
Range: 0 to 300,000 milliseconds
Default value: 3,000 milliseconds
Device Address The address of the device with which the protocol component
communicates.
Range: 0 to 2047
Default value: 0
Device COM Port The COM port of the device used to communicates.
Allowed values: COM 1
COM 2
COM 3
COM 4
Default value: COM 1
Master Address Address of the master protocol component.
Range: 0 to 31
Default value: 0
Echo On A checkmark specifies that the master echoes the request.
Range: checkmark / no checkmark
Default value: checkmark
3.3 Events
Each instance of this master protocol component is capable of retrieving time-tagged events.
Two different sections need to be configured in order to retrieve those events.
3.3.1 Event Files
The folder intended to store events needs to be configured. Refer to the Protocol Common
Concepts Reference Manual for details.
The following table shows the settings that are specific to the PG&E (Cooper 2179) master
protocol.
Setting Description
Setting Description
History File The history file identifier.
Cooper 2179 allows 31 different history files.
Range: 0 to 31
Default value: 0
Setting Description
Address Indicates the Cooper 2179 device address from which the analog
input value is to be retrieved.
Range: 0x80 to 0xFF
Default value: 0x80
Setting Description
Address Indicates the Cooper 2179 device address from which the pulse
accumulator value is to be retrieved.
Range: 0x40 to 0x5F bytes
Default value: 0x40
Setting Description
Block Indicates the Cooper 2179 block from which the analog memory
input value is to be retrieved. This setting is read-only.
Range: 0x0 to 0xF
Default value: 0x0
Block Offset Represents the offset, in bytes, from the beginning of the block in
which the value is located. This setting is read-only.
Range: 0x0 to 0xFFFF bytes
Default value: 0x0 bytes
Format The format of the data to be retrieved at the specified location. This
setting is read-only.
Allowed values: Unsigned Integer
Signed Integer
Real (always 32 bits)
Default value: Unsigned Integer
Size Indicates the number of bytes to be read at the specified location.
This setting is read-only.
Allowed values: 8
16
32
Default value: 8
Setting Description
Address Indicates the Cooper 2179 device address from which the simple
status input value is to be retrieved.
Range: 0x30 to 0x3F
Default value: 0x30
Bit Offset The bit position of the binary value at the simple status input
address specified in the Address setting.
Range: 0 to 15
Default value: 0
Setting Description
Address Indicates the Cooper 2179 device address from which the two -bit
status input value is to be retrieved.
Range: 0x0 to 0x1F
Default value: 0x0
Bit Offset The bit position of the binary value at the two-bit status input
address specified in the Address setting.
Range: 0 to 7
Default value: 0
Setting Description
Address Cooper 2179 device address the SBO value is to be retrieved from.
Range: 0x0 to 0xFF
Default value: 0x0
Setting Description
Request Type of request in the scanning sequence.
Requests: Analog Input
Pulse Accumulator
Simple Status Input
Two Bit Status Input
Calculation Input (Slow)
Calculation Input (Medium)
Calculation Input (Fast)
Set RTU Time
Time-tagged history file
Frequency The frequency, in milliseconds, with which the request is sent. A
value of 0 means that the request is never sent.
Range: 0 to 2,147,483,647 milliseconds
Whatever the reason, the link is reset from scratch if too many consecutive bad reception are
received, too many being the number of retry counts configured.
Once the link has been initialized, and as long as it remains active, a regular scanning cycle is
performed on a continuous basis. Note that the link is not considered active until a valid response
is received from the device.
The scanning cycle may be interrupted anytime if there are output control requests.
Problem Solution
The SMP Gateway isn’t This problem can be due to one of the following:
communicating with my One of the reasons discussed in the Protocol Common
device. Concepts Reference Manual.
Device addressing problem: The configured Device Address
or Master Address general settings do not match the ones
configured in the device.
The link to my device This problem can be due to one of the following:
keeps resetting. One of the reasons discussed in the Protocol Common
Concepts Reference Manual.
Reception timeout problem: The configured Rx Timeout
Timer general setting is too small.
The configured Echo On general setting does not reflect the
setting of your device. Check whether the device repeats the
request before sending its answer.