COMLI en
COMLI en
COMLI en
System Description
COMLI
System Description
Copyright © 1998 ABB Satt AB.
The contents of this document can be changed by ABB Satt AB without prior notice and do not
constitute any binding undertakings from ABB Satt AB. ABB Satt AB is not responsible under
any circumstances for direct, indirect, unexpected damage or consequent damage that is caused
by this document.
Printed in Sweden
Foreword
Since the first edition of the COMLI system description was published,
significant changes have taken place both on ABB Automation’s control
systems and the COMLI protocol. New systems have been launched and
old systems have become obsolete. This has produced new demands on
COMLI resulting in new messages emerging and old messages disap-
pearing.
In this new version, the chapters related to individual control systems
have been omitted to facilitate future updating. Instead, the reader is
referred to the COMLI description for the relevant system. Major sec-
tions of the description have also been restructured.
We hope that these changes will provide a description that is easier to
use and which is updated with all the message types currently in use.
ABB Automation reserves the right to make changes to the documenta-
tion without prior notice.
If readers discover any errors, unclear information or have other sugges-
tions related to the contents, ABB Automation will be grateful to receive
their comments.
Contents
1 COMLI .....................................................................................1
1.1 Introduction .................................................................................1
1.2 COMLI - principle of operation .................................................2
1.3 Communication interfaces ..........................................................7
1.4 COMLI message format .............................................................9
1.5 Capacity ....................................................................................14
1.6 Procedure for linking control systems with COMLI ................15
2 Message types .........................................................................17
2.1 General ......................................................................................17
2.2 List of COMLI messages ..........................................................18
2.3 Status of I/O-bits .......................................................................19
2.4 Register .....................................................................................24
2.5 Controller data ..........................................................................30
2.6 Limiter modules ........................................................................41
2.7 Analogue input signals .............................................................45
2.8 Alarm text .................................................................................48
2.9 Measuring ranges and units ......................................................59
2.10 Date and time ............................................................................62
2.11 Floating point register ...............................................................65
2.12 Trend curve data .......................................................................67
2.13 Timers .......................................................................................74
2.14 Data and program areas ............................................................76
2.15 Time marked events ..................................................................84
2.16 Mixed data types .......................................................................89
2.17 Terminal mode ..........................................................................91
2.18 Acknowledge ............................................................................92
3 Supplement .............................................................................93
3.1 Calculation of checksum BCC ..................................................93
3.2 STAMP function .......................................................................93
3.3 Flow chart - communication between Master and Slave ..........94
3.4 Old message types ....................................................................95
3.5 ASCII table .............................................................................108
COMLI 1
1 COMLI
1.1 Introduction
COMLI (COMmunication LInk) is a ABB Automation data transmission sys-
tem for communication between control systems and between control systems
and computers. COMLI is a conventional communication link using serial,
asynchronous data transmission in half duplex mode, i.e. one direction at a
time, and according to the master/slave principle.
This document provides detailed information on COMLI for personnel requir-
ing a thorough understanding of the system in order to implement COMLI in
a particular application or locate faults on a system.
The description assumes a knowledge of ABB Automation’s control systems
and the terminology used in the control system descriptions.
COMLI is the most common data communication system used with the ABB
Automation family of control systems. Latest generation installations provid-
ing operator presentation as well as PLC facilities may use new data transmis-
sion systems such as MMS. When COMLI is also used in these new systems,
implementation is slightly different to when COMLI is used for data commu-
nication between SattCon systems only. Throughout this description it is
assumed that only SattCon systems are used.
Definitions
Master and Slave
The terms master and slave are used frequently throughout this handbook.
Master in a communications context means the controlling station which
always initiates the message transmission sequence. Slave means a reply sta-
tion which cannot start a communication sequence but simply responds to calls
from the Master station.
Hexadecimal notation and ASCII format
When communication via COMLI is used 2-digit hexadecimal notation is used
to described a byte. This is indicated by the suffix H after the hexadecimal
characters. The data in the last byte of the message is coded in hexadecimal
format, other bytes are coded in ASCII-hexadecimal format.
I/O-bit
ABB Automation’s control systems include a memory area called I/O RAM
containing the I/O rack’s digital input and output signal statuses. In addition to
I/O RAM, storage for memory cells, timer indications, limiter modules etc. is
also included. An advantage with I/O RAM is that unused channels on the
input and output cards can be used as working memory cells for temporary
storage of intermediate results. Throughout the remainder of this description
the term I/O bit refers to a location in this I/O RAM.
2 COMLI
Letter codes
The following letters are used to identify the various types of address:
P = an address of 16 contiguous I/O-bits in I/O-RAM.
AI = analogue input signal address.
A = analogue output signal address.
R = 16-bit register address.
Network configurations
There are two network configurations for a COMLI serial communication net-
work:
• Multipoint communication
• Point to point communication
COMLI 3
Multipoint communication
Several Slave systems are connected to a master in multipoint communication.
Communication takes place between Master and one Slave at a time. Direct
communication between Slave systems is not possible. A particular message
from the Master is applied to all Slaves but only the slave whose unique iden-
tity corresponds to the identity contained in the message accepts the data. The
number of Slaves which can be connected to each Master is limited by the
communication interface. The RS485 interface must be used in multipoint
communication. The Master transmit line is connected to all Slave receive
lines and all Slave transmit lines are commoned and connected to the Master
receive line. RS485 permits 32 Slave systems to be connected to a Master. The
COMLI communications software can handle a maximum of 247 Slaves.
MASTER
Channel n
Channel n Channel m
SLAVE 1 MASTER SLAVE 2
Master
The Master always initiates the message transmission sequence, whether
transmitting data to a slave or requesting data from a slave. The main functions
of the Master are:
• To transmit data to the Slaves and receive the data transmitted by the Slaves.
• To process the messages received from the Slave.
• To repeat a message transmission if errors occur.
4 COMLI
The processing of messages consists of checking that they are valid, determin-
ing the message type and taking the action appropriate to that message type
(e.g. entering the status of an I/O bit when a message requesting the status of
an I/O bit is transmitted and a valid reply is received).
Since the Slave never replies with an “error message”, the Master always
knows how many characters it should receive in a message. If the Master
requests a certain quantity of data, the Slave replies with the stated number of
bytes or not at all.
Up to 10 retransmissions can be attempted if any errors are detected (the actual
number permitted is system dependent). This is followed by automatic error
message printouts in earlier SattCon systems. In other systems, alarm supervi-
sion must be connected to a memory cell in the I/O RAM for an error message
to be printed out.
Start
Transmit
message
YES No.of
No. Start
transmissions
transmissions timeout
> >=10
max.* monitoring
NO
NO Reply
received
YES
Error check
YES Error
detected
NO
Transmission
complete
*max. = the maximum number of retransmissions
Master timeout
Master timeout is the period the master waits to receive a reply before assum-
ing an error and retransmitting the message.
To avoid timing problems during COMLI communication between systems,
the recommendation is that the following timeout periods are used for Masters
operating at the various transmission speeds:
50 baud 25 s
110 baud 13 s
150 baud 10 s
300 baud 7s
600 baud 5s
1200 baud 4s
2400 baud 3s
4800 baud 3s
9600 baud 3s
19200 baud 3s
38400 baud 3s
Slave
The Slave is the passive unit in the communication. A Slave unit waits contin-
uously, listening to its receive line. The functions of the Slave are as follows:
• To receive messages from the Master.
• To process the message received.
• To reply to the Master when the processing is complete.
The processing of the message consists of checking the contents, and taking
the necessary action according to the message type (e.g. store the status of an
I/O bit when a message containing the status is received and sending a reply
indicating the request has been implemented).
The following are examples of errors which prevent the Slave from replying:
• Characters in the message received have parity errors.
• The BCC (Block Check Count, see COMLI message format later in this
chapter) in the message does not agree with the BCC calculated by the
Slave.
• The incoming data cannot be processed, e.g. if there is no program for this
type of message.
If any of the above errors occur the Master automatically retransmits the mes-
sage after the timeout period has elapsed.
6 COMLI
NO
Message
received
YES
Error control
YES
Error
detected
NO
Send reply
message
Slave timeout
The Slave timeout period is the maximum time the Slave waits for a complete
message after STX (Start of TeXt) is received by the Slave.
To avoid timing problems during COMLI communication between systems, it
is recommended that the following timeout periods are used for the different
transmission speeds:
50 baud 24 s
110 baud 12 s
150 baud 9s
300 baud 6s
600 baud 4s
1200 baud 3s
2400 baud 2s
4800 baud 2s
9600 baud 2s
19200 baud 2s
38400 baud 2s
COMLI 7
RS-485 interface
This is the most usual interface used for communications with COMLI since
it is less sensitive to interference than RS232C. This communication interface
should be used where possible.
The RS485 is a standard communications interface from EIA (Electronic
Industries Association, USA) and is a voltage driven interface which operates
with voltages between 0 and +5V. The interface is differential, i.e. for every
logic state it sends two signals where one signal is inverted in relation to the
other. By detecting differences between these two signals, a more interference
tolerant transfer is achieved compared with RS232C. RS485 is a later version
of RS422 which can handle a greater load but is otherwise identical to the ear-
lier standard. RS485 can handle a maximum of 32 units.
Unlike RS232C, RS-485 defines only the electrical parameters. RS485 per-
mits a maximum transmission speed of 10 Mbits/s and can operate over a long-
er transmission distance than RS232C. The maximum transmission distance is
1200 metres at 9600 baud.
RS-232C/V24 interface
RS232C/V24 is used primarily for connections to terminals but can also be
used for COMLI communication in point to point configuration. RS232 can-
not be used for multidrop configurations.
The RS232C communications interface is a standard from EIA (Electronics
Industries Association, USA). The standard specifies serial, asynchronous
communication up to 20 kbit/s with a maximum distance between communi-
cating units of 15 metres. Under various circumstances it is however possible
to communicate over much longer distances via RS232C. The standard speci-
fies signal levels, driver circuits and mechanical structure, i.e. the connector
device and the pin configuration.
The communication interface is an international standard which merely spec-
ifies signal levels. RS232C and V24 have the same signal levels and the volt-
age levels +15V/+5V mean logic zero whereas voltage levels -5V/-15V mean
logic 1. Handshaking takes place with XON-XOFF or with the signals RTS-
CTS.
Current loop
A current loop employs switched current to represent data on the line. Usually,
a closed circuit, current flow, means a logic one and an open circuit (no current
flow) a logic zero. A current loop is used in less demanding applications or
where electrical isolation of linked units is required. A current loop usually
operates with a current of 20 mA.
8 COMLI
Interface signals
The signals in the communication interfaces are listed in the table below; a
particular application may employ all or only some of the signals.
Distance – speed
The maximum transmission distance depends on the interface used and the
transmission speed. The table below provides guidelines for the different inter-
faces and speeds.
The values stipulated are for screened twisted-pair cable, type Belden 8723 or
Belden 9502.
Longer distances require a short range modem.
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. START ADDRESS QUANTITY DATA ETX BCC
TYPE ASCII/BINARY
Master Slave
Transfer of data
or no reply
Transfer of data
Master Slave
Acknowledge to confirm
transfer or no reply
Message format
Irrespective of whether a message is a request, a data transfer or an acknowl-
edgement, a message is made up of three blocks - start block, information
block and end block. The start block and the end block have the same format
in all types of messages but the information block varies for the different types
of message. The characters in the start block and the end block are always in
ASCII format. The contents of the information block can be in binary format
or ASCII format.
Start block
The start block comprises three parts:
• STX
• Identity
• Stamp
The functions of the three parts are as follows:
STX
Start of TeXt start character which indicates the start of the block. The content
of this byte is always 02H.
Identity
Indicates which station the message is intended for. Comprises two characters
which can assume values between 30H–39H, 41H–46H. The Master always
has the identity 0. A Slave can have an identity between 1–247. Always coded
in ASCII.
STAMP
The transmission mark, STAMP, indicates if the message is being sent for the
first time or if it is a retransmission. The stamp value changes for each new
message. A retry is not treated as a new message. A reply message from Slave
n (n = 1–247) is given the same value as the control message from Master.
Refer to Section 3.2 for a more detailed description of the stamp function.
Always coded in ASCII.
COMLI 11
Function block
The function block contains the functional information and data as follows:
• Message type
• Start address
• Quantity
• Data block
Message type
This indicates the type of message being transmitted or received. The charac-
ters can be considered as a function code indicating how the Master or Slave
interprets the data received. The message type is included in all message cat-
egories, i.e. request, data transfer, acknowledge. The character can assume a
value between 30H and 7FH. Always coded in ASCII.
Start address, quantity and data block
The start address, quantity and data block have different meanings depending
on whether the message is a request, a data transfer or an acknowledgement.
The meanings are as follows:
Request
Start address indicates the first address from which the requested data is to be
read. In the case of data that does not have an address, e.g a controller or lim-
iter module, the number of the requested device is given, i.e. the controller
number or limiter module number. Always represented in ASCII code.
Quantity indicates the number of items requested, e.g. the number of I/Os,
number of registers, number of limiter modules etc. Always coded in ASCII.
The data block is not used in a request.
Data transfer
Start address indicates the first destination address for the data being trans-
ferred. In the case of data that does not have an address, e.g a controller or lim-
iter module, the number of the requested device is given, i.e. the controller
number or limiter module number. Always coded in ASCII.
Quantity indicates the number of bytes of data being transferred. Always cod-
ed in ASCII.
The data block contains the data being transferred. The arrangement of the
data depends on the type of message. The size of the data block can be between
1 and 64 bytes. The data can be coded in binary or coded in ASCII depending
on the chosen communication method.
Note. The data block must contain as many byte as requested. If there isn´t
enough data, then fill the block with 00H.
12 COMLI
Acknowledgement
During acknowledgement there is only one byte in addition to the character for
the message type and this character has the value 06H. This is the character for
Acknowledge according to the ASCII table. This means that an acknowledge
message comprises a total of 8 characters.
End block
The end block comprises two parts:
• ETX
• BCC
The functions of these two parts are as follows:
ETX
End of TeXt character, 03H which indicates the end of the block. Always cod-
ed in ASCII.
BCC
Block Check Count is a check sum for the complete message. The correspond-
ing check sum is calculated in the receiver and compared with the message
BCC to check if the message has been fully and correctly received. If the two
BCCs do not agree, the Slave does not send an acknowledgement to the Mas-
ter. Refer to Section 3.1 for a more detailed description of the check sum cal-
culation. Always coded in ASCII.
Examples of the 3 message categories are shown below:
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. ADDRESS QUANTITY ETX BCC
TYPE
Request message
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. ADDRESS QUANTITY DATA ETX BCC
TYPE ASCII/BINARY
0 1 2 3 4 5 6 7
Character format
Asynchronous data transfer
The simplest way to transmit data (characters) between two computers is in
parallel with 8 conductors – one for each bit plus a special conductor to indi-
cate when data on the data conductors is valid. This is called parallel transfer.
For serial asynchronous transmission, which is the most common, one bit at a
time is transmitted on a conductor. Synchronization is achieved by enclosing
each character between a start bit and a stop bit and transmitting the bits at a
given speed (baud rate). This is the method used by COMLI.
A character consists of the following:
Each character starts with a start bit. This is followed by the data bits, 7 or 8
depending on the format selected, and a parity bit which is inserted to ensure
the number of 1s is either always even or odd (even or odd parity). A character
bit changed during a transmission is thus detected as a parity error. The Block
Check Character (BCC) is a further check that no characters have changed. It
is always sent at the end of the message.
The standard format for COMLI is asynchronous transmission with 1 start bit,
8 data bits, 1 parity bit (odd parity) and one stop bit.
ASCII and binary communication
The character format during communication is either ASCII or binary. The
choice of type, either ASCII or binary, only affects encoding of the data for
transmission. Binary communication is the most common form of communi-
cation between control systems. Only half as many binary characters are
required compared with ASCII characters when sending the same information.
Communication with ASCII characters is used primarily when linking com-
puters that cannot communicate using binary characters (8 bits).
In ASCII communication, the characters used are those in the character set for
7 bits (Swedish Standard 85 02 00). In binary communication on the other
hand, any combination of 8 bits can be used. Thus the 8 bits representing a
character can assume any value between 00–FFH. The complete set of ASCII
characters is given in a table at the end of this handbook.
ASCII communication
In ASCII communication, each character has 7 or 8 data bits. The start char-
acter (STX) and the stop character (ETX) have unique codes which can be
used as data characters in the message. Each byte in binary is represented by
two bytes in ASCII. A binary byte is divided into two 4-bit parts which are rep-
resented as a 2-digit hexadecimal value and an ASCII byte is used to represent
each hexadecimal digits using the ASCII codes 0–9, A-F. See the following
example:
14 COMLI
1 byte
1001 1111
1 byte
9 F
ASCII code for 9 is 39
1 byte 1 byte
ASCII code for F is 46
39 46
Binary communication
In binary communication each byte occupies one byte, thereby doubling the
packing density of the data block. As a result, fewer bytes are required to trans-
fer a given quantity of data compared with ASCII communication and data
transfer times are considerably reduced.
1.5 Capacity
The following must be considered in order to calculate how many messages
can be transmitted and received during a given period:
• Communication speed.
• Length of the messages.
• Processing times in the systems served.
This can be represented as shown below:
13 ms approx. 77 ms approx.
Example
Assume that a Master requests the transmission of the status of 512 I/O bits
from a Slave. Communication is in binary format and takes place at 9600 baud.
The actual request, which is 13 characters long, takes approximately 13 ms to
transmit over the channel. The data transferred is 77 characters and takes
approximately 77 ms to transmit over the channel.
This means that, if the processing time in the Master and Slave can be neglect-
ed, it will take approximately 90 ms to request and transfer 512 I/O bits over
the channel. Thus 5120 I/O bits can be transmitted in one second. However,
processing times in the different systems cannot be neglected. These times
must also be added to the time it takes to transmit the characters over the chan-
nel. The processing time depends on the system being used and the load on the
system.
COMLI 15
2 Message types
2.1 General
This chapter describes the various COMLI messages currently used in the dif-
ferent control systems. The chapter is arranged so that messages related logi-
cally are described together. E.g. all messages associated with controllers are
described in one section.
Only message parts which are unique for the message are described. Parts
common to all messages, i.e. start and end blocks, are described in Section 1.4,
“Message format”. Binary communication is used unless it is stated otherwise.
18 Message types
1. Note that this is a complete list containing all kinds of COMLI messages. Not all of
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. I/O-BIT ADDRESS QUANTITY ETX BCC
TYPE OF I/O-BITS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 34 30 39 37 37 30 30 ETX BCC
0 1 2 3 4 5 6 7 8 9 10 11 12 13
STX DESTINATION STAMP MESS. I/O-BIT ADDRESS QUANTITY I/O- ETX BCC
TYPE OF I/O BITS STATUS
0 1 2 3 4 5 6 7 8 9 10 11 12 13
STX DESTINATION STAMP 33 30 39 37 37 30 31 31 ETX BCC
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. I/O-BIT ADDRESS QUANTITY ETX BCC
TYPE OF I/O BITS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 32 30 39 46 38 34 30 ETX BCC
4770(octal) = 09F8H
64(dec)= 40H
22 Message types
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. I/O-BIT ADDRESS BYTES IN THE I/O-STATUS ETX BCC
TYPE DATA BLOCK ASCII/BINARY
Bit 7 6 5 4 3 2 1 0
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 30 30 39 46 38 34 30
11 12 13 14 15 16 17 18 19 20
30 31 31 31 31 31 31 31 31 31
21 22 23 24 25 26 27 28 29 30
31 31 31 31 31 31 31 31 31 31
31 32 33 34 35 36 37 38 39 40
31 31 31 31 31 31 31 31 31 31
41 42 43 44 45 46 47 48 49 50
31 31 31 31 31 31 31 31 31 31
51 52 53 54 55 56 57 58 59 60
31 31 31 31 31 31 31 31 31 31
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
31 31 31 31 31 31 31 31 31 31 31 31 31 31 ETX BCC
24 Message types
2.4 Register
Request register (Message type 2)
See also “Request the status of several I/O bits”.
Application
Used to request transfer of up to 32 16-bit registers. Registers numbered from
0 to 3071 (dec) can be requested. The upper limit in different systems can be
larger or smaller than the message allows. For registers with numbers greater
than 3071(dec) message type ”<” can be used.
Message structure
The message structure is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. REGISTER ADDRESS QUANTITY OF ETX BCC
TYPE BYTES
Note that only an even number of bytes can be stated when register values are
requested.
Message types 25
Example l
Assume 10 registers are requested beginning at register number 100. The mes-
sage is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 32 34 36 34 30 31 34 ETX BCC
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. REGISTER ADDRESS QUANTITY OF ETX BCC
TYPE BYTES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 3C 31 31 43 39 31 34 ETX BCC
Message types 27
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. REGISTER ADDRESS BYTES IN THE REGISTERVALUE ETX BCC
TYPE DATA BLOCK ASCII/BINARY
Note: only an even number of bytes can be stated when register values are
transferred.
28 Message types
7F FF
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1
Example
Register number 100 contains the value 7FFFH = 50% and register number
101 contains the value 1000H = 6.2%. Only these two registers are to be trans-
ferred using binary communication. The message is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
STX DESTINATION STAMP 30
30 34 36 34 30 30 34 FE FF 08 ETX
00 BCC
ETX BCC
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
46 45 46 46 30 38 30 30 ETX BCC
Message types 29
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. REGISTER ADDRESS QUANTITY OF ETX BCC
TYPE BYTES
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
STX DESTINATION STAMP 3D 31 31 43 39 31 34 20 BYTES ETX BCC
OF DATA
30 Message types
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. ASCII/ CONTROLLER NUMBER QUANTITY OF ETX BCC
TYPE BINARY CONTROLLERS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 35 30 30 30 33 30 31 ETX BCC
Message types 31
0 1 2 3 4 5 6 7 8 9 10 11 60 61 62
STX DESTINATION STAMP MESS. CONTROLLER NUMBER QUANTITY OF CONTROLLER ETX BCC
TYPE CONTROLLERS STATIC DATA
Bytes 6 and 7
16 bits containing X (K-1) for D-part. Min. is 0 = 0%, max. is FFFH = 100%.
Bytes 8 and 9
16 bits containing E (K-1) D-part. Min. is 0 = 0% and max. is FFFH = 100%.
Bytes 10 and 11
16 bits for the demanded signal when the controller is in the Manual mode.
Min. is 0 = 0% and max. is FFFFH = 100%. Set to 0 if controller in auto mode.
Byte 12
8 bits describing the type of controller together with the controller number.The
two most significant bits describe the type of controller as follows:
0 = P controller
1 = PD controller
2 = PI controller
3 = PID controller
The six least significant bits indicate the number of the controller for which
data is being transferred.
Min value = 0, max value = 62 (3EH)
If the value of byte 12 is FFH, there are no more controllers to be sent.
Byte 13
8 bits B7, B6, B5, B4, B3, B2, B1 and B0 indicating the following:
B0 Type of control, 0 inverse control, 1 direct control.
B1 0 Manual mode, 1 Auto mode.
B2 Indicates if a feedback signal is used with a digital controller.
1 = Yes, 0 = No.
B3 Type of derivative influence:
1 if only for positive process value changes
0 if positive and/ or negative changes.
B4 Type of derivative influence:
1 if both positive and negative changes
0 for either negative or positive changes.
B5 1 if parameter control is used otherwise 0.
B6 Type of controller output:
0 = digital controller output, 1 = analogue controller output.
B7 Internal use.
Bytes 14 and 15
16 bits indicating the I/O address used to select Auto mode. Lowest address 0,
highest address up to 3FFFH = 37777 (octal). Note that the highest address is
also system dependent.
Message types 33
Bytes 16 and 17
16 bits indicating address and type of the analogue input signal. The four most
significant bits indicate the source of the controller input signal as follows:
Bytes 18 and 19
16 bits indicating the address and type of the set point input signal. The four
most significant bits indicate the source of the set point signal as follows:
Byte 20
Indicates the set point dead zone. Values between 0 and FFH are permitted.
FFH corresponding to 6.2%.
Byte 21
Indicates the gain. Values between 0 and FFH are permitted. This corresponds
to a range of 0.0–25.5 if bit 0 in byte 25 has the value zero. If bit 0 in byte 25
has the value’1’ the range is 0.00–0.99.
Bytes 22 and 23
Indicate the integration time. Values between 0 and FFFFH. FFFFH corre-
sponding to up to 1 hour 49 minutes and 13.5 seconds are permitted.
Byte 24
Indicates the sample time in tenths of a second.
Byte 25
Bit 0 in this byte indicates the gain range applicable to byte 21. See Byte 21
explanation.
Byte 26
Not used.
Byte 27
Internal use.
34 Message types
Bytes 28 and 29
Indicate derivation time. Values between 0 and 1770H are permitted. 1770 H
corresponds to 10 minutes.
Bytes 30 and 31
Indicate the type of signal and its address which determines the D-part. The
four most significant bits indicate the following types of signal for determining
the D-part:
Bytes 32 and 33
Indicate the Hand Interlock Speed which is the time it takes for the output sig-
nal to increase from 0 to 100%. The value can vary between 5H = 0.5 seconds
and 13FFH = 8 minutes and 31.9 seconds.
Bytes 34 and 35
Indicate the calculated ramp period for the output signal. This value can vary
between 20H if the Hand Interlock Speed is 8 minutes and 31.9 seconds and
FFFFH if Hand Interlock Speed is 0.5 seconds.
Bytes 36 and 37
Indicate the upper limit of the output signal. The value can vary between 0 and
FFFFH. FFFFH corresponds to 100.0%.
Bytes 38 and 39
Indicates the lower limit of the output signal. The value can vary between 0
and FFFFH. FFFFH corresponds to 100.0%.
Bytes 40 and 41
Describe the controller output signal. If the output is an analogue signal the
following types of signal apply:
For a digital controller all 16 bits indicate the address of the controller’s
“OPEN” output. The address can vary between 0 and 3FFFH, 37777 (octal).
Note that the upper limit is system dependent.
Message types 35
Bytes 42 and 43
The address of the digital controller’s “CLOSE”. The address can vary
between 0 and 3FFFH, 37777 (octal). Note: upper limit is system dependent.
Bytes 44 and 45
Indicate the address and type for the external connection signal. The four most
significant bits (11–15) indicate the source of the external connection signal
and the 12 least significant bits (0–11) as follows:
Byte 46
Indicates the dead zone of the output signal. The value can vary between 0 and
FFH. FFH corresponds to 6.2%.
Byte 47
Indicates the positive deviation limit. The value can be between 0 and FFH.
FFH corresponds to 25.5%.
Byte 48
Indicates the negative deviation limit. The value can be between 0 and FFH.
FFH corresponds to 25.5%.
Byte 49
Not used.
Example
Assuming controller 0 in a system is programmed as follows:
Controller number 0
Controller type PI
I/O for Auto mode 5500
Controller ON 5501
Interlock and open 5502
Interlock and close 5503
Analogue input AI 0140
Setpoint AI 0144
Dead zone, process value-setpoint (%)0.1
Gain 9.0
Integration time 40S6
Hand Interlock Speed 10S0
Maximum output signal(%) 100.0
Minimum output signal(%) 0.0
Direct control No
Analogue controller Yes
Address of analogue output A 0240
36 Message types
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
02 B2 E5 D0 09 2B 00 00 00 00
21 22 23 24 25 26 27 28 29 30
00 00 80 42 0B 40 E0 18 E0 19
31 32 33 34 35 36 37 38 39 40
04 5A 01 96 00 00 00 00 00 00
41 42 43 44 45 46 47 48 49 20
00 00 00 64 06 66 FF F0 00 00
51 52 53 54 75 76 77
90 28 00 00 00 00 00 00 ETX BCC
Message types 37
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. CONTROLLER NUMBER QUANTITY OF ETX BCC
TYPE CONTROLLERS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 42 30 30 30 44 30 33 ETX BCC
38 Message types
0 1 2 3 4 5 6 7 8 9 10 11 60 61 62
STX DESTINATION STAMP MESS. CONTROLLER NUMBER BYTES IN THE CONTROLLER DYNAMIC ETX BCC
TYPE DATA BLOCK DATA
The six most significant bits indicate the number of the controller being trans-
ferred. The value can be between 0 and 62.
If the value of byte 0 is FFH, there are no more controllers programmed in the
system.
Message types 39
Byte 1
8 bits B7, B6, B5, B4, B3, B2, B1 and B0 indicating the following:
B0 Status for ramp and close.
B1 Status for ramp and open.
B2 Status for controller on.
B3 Status for Auto mode on.
B4 Status for digital output signal closed.
B5 Status for digital output signal open.
B6 Deviation alarm negative.
B7 Deviation alarm positive.
Bytes 2 and 3
Indicate the process value. The value can vary between 0 and FFFFH which
corresponds to 0% to 100.0%.
Bytes 4 and 5
Indicate the set point value. The value can vary between 0 and FFFFH which
corresponds to 0% to 100.0%.
Bytes 6 to 9 inclusive
Not used.
Bytes 10 and 11
16 bits indicating the current value of the signal which is the input to the D-
part.
Bytes 12 and 13
16 bits indicating the current status of the output signal from the controller. If
it is an analogue controller these bits contain the analogue output value. If it is
a digital controller with feedback the value of the feedback signal is indicated.
For a controller without feedback the calculated value of this signal is indicat-
ed.
Example
Assuming a request is received for dynamic data for controllers 17 and 18.
Controller 17 is the only controller programmed in the system and binary com-
munication is being used. The dynamic data is as follows:
Controller type PI with analogue output
Controller on Yes
Auto mode Yes
Process value 47.0%
Setpoint 50.0%
Output signal 37.0%
40 Message types
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20 21 22 23 24
91 0C 78 47 7F F7 00 00 00 00 00 00 5E B5
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
FF 00 00 00 00 00 00 00 00 00 00 00 00 00 ETX BCC
41
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. LIMIT VALUE MODULE QUANTITY OF ETX BCC
TYPE NUMBER MODULES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 37 30 30 30 33 30 35 ETX BCC
42
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. LIMIT VALUE MODULE BYTES IN THE LIMIT VALUE MODULES ETX BCC
TYPE NUMBER DATA BLOCK ASCII/BINARY
Bytes 1 and 2
16 bits indicating address and type of signal connected to the module. The
remaining 12 bits indicate as follows:
6H Register number.
AH I/O bit (I/O address).
EH Address of analogue input divided with 4.
Byte 3
Type of limiter module as follows:
< ASCII code 3CH, limiter module is min. value type.
> ASCII code 3EH, limiter module is max. value type.
Bytes 4 and 5
The 12 least significant bits indicate the upper limit. Lowest permitted value
is 0. The highest permitted value is FFFH which corresponds to 100%. The
four most significant bits are not used and are set to 0.
Bytes 6 and 7
The 12 least significant bits indicate the lower limit. Lowest permitted value
is 0. The highest permitted value is the upper limiter. The four most significant
bits are not used and are set to 0.
Bytes 8 and 9
Not used. Set to zero.
44
Example
A request for 5 limiter modules starting at module number 5. The system
includes only three modules 5, 7 and 8 whose data is as follows:
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
05 60 0A 3C 03 FF 03 33 00 00
21 22 23 24 25 26 27 28 29 30
07 A2 00 3E 0E 65 0C CC 00 00
31 32 33 34 35 36 37 38 39 40
08 E0 15 3C 03 33 01 99 00 00
41 42 43 59 60 61 62
FF 00 00 00 00 00 00 00 00 00 ETX BCC
45
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. NUMBER OF ETX BCC
ANALOGUE INPUT
TYPE ANALOGUE
SIGNAL ADDRESS
INPUTS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 39 30 31 41 30 30 35 ETX BCC
46
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. ANALOGUE SIGNAL BYTES IN ANALOGUE VALUE ETX BCC
TYPE ADDRESS THE DATA BLOCK ASCII/BINARY
Later ABB Automation systems receive 16 bits direct from analogue to digital
converters.
47
Example
3 analogue signals are to be transferred starting at address 640 (octal), 01A0H.
The analogue signals have the following values:
A 640 = 0.0%
A 644 = 50.0%
A 650 = 100.0%
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18
00 00 7F F7 FF FF ETX BCC
0 1 2 3 4 55 66 77 88 9 10 11 12
ALARM QUANTITY OF
STX DESTINATION STAMP MESS. PART1/ NOT FIX/ ETX BCC
TEXT BYTES
TYPE PART2 USED VAR.
NO. REQUESTED
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 45 30 30 32 31 30 36 ETX BCC
49
0 1 2 3 4 5 6 7 8 9 10 11 12
ALARM
STX DESTINATION STAMP MESS. NOT NOT NOT NOT ANALOGA
ANTAL NOT ETX BCC
TEXT
TYPE USED USED USED USED USED
INSIGNALER
NO.
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
TEXT QUEUE ALARM BUFFER QUANTITY OF
STX DESTINATION STAMP MESS. ALARM TEXT ETX BCC
COMP- STATUS TEXT STATUS BYTES
TYPE
LETE NO. REQUESTED
Byte 7
Indicates the alarm text number which can be considered as a form of alarm
stamp which enables the master to determine when new alarm text is being
transferred. The value is normally between 1 and 8, ASCII 30H–38H, but if
the Slave has just started the value is 9, ASCII 39H.
Byte 8
Indicates if the alarm buffer in the Slave is empty or contains more alarm text:
30H Slave alarm buffer is empty.
31H Slave alarm buffer contains alarm text.
Bytes 9 and 10
Indicate the number of bytes in the data block. The number can vary when the
request from the Master contains the value 30H in byte 8. If this is not the case
the Slave replies with the number of bytes requested by the Master. If there are
no alarms in the queue, or the alarm text is shorter than the requested number
of characters, the data block is filled or topped up with zeros, i.e. ASCII code
30H. If there is no alarm text in the queue bytes 9 and 10 have the value 30H.
Example
The alarm text “12:00 * COMLI TEST” is to be transferred. Thus the number
of bytes (and characters) is 18. It is assumed that the request has not specified
a fixed number of data block bytes (characters). The message is as follows:
0 1 2 3 4 5 6 7 8 9 10
1 2 : 0 0 * C
11 12 13 14 15 16 17 18 19
31 32 3A 30 30 20 2A 20 43
O M L I T E S T
20 21 22 23 24 25 26 27 28 29 30
4F 4D 4C 4B 20 54 45 53 54 ETX BCC
51
This facility can be provided using memory cells in the subsystem, part for the
alarm and part for alarm acknowledgement.
When the alarm text message is transferred to the supervisory system an
acknowledge address may be included. This is the address of a memory cell
that is to be set when the alarm acknowledge message is received. As soon as
the alarm condition ceases this cell must be reset. This occurs automatically in
some system but must be performed by the PLC program in other systems.
Thus the supervisory system can determine the condition of the valve from the
status of the alarm address and the status of the alarm acknowledge cell.
In SattCon systems the acknowledge address is defined using the command
$ACKxxxx. The command $ACKxxxx is included in the alarm text and trans-
lates into the acknowledge address when the alarm text message is transferred.
Blocking
Alarms can be blocked by the supervisory system. This results in a message
from the supervisory system containing a memory cell address which is in turn
set to ’1’. The subsystem includes a PLC program which resets selected alarm
monitoring memory cells.
52
Alarm sequence
A typical alarm sequence between a SattCon system and one or more
SattGraph 1200 systems is as follows:
• The alarm text is defined “1000 Valve not operating $ACK1001”
• An alarm occurs, i.e. address 1000 is set to ’1’.
• The alarm is stored in the alarm buffer.
• SattGraph 1200 requests the alarm and receives the alarm text reference
number, address 1000, address 1001, the time and the alarm text.
• The alarm is entered in the SattGraph alarm list.
• SattGraph 1200 uses the status of the alarm and acknowledge memory cells
to display the condition of the valve in the application picture.
• The operator acknowledges the alarm.
• SattGraph 1200 transmits an acknowledgement message containing
addresses 1000 and 1001 to the SattCon system. Acknowledgement is
entered in the alarm buffer. If address 1000 is set to ’1’ address 1001 is also
set to ’1’, otherwise 1001 is set to ’0’,
• If several SattGraph 1200 systems are connected to the SattCon system,
routine interrogation of the alarm buffer eventually results in all systems
detecting acknowledgement for entering in their alarm lists. Also, by mon-
itoring the status of the alarm and acknowledgement memory cells, the cor-
rect condition of the valve can be displayed in all application pictures.
• The acknowledge is reset when the alarm cell is reset by the PLC program
or automatically by the system.
53
0 1 2 3 4 5 6 7 8 9 10 11 12
PART1/
STX DESTINATION STAMP MESS. REFERENCE NUMBER FIX/ ETX BCC
PART2
TYPE VAR.
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 3A 38 41 33 39 30 30 ETX BCC
54
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
TEXT TEXT AS
STX DESTINATION STAMP MESS. NOT NOT BYTES IN THE ALARM TEXT ETX BCC
COMP- REQU-
TYPE USED USED DATA BLOCK
LETE ESTED
Byte 2
Indicates the status of the digital I/O bit monitored by the alarm text program.
The indications are as follows for the various conditions:
30 Digital I/O monitored for all changes has changed from 1 -> 0.
31 Digital I/O monitored for all changes has changed from 0 -> 1.
32 Digital I/O monitored for changes to ON only has changed from
0 -> 1.
33 Digital I/O monitored for changes to OFF only has changed from
1 -> 0.
34 Acknowledgement I/O-bit.
Bytes 3 and 4
Indicates the address of the I/O bit for which the alarm text is transferred.
Bytes 5 and 6
Indicate the address of the I/O-bit used to acknowledge the alarm.
Byte 7
Year.
Byte 8
Month.
Byte 9
Day
Byte 10
Hour.
Byte 11
Minute.
Byte 12
Second.
Byte 13
Tenths of a second.
Byte 14–N
Alarm text without the alarm number, status, etc.
56
Example
Transfer alarm text for address 12135 (octal), 145DH with acknowledge bit
from address 2241 (octal), 04A1H. The alarm cell has changed from ’0’ to ’1’.
The alarm text has the reference number 16295 (dec), 3FA7H. The date is
9/2/87 and the time 15:34:29:06. The message is as follows
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20 21 22 23 24
3F A7 31 14 5D 04 A1 87 02 09 15 34 29 06
25 N-2 N-1 N
ALARM TEXT WITHOUT ALARM NUMBER, TIME, STATUS ETC ETX BCC
57
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
ADDRESS OF
STX DESTINATION STAMP MESS. ACKN./ NOT USED QUANTITY OF ETX BCC
ACKNOWLEDGED OR
TYPE BLOCK BYTES
BLOCKED ALARM
Bytes 6–8
Not used. Set to value 30H.
Quantity of bytes (bytes 9–10)
Indicates the quantity of bytes in the data block. The minimum is 0 and the
maximum is 64.
Data block (bytes 11–)
Binary communication is always used for transferring the data block.
Acknowledge information
The acknowledge information transferred comprises the address of the alarm
being acknowledged together with, if specified, the acknowledge address. If
no acknowledge address is specified value FFH is inserted. Each address
requires 2 bytes, i.e. the acknowledge information requires a total of 4 bytes.
Alarm blocking information
The alarm blocking information comprises only the address of the alarm to be
blocked. This requires 2 bytes.
58
Example
Transfer acknowledge information for alarms with the addresses 15511 (octal)
and 15512 (octal), 1B49H and 1B4AH respectively. Acknowledge addresses
are also specified, i.e. 7473 (octal) and 7474 (octal), 0F3BH and 0F3CH
respectively. The message is as follows:
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
1B 49 0F 3B 1B 4A 0F 3C ETX BCC
Example
Transfer blocking information for the alarm with the address 12300 (octal) and
12301 (octal), 14C0H and 14C1H. The message is as follows:
0 1 2 3 4 45 6 7 8 9 10
11 12 13 14 15 16
14 C0 14 C1 ETX BCC
59
0 1 2 3 4 5 6 7 8 9 10 11 12
QUANTITY OF
STX DESTINATION STAMP MESS. TYPE OF SIGNAL ADDRESS ETX BCC
MEASUREMENT
TYPE SIGNAL
RANGES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 47 36 30 31 34 30 34 ETX BCC
60
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. TYPE OF SIGNAL ADDRESS BYTES IN THE MEAS. RANGE AND UNITS ETX BCC
TYPE SIGNAL DATA BLOCK ASCII/BINARY
Bytes 2 and 3
Total of 16 bits including a sign bit indicating the lowest value of the measur-
ing range.
The lowest permitted measured value is 8000H, –32768 (dec) and the highest
is 7FFFH, 32767 (dec).
Bytes 4 and 5
Total of 16 bits indicating the difference between the lower and upper limits,
i.e the measuring range. Only positive values are permitted and the value can
vary between 0H and FFFFH. 0–65535 (dec).
Byte 6
Indicates the number of decimals in the lower and upper limits. Values
between 0–5 are permitted.
Bytes 7 to 12
Space for 6 ASCII characters indicating the units.
Example
Transfer the measuring ranges and measuring units for the 3 registers shown
below:
R 21 –50.0 150.0 PA
R 23 0.005 0.020 KG
R 27 20 1000 DEG C
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20 21 22 23
60 15 81 F4 07 D0 01 50 41 20 20 20 20
24 25 26 27 28 29 30 31 32 33 34 35 36
60 17 00 05 00 0F 03 4B 47 20 20 20 20
R 23 5 15 3 Dec K G
37 38 39 40 41 42 43 44 45 46 47 48 49
60 1B 00 14 03 D4 00 44 45 47 20 43 20
R 27 20 980 0 Dec D E G C
50 51
ETX BCC
62
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. NOT USED NOT USED ETX BCC
TYPE
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 49 30 30 30 30 30 30 ETX BCC
63
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. NOT USED BYTES IN THE DATE AND TIME ETX BCC
TYPE DATA BLOCK ASCII
Example
Transfer date: 900311, year: 90, month: 03, date: 11, and time: 12:30:00.
The message is as follows:
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 4A 30 30 30 30 30 43
11 12 13 14 15 16 17 18 19 20 21 22 23 24
39 30 30 33 31 31 31 32 33 30 30 30 ETX BCC
65
0 1 2 3 4 5 6 7 8 9 10 11 12
QUANTITY OF
STX DESTINATION STAMP MESS. FLOATING POINT ETX BCC
FLOATING POINT
TYPE REGISTER NUMBER
REGISTERS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 4F 30 30 34 39 31 30 ETX BCC
66
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. FLOATING POINT BYTES IN THE FLOATING POINT VALUE ETX BCC
TYPE REGISTER NUMBER DATA BLOCK (IEEE STANDARD)
31 30 23 22 0
S exponent fraction
S = sign bit
Example
Transfer 16 floating point registers starting at register number 73. The message
is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP 50 30 30 34 39 34 30 FLOATING POINT VALUE ETX BCC
(IEEE STANDARD)
67
0 1 2 3 4 5 6 7 8 99 10 11 12
STX DESTINATION STAMP MESS. SIGNAL ADDRESS SIGNAL PART OF ETX BCC
TYPE TYPE CURVE
Example
Request trend curve number 2 for the P-word with the address 80H, 200
(octal). Binary communication is assumed. To transfer all measured values
requires the following two messages:
Message 1:
0 1 2 3 4 5 6 7 8 99 10 11 12
Message 2:
0 1 2 3 4 5 6 7 8 99 10 11 12
0 1 2 3 4 5 6 7 8 9 10 11 12
SIGNAL
STX DESTINATION STAMP MESS. TYPE + ADDRESS CURVE WINDOW ETX BCC
TYPE ADDRESS PART START
Bit 7 6 5 4 3 2 1 0
0 1 x Signal type Address
Byte 5
Bit 7 6 5 4 3 2 1 0
0 1 Address
Byte 6
Bit 7 6 5 4 3 2 1 0
0 1 Address
Byte 7
Signal type
The type of signal is indicated as follows:
111 Analogue input signal.
110 P-word.
011 Register.
Address
Indicates the address of the signal for the trend curve being requested. The
address can be a register number, a P-word address or the address of an ana-
logue input signal. The lowest permitted address is 0 and the highest depends
on the type of signal and the system as follows:
0–9FC Analogue input signal A0–A4774
0–FF0 P-word P0–P7760
0–20FE Register R0–R8446
70
Bit 7 6 5 4 3 2 1 0
0 1 x Curve number Curve part
Byte 8
Curve number
The curve number indicates one of six sampling times/methods as follows:
000 Fixed sampling time number 1.
001 Fixed sampling time number 2.
010 Fixed sampling time number 3.
011 Fixed sampling time number 4.
100 Freely selected sampling time.
101 Event controlled sampling.
Curve part
The 120 measured values transferred are divided into two parts when using
binary communication and four parts when using ASCII communication. The
indications are as follows:
00 Part 1.
01 Part 2 if ASCII communication.
10 Part 3 if ASCII communication, Part 2 if binary.
11 Part 4 if ASCII communication.
Bit 7 6 5 4 3 2 1 0
0 1 x x Window start
Byte 9
Bit 7 6 5 4 3 2 1 0
0 1 Window start
Byte 10
Indicates the age, expressed as the number of measured values, of the most
recent value to be transferred. The value can vary between 0–3E7H.
Example
Request the measured values for register 23 (dec). Curve number 3 is request-
ed and the most recent value sampled is 28 measured values old. The message
is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 12
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. SIGNAL ADDRESS BYTES IN THE TREND CURVE ETX BCC
TYPE DATA BLOCK ASCII/BINARY
Byte 1
Indicates the part of the trend curve to be transferred. Each signal can have 6
trend curves with different sampling times and 120 values in each curve.
Since, when using ASCII communication, 4 messages are required to transfer
120 measured values, the trend curve is divided into four parts. When binary
communication is being used only parts 1 and 3 of the trend curve are request-
ed since 60 values can be transferred in each message. See also Request trend
curve data for further information.
72
Bytes 2 and 3
Total of 16 bits indicating the sampling interval for collecting the trend curve
data.
Lowest permitted value = 1H = (0.1 second)
Highest permitted value = FFFFH = 1 h, 49 m and 13.5 s
If trend curve number 6 (event controlled sampling) is transferred the sam-
pling interval is always FFFFH.
A zero value indicates that the requested trend curve is not programmed.
Byte 4
Total of 8 bits containing the measured value for the trend curve.The first byte
transferred contains the oldest value.
Lowest permitted value = 0H = 0.0%
Highest permitted value = FFH = 100%
Bytes 5–63
Contain other measured values as described for byte 4.
Data block when using ASCII communication (byte 11–74)
The numbering applies to inside the data block only. To determine the correct
byte number in the message an offset of 11 bytes is added.
Byte 0
Indicates the signal type. There are three alternatives:
36H Register.
41H P-word.
45H Analogue input signal.
Byte 1
Indicates the part of the trend curve to be transferred. Each signal can have 6
trend curves with different sampling intervals and 120 values in each curve.
Since, when using ASCII communication, 4 messages are required to transfer
120 measured values, the trend curve is divided into four parts. See also
Request trend curve data for further information.
Bytes 2 and 3
16 bits indicating the sampling interval for collecting trend curve data, when
using ASCII communication. The 8 most significant bits of the sampling inter-
val are sent when the even part of a trend curve is transferred. The 8 least sig-
nificant bits are sent when the odd part of a trend curve is transferred.
Lowest permitted value = 1H = (0.1 second)
Highest permitted value = FFFFH = 1 h, 49 m and 13.5 s
If trend curve number 6 (event controlled sampling) is transferred the sam-
pling interval is always FFFFH.
A zero value indicates that the requested trend curve is not programmed.
73
Thus, assuming trend curve 2 is transferred, transfer occurs in four parts num-
bered 4, 5, 6 and 7 (see Table on page 69). When parts 4 and 6 are transferred
the 8 most significant bits are contained in bytes 2 and 3. Similarly, the 8 least
significant bits are contained in bytes 2 and 3 when parts 5 and 7 are trans-
ferred.
Bytes 4 and 5
16 bits containing the measured value for the trend curve. Since ASCII com-
munication is being used two bytes are required for each value. Contains 30
values which starts with the first value requested.
Lowest permitted value = 0H = 0.0%
Highest permitted value = FFH = 100%
Bytes 6–7, ..., 62–63
Contains other measured values as described for bytes 4 and 5.
Example
To transfer the measured value of signal A 200 sampled at 1-second intervals
with the signal value increasing. the message could be, for example, as fol-
lows:
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 52 30 30 38 30 34 30
TYPE OF PART OF
SIGNAL CURVE SAMPLE TIME 60 SAMPLE VALUE
11 12 13 14 15 16 71 72 73 74 75 76
45 34 00 0A ETX BCC
74
2.13 Timers
Request timing periods (Message type S)
Application
Used to request the programmed timing periods from up to 16 timers in one
message. The timing period is transferred as a 32-bit number without sign bit
and a resolution of 0.1 second
Message structure
The message structure is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. QUANTITY ETX BCC
TIMER NUMBER
TYPE OF TIMERS
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 53 30 30 32 41 31 30 ETX BCC
75
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. TIMER NUMBER BYTES IN THE TIMER ETX BCC
TYPE DATA BLOCK ASCII/BINARY
0 1 2 3 4 45 6 7 8 9 10
11 12 13 14 71 72 73 74 75 76
01 12 A8 80 00 00 00 01 ETX BCC
76
The following commands are sent from the Master to the Slave:
Reset load flags
Resets old fault indications.
Stop execution
Prevents the Slave from executing the module being loaded. This is imple-
mented by setting a module flag to the “stopped” condition. If the module is
included in the PBS execution sequence, PBS execution is also stopped. This
is implemented by setting a system flag to the “stopped” condition.
Reading a module
Prevent editing of the module in the Slave. This is implemented by setting a
module flag to the “locked” condition.
The Master checks the result of the above commands by sending a request for
system information to the Slave. If a Slave fails to implement a command
loading is stopped, the error message is read from the Slave and the message
is displayed for the operator.
If no failures occur, the Master transfers the stored user data to the Slave by
repeated sending of “transfer user data” messages. Each message received by
the Slave is checked to ensure the address is within the defined range in the
Slave.
When all the user data is transferred the Master requests the result of the trans-
fer from the Slave. If errors are detected the “load-flag” is set to the “error”
condition, the Master aborts the load operation and an error message is dis-
played for the operator.
If no errors are detected the Master sends a start command indicating to the
Slave that execution of the module can recommence. If PBS execution is
stopped using the “stop” command, the “start” command must be transmitted
to the Slave to resume execution.
Verifying
The verify flag in the slave must be reset before verifying commences by send-
ing the “reset verify” command. The user data to be verified is then transferred
from the Master to the Slave.
It is not necessary for the Slave to verify each message received. A number of
messages can be saved and verified together. The Slave checks that all mes-
sages contain addresses within a defined range.
When all the user data is transferred from the Master to the Slave, the Master
sends a “set verify” command to the Slave. The Slave in turn indicates the
result of the verification by setting the flag to “no error” or “error”. The Master
reads these flags by transmitting “request system information” messages until
one of the flags is set.
If an error is detected during verifying an error message is displayed for the
operator.
78
The messages for loading, dumping and verifying are described on the follow-
ing pages. The descriptions do not provide complete details however since
implementation is system dependent and requires a thorough understanding of
the system concerned. It is recommended that customers discuss their require-
ments with ABB Automation before attempting to implement the functions.
79
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. RELATIVE ADDRESS QUANTITY OF ETX BCC
TYPE BYTES
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. RELATIVE ADDRESS BYTES IN THE USER MEMORY ETX BCC
TYPE DATA BLOCK TRANSFERRED
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. RELATIVE ADDRESS BYTES IN THE USER MEMORY ETX BCC
TYPE DATA BLOCK FOR VERIFYING
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. RELATIVE ADDRESS QUANTITY ETX BCC
TYPE OF BYTES
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. RELATIVE ADDRESS BYTES IN THE COMMAND ETX BCC
TYPE DATA BLOCK SYSTEM INFORMATION
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. REPEAT NOT USED QUANTITY OF ETX BCC
TYPE FLAG BYTES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 5D 30 30 30 30 33 43 ETX BCC
86
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. REPEAT QUEUE NOT USED BYTES IN THE TIME MARKED EVENTS ETX BCC
TYPE FLAG STATUS DATA BLOCK ASCII/BINARY
87
Byte 6
Hours.
Byte 7
Minutes.
Byte 8
Seconds.
Byte 9
Tenths and hundreths of seconds. Assuming the 8 bits are named D7, D6, D5,
D4, D3, D2, D1, D0 where D0 is the least significant bit, their indications are
as follows:
D3–D0 1/10 second.
D7–D4 1/100 second
D7–D4 can have values between 0 and A, where 0 indicates no 1/100s are
included. 1–9 indicates the number of 1/100s and A means zero 1/100s.
Example
An alarm event is being transferred for I/O-address 1226 (octal) which has
been set to ON at time and date 14:10:54:07, 890604. Events are present in the
buffer. The message is as follows:
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 5B 30 31 30 30 33 46
11 12 13 14 15 16 17 18 19 20
30 02 96 89 06 04 14 10 54 70
21 22 23 24 25 26 27 28 29 30
00H 00H 00H 00H 00H 00H 00H 00H 00H 00H
31 32 33 34 35 36 37 38 39 40
00H 00H 00H 00H 00H 00H 00H 00H 00H 00H
41 42 43 44 45 46 47 48 49 50
00H 00H 00H 00H 00H 00H 00H 00H 00H 00H
51 52 53 54 55 56 57 58 59 60
00H 00H 00H 00H 00H 00H 00H 00H 00H 00H
61 62 63 64 65 66 67 68 69 70 71 72
00H 00H 00H 00H 00H 00H 00H 00H 00H 00H ETX BCC
89
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. BYTES IN THE ETX BCC
DATA AREA NUMBER
TYPE DATA AREA
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 5A 30 30 30 33 31 32 ETX BCC
90
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. BYTES IN THE ETX BCC
MIXED DATA TYPES
TYPE DATA AREA NUMBER DATA BLOCK
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 44 30 30 30 30 30 30 ETX BCC
2.18 Acknowledge
Acknowledge receipt of a message (Message type 1)
Application
Used by a subsystem to acknowledge transfer of a message from the control-
ling system. The message must be received correctly for an acknowledge mes-
sage to be produced. Since the acknowledgement technique is used, the
controlling system can alone decide if the transfer is approved or not (timeout).
Message structure
The message structure is as follows:
0 1 2 3 4 5 6 7
3 Supplement
01000011
00110011
01110000
0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1 and 1 + 1 = 0
CALL:SEND A
SYSTEM MESSAGE TO A SYSTEM
START SLAVE START
ERR = 0
STAMPM
STAMPM STAMPS
STAMPS
STAMPM (S) =
(S)(S)= =30H
-1
-1 (S)
(S) == 33H
3
STAMPM(S) = +1
NO
MESS. NO
TO THIS
LOAD MESSAGE SLAVE?
TO OUT BUFFER
YES NO ACTION
WAIT FOR
TIME OUT
LOG MESSAGE
YES
Tx
ERROR?
NO
NO START TIME-
YES ERRŠ•10
ERR max.* OUT COUNTER
STAMPS ¦ NO
YES
Line STAMPS
STAMPM =
or
STAMPM
STAMPM =
cable 30H
YES
NO
SEND MESSAGE
ERR: = ERR+1
STAMPS: =
STAMPM
YES
TIME OUT?
LOG
NO MESSAGE
NO
REPLY FROM
STAMPM SLAVE?
MESSAGE
(S) = 30H–1
PROCESSING
YES
STOP TIME-OUT
COUNTER LOAD REPLY TO
OUT BUFFER
NO
LOG REPLY
ERROR: EXIT
TO USER EXIT TO USER
PROGRAM
*max. = the maximum number of retransmissions.
PROGRAM
Supplement 95
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. MEMORY START QUANTITY OF ETX BCC
TYPE ADDRESS BYTES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 4B 41 42 43 44 34 30 ETX BCC
96 Supplement
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. MEMORY START QUANTITY OF ETX BCC
TYPE ADDRESS BYTES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 4C 32 33 34 35 34 30 ETX BCC
Supplement 97
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. MEMORY START BYTES IN THE DATA ETX BCC
TYPE ADDRESS DATA BLOCK ASCII/BINARY
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 4D 41 42 43 44 34 30
11 74 75 76
A5 5A ETX BCC
98 Supplement
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. MEMORY START BYTES IN THE DATA ETX BCC
TYPE ADDRESS DATA BLOCK ASCII/BINARY
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 4E 32 33 34 45 34 30
11 74 75 76
34 33 ETX BCC
Supplement 99
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP MESS. MEMORY START QUANTITY OF ETX BCC
TYPE ADDRESS BYTES
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 55 41 42 43 44 34 30 ETX BCC
100 Supplement
0 1 2 3 4 5 6 7 8 9 10 11 N-2 N-1 N
STX DESTINATION STAMP MESS. MEMORY START BYTES IN THE DATA ETX BCC
TYPE ADDRESS DATA BLOCK ASCII/BINARY
Transfer of data
Start address (bytes 5–8)
Start address of the memory area in PLC-RAM to be transferred.The address
is stipulated in hexadecimal and each byte contains the ASCII code for the
character represented. The address can vary between 0 and FFFFH.
Bytes in the data block (bytes 9–10)
Indicate in bytes the size of the memory area in the data block. The minimum
size is 1 byte. The largest is 64 bytes when binary communication is being
used (32 bytes using ASCII communication).
Data block (bytes 11–)
Contain the quantity of data indicated by the “Bytes in data block” field.
Supplement 101
Example
Transfer 64 bytes of memory data starting at address ABCDH. Address
ABCDH has the value A5H and address ACOCH the value 5AH. The PLC
program is stopped before the transfer, and restarted again when the transfer is
completed. The three messages are as follows:
Stop PLC execution:
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 4D 30 30 30 30 30 30 ETX BCC
0 1 2 3 4 5 6 7 8 9 10
STX DESTINATION STAMP 4D 41 42 43 44 34 30
11 74 75 76
A5 5A ETX BCC
0 1 2 3 4 5 6 7 8 9 10 11 12
STX DESTINATION STAMP 4D 31 30 30 30 30 30 ETX BCC
102 Supplement
0 1 2 3 4 5 6 7 8 9 10 11 60 61 62
STX DESTINATION STAMP MESS. ASCII/ CONTROLLER NUMBER BYTES IN THE STATIC ETX BCC
TYPE BINARY DATA BLOCK CONTROLLER DATA
The 12 least significant bits indicate the process value at the analogue input.
Min. is 0 = 0% and max is FFFH = 100%.
Supplement 103
Bytes 6 and 7
16 bits containing X (K-1) for D-part. Min. is 0 = 0% and max. is FFFH =
100%.
Bytes 8 and 9
16 bits containing E (K-1) D-part. Min. is 0 = 0% and max. is FFFH = 100%.
Bytes 10 and 11
16 bits for the demanded signal when the controller is in the Manual mode.
Min. is 0 = 0% and max. is FFFFH = 100%.
Byte 12
8 bits describing the type of controller together with the controller number.The
two most significant bits describe the type of controller as follows:
0 = P controller
1 = PD controller
2 = PI controller
3 = PID controller
The six least significant bits indicate the number of the controller being trans-
ferred. The value can be between 0 and 62.
A value of FFH in byte 12 indicates that there are no further controllers pro-
grammed in the system.
Byte 13
8 bits B7, B6, B5, B4, B3, B2, B1 and B0 indicating the following:
B0 Type of control, 0 inverse control, 1 direct control.
B1 0 Manual mode, 1 Auto mode.
B2 Indicates if a feedback signal is used with a digital controller.
1 = Yes, 0 = No.
B3 Indicates how the derivative facility operates, 1 if only for positive
process value changes, 0 if either for negative or positive process value
changes or negative and positive process value changes.
B4 Indicates how the derivative facility operates, 1 if for both positive and
negative process value changes, 0 for either negative or positive process
value changes.
B5 Internal use.
B6 0 if controller output is digital, 1 if controller output is analogue.
B7 Internal use.
Bytes 14 and 15
16 bits indicating the I/O address used to select Auto mode. Lowest address 0,
highest address up to 3FFFH = 37777 (octal). Note that the highest address is
also system dependent.
104 Supplement
Bytes 16 and 17
16 bits indicating the address and type of the analogue input signal. The four
most significant bits indicate the type of the controller input signal as follows:
6 Register.
AH P-word (16 I/O-bits).
EH Analogue input.
The significance of the remaining 12 bits depends on the type of signal as fol-
lows:
6 Register number.
AH I/O-address.
EH Analogue signal address.
Bytes 18 and 19
16 bits indicating the address and type of the set point signal. The four most
significant bits indicate the type of signal as follows:
0 Operator’s keyboard.
6 Register.
AH P-word (16 I/O-bits).
EH Analogue input.
The significance of the remaining 12 bits depends on the type of signal as fol-
lows:
0H Set point as stipulated from the terminal, min. 0 = 0%, max.
FFFH = 100%
6H Register number.
AH P-word address.
EH Analogue input signal address.
Byte 20
Indicates the set point dead zone. Values between 0 and FFH are permitted.
FFH corresponding to 6.2%.
Byte 21
Indicates the gain. Values between 0 and FFH are permitted. This corresponds
to a range of 0–25.5.
Bytes 22 and 23
Indicate the integration time. Values between 0 and FFFFH corresponding to
0 and 1 hour 49 minutes and 13.5 seconds are permitted.
Bytes 24 t o 27
Not used.
Bytes 28 and 29
Indicate derivation time. Values between 0 and 1770H are permitted. 1770 H
corresponds to 10 minutes.
Supplement 105
Bytes 30 and 31
Indicate the type of signal, and its address, that determines the D-part. The four
most significant bits indicate the following types of signal:
6 Register.
AH P-word (16 I/O-bits).
EH Analogue input.
The significance of the remaining 12 most significant bits depends on the type
of signal as follows:
6 Register number.
AH I/O address.
EH Analogue input address.
Bytes 32 and 33
Indicate the Hand Interlock Speed which is the time it takes for the output sig-
nal to increase from 0 to 100%. The value can vary between 5H = 0.5 seconds
and 13FFH = 8 minutes and 31.9 seconds.
Bytes 34 and 35
Indicates the calculated ramp period for the output signal. This value can vary
between 20H if the Hand Interlock Speed is 8 minutes and 31.9 seconds and
FFFFH if the Hand Interlock Speed is 0.5 seconds.
Bytes 36 and 37
Indicates the upper limit of the output signal. The value can vary between 0
and FFFFH. FFFFH corresponds to 100%.
Bytes 38 and 39
Indicates the lower limit of the output signal. The value can vary between 0
and FFFFH. FFFFH corresponds to 100%.
Bytes 40 and 41
Describe the controller output signal. If the output signal is analogue the fol-
lowing types apply:
6H Register.
AH P-word (16 I/O-bits).
EH Analogue output.
The significance of the remaining 12 bits depends on the type of signal as fol-
lows:
6H Register number.
9H Analogue output address.
AH I/O address.
EH Analogue input address.
If the output signal is digital all 16 bits indicate the address of the controller’s
digital output when it is open. The address can vary between 0 and 3FFFH,
37777 (octal). Note that the upper limit is system dependent.
106 Supplement
Bytes 42 and 43
Indicates the address of the controller’s digital output when it is closed. The
address can vary between 0 and 3FFFH, 37777 (octal). Note that the upper
limit is system dependent.
Bytes 44 and 45
Indicate the address and type of the measured value used for the external con-
nection signal. The four most significant bits indicate the type of signal as fol-
lows:
6H Register.
AH P-word (16 I/O bits).
EH Analogue input.
The significance of the remaining 12 bits depends on the type of signal as fol-
lows:
6H Register number.
AH I/O address.
EH Analogue signal address.
Byte 46
Indicates the dead zone of the output signal. The value can vary between 0 and
FFH. FFH corresponds to 6.2%.
Bytes 47 till 49
Not used.
Supplement 107
Example
Assuming controller 0 in a system is programmed as follows:
Controller number 0
Controller type PI
I/O for Auto mode 5500
Controller ON 5501
Ramp period at start 5502
Ramp period at stop 5503
Analogue input AI 0140
Stipend AI 0144
Dead zone, process van–set point (%) 0.1
Gain 9.0
Integration time 40S6
Hand Interlock Speed 10S0
Maximum output signal %) 100.0
Minimum output signal (%) 0.0
Direct control No
Analogue controller Yes
Address of analogue output A 0240
0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
02 B2 E5 D0 09 2B 00 00 00 00
21 22 23 24 25 26 27 28 29 30
00 00 80 42 0B 40 E0 18 E0 19
31 32 33 34 35 36 37 38 39 40
04 5A 01 96 00 00 00 00 00 00
41 42 43 44 45 46 47 48 49 20
00 00 00 64 06 66 FF F0 00 00
51 52 53 54 75 76 77
90 28 00 00 00 00 00 00 ETX BCC
108 Supplement