ABB SPA-Bus Master Protocol: Reference Manual
ABB SPA-Bus Master Protocol: Reference Manual
S1120-38-1, version 6
Contents
1. Introduction ............................................................................................................................. 1
2. Features.................................................................................................................................... 2
2.1 Communications....................................................................................................................... 2
2.2 Supported Data Categories ....................................................................................................... 2
2.2.1 Device Data Retrieval ................................................................................................. 2
2.2.2 Device Control ........................................................................................................... 2
2.2.3 4-Point Control .......................................................................................................... 3
3. Configuration Settings ............................................................................................................. 4
3.1 General Settings....................................................................................................................... 4
3.2 Analog Input Settings ............................................................................................................... 5
3.3 Binary Input Settings ................................................................................................................ 6
3.4 Analog Output Settings ............................................................................................................. 6
3.5 Binary Output Settings ............................................................................................................. 7
3.6 Scanning Sequence Settings ..................................................................................................... 8
4. Implementation Details ......................................................................................................... 10
4.1 Startup Sequence ................................................................................................................... 10
4.2 Scan Cycle ............................................................................................................................. 10
5. Troubleshooting ..................................................................................................................... 12
2.1 Communications
The following communications features are available when interconnecting devices to the
SMP Gateway:
Feature Comment
Serial Port The ABB SPA-Bus master protocol component supports RS-232
interfaces at bit rates up to 115200 bps.
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 the serial hardware supports such a feature.
Passthrough This protocol component allows passthrough connections without
Connections scanning sequence interruptions.
TCP/IP The ABB SPA-Bus protocol component supports TCP/IP
communications.
TCP/IP Multidrop Multiple instances of the ABB SPA-Bus protocol component can
share a single TCP/IP port, as long as different addresses are used
to identify the devices and as long as the devices support such a
feature.
Request Description
For additional information on how to define a 4-point control group, turn to the “Description”
setting of the binary output point, in section 3.5 Binary Output Settings.
Setting Description
Device Address The address of the device with which the protocol component
communicates. This address must be unique for each instance that
uses the same multi-drop link.
Range: 1 to 999 (900 excluded)
Default value: 1
Password The password used to send control requests to the device.
Range: 0 to 999
Default value: 0 (disabled)
Scan Interval The minimum delay, in milliseconds, between two complete scan
cycles. Note that this delay may be much longer when multiple
instances of the protocol component share a communications link
(multi-drop).
Range: 0 to 300,000 ms (5 minutes)
Default value: 1000 ms
Time Sync Interval The interval, in seconds, between master protocol time
synchronization messages.
Range: 0 to 600 seconds (0 = disabled)
Default value: 60 seconds
Date Sync Interval The interval, in minutes, between master protocol date
synchronization messages.
Range: 0 to 1440 minutes (0 = disabled)
Default value: 60 minutes
Setting Description
Data Format The data format of the point. This setting is used by the
SMP Gateway application to convert the point value.
Depending on the type of value that will be returned by the device,
configure this setting as follows:
Device will return a raw value: set as integer (signed or
unsigned).
Device will return an engineering value: set as real.
Allowed values: Unsigned Integer
Signed Integer
Real
Default value: Real
Setting Description
Data Category The data category of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Allowed values: Input
Setting
Variable
Default value: Input
Channel The slave channel of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Range: 0 to 999
Default value: 0
Index The index of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Range: 1 to 999,999 (must be unique)
Default value: 1
Setting Description
Data Category The data category of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Allowed values: Output
Setting
Variable
Default value: Output
Channel The slave channel of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Range: 0 to 999
Default value: 0
Setting Description
Data Category The data category of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Allowed values: Input
Output
Setting
Variable
Default value: Input
Channel The slave channel of the point. This setting is used by the protocol
component to map the point to the appropriate data.
Range: 0 to 999
Default value: 0
Start Index First point index to be scanned.
Range: 1 to 999,999
Default value: 1
Whatever the reason, the link is reset if too many consecutive bad receptions 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
used on a continuous basis. Note that the link is not considered active until a valid response is
received from the device.
The message priority is defined in the following order:
The scanning cycle may be interrupted anytime if there are any output control requests, pass-
thru messages or date/time updates.
If the normal scanning cycle is abandoned to cause a link reset, all I/O points are tagged as
being defective due to a communications failure. Analog and binary input points become valid
again on an individual basis only when valid I/O data is received from the device. Binary output
points become valid again as soon as the link is considered active.
Problem Solution
The SMP Gateway is This problem can be due to one of the following:
not communicating One of the reasons discussed in the Protocol Common Concepts
with my device. Reference Manual.
No request in the scan cycle: at least one request must be
configured in your scanning sequence settings.
Device addressing problem: the device address configured in
the general settings must match the one configured in the
device.
Serial configuration problem: make sure the baud rate, parity,
start and stop bits match your device configuration.
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 reception timeout configured in
the general settings is too small.
Out-of-range index requested: for a request, the sum of the
Start Index + Quantity must not exceed the last index
supported by the device for a specific Data Category. If it does
exceed that limit, the device will always send a NACK reply,
which will cause the link to reset.
Index does not exist: for a request, if a point does not exist on
the device for the defined range, the device will always send a
NACK reply, which will cause the link to reset.