Documente Academic
Documente Profesional
Documente Cultură
CONTRACT NO.
2120 Old Gatesburg Road
DRAWN BY DATE State College, PA 16803
PBT/PEG 06-19-99 TITLE
CHECKED BY
Serial I/O Protocol for Redundant System Controllers
APPROVED BY
Firmware Rev. 2.10 and later
SIZE FSCM NO. DWG. NO.
A OHF70 11667
FILENAME: 11667_D.doc SHEET 1 OF 28
Table of Contents
1. Message Framing Protocol ......................................................................................................................................... 3
1.1 STX/ETX .............................................................................................................................................................3
1.2 Count...................................................................................................................................................................3
1.3 Address ...............................................................................................................................................................3
1.4 ACK Response Flag............................................................................................................................................3
1.5 Message Data and "End Body" Byte ...................................................................................................................4
1.6 Checksum ...........................................................................................................................................................4
1.7 Message Handling...............................................................................................................................................4
1.7.1 Rejected Messages...............................................................................................................................4
1.7.2 Framing Synchronization ......................................................................................................................5
1.7.3 Address.................................................................................................................................................5
1.8 Timing Issues ......................................................................................................................................................5
1.8.1 Inter-character spacing .........................................................................................................................5
1.8.2 Inter-message spacing..........................................................................................................................6
1.8.3 ACK Responses....................................................................................................................................6
1.8.4 Replies ..................................................................................................................................................6
2. Message Data Summary.............................................................................................................................................. 6
2.1 Instruction Codes ................................................................................................................................................6
2.2 Message Types ...................................................................................................................................................7
2.3 Data Formats ......................................................................................................................................................7
2.3.1 Analog Data ..........................................................................................................................................7
2.3.2 Enumerated Data..................................................................................................................................8
2.3.3 Bit Data .................................................................................................................................................8
2.3.4 String Data ............................................................................................................................................8
2.4 Message Summary Table....................................................................................................................................8
3. Message Details ......................................................................................................................................................... 13
3.1 Reset (04) .........................................................................................................................................................13
3.2 Product Type (07)..............................................................................................................................................14
3.3 Get Faults (08) ..................................................................................................................................................14
3.4 Clear Service Request (09) ...............................................................................................................................14
3.5 Reset Latched Faults (0A) ................................................................................................................................14
3.6 Run Internal Diagnostics (0B) ...........................................................................................................................15
3.7 Local Lockout (0E) ............................................................................................................................................15
3.8 Get Measured Data (16 xx)...............................................................................................................................15
3.8.1 Unit Currents (16 40)...........................................................................................................................15
3.8.2 Power Supply Voltages (16 41)...........................................................................................................16
3.8.3 External Alarm Input Status (16 42) ....................................................................................................16
3.8.4 Unit Current Settings and Window Width (16 43)................................................................................16
3.8.5 Configuration (16 44) ..........................................................................................................................17
3.8.6 Firmware Version Information (16 45).................................................................................................19
3.8.7 Controller Fault Codes (16 46) ............................................................................................................20
3.8.8 RCP Firmware Version Information (16 47) ........................................................................................20
3.9 Configuration (17 xx).........................................................................................................................................20
3.9.1 Configure Remote Disables Local / Auto Disables Manual (17 41).....................................................21
3.9.2 Configure Auto Revert / Priority Channel / Channel Preferences (17 42)............................................21
3.9.3 Configure Latched Faults and Enable Internal / External Alarms (17 43)............................................22
3.9.4 Configure Unit Current-Window Width (17 44) ....................................................................................23
3.10 Control (18 xx) ..................................................................................................................................................23
3.10.1 Redundancy Mode (18 40)..................................................................................................................24
3.10.2 Noise Diode 1 / 2 (18 41) ....................................................................................................................24
3.11 Command (19) ..................................................................................................................................................24
3.11.1 Switch Control (19 40).........................................................................................................................25
3.12 Status (20).........................................................................................................................................................25
4. Faults and Alarms ...................................................................................................................................................... 26
4.1 Unit Alarms........................................................................................................................................................27
4.2 Reporting of Faults and Alarms .........................................................................................................................27
4.3 Service Request Relay......................................................................................................................................28
1.1 STX/ETX
All message frames start with the framing byte STX (02) and end with the framing byte ETX (03).
1.2 Count
The second byte of the message is the count of all bytes in the entire message, including the STX and ETX
bytes.
The protocol’s framing determines that the smallest message possible is 6 bytes.
1.3 Address
The third byte of the message frame is the address. Any controller whose address setting matches this byte
will accept the message. A reply, if any, will contain the controller’s configured address.
An address of 00 may be used to make a message a “global” command, control, or configuration setting
message to all controllers on the bus. The global message will be recognized by all controllers on the bus,
regardless of their address settings, but controllers generally will not reply to a global message.
Tips for using address 00:
• All controllers receiving a command, control, or configuration message containing address 00 will
act on that message (e.g., changing settings or taking an action).
• Any controller configured to address 00 will reply or send an ACK response to a global message,
as appropriate to the message. With multiple controllers on a shared bus, only one controller
should be configured to address 00. It more than one controller is configured to address 00, data
conflicts will occur if a global message requesting an ACK response is sent.
• All controllers configured to an address other than 00 will not reply or send an ACK response to a
global message. This avoids conflicts from multiple controllers on a shared bus all trying to respond
to a global message simultaneously.
• It is pointless to send status messages, or any other message where you expect a reply, using
address 00, unless only one controller is configured to address 00. If you do, multiple controllers
will respond and cause a data conflict which will disrupt communications.
1.6 Checksum
The checksum is the arithmetic sum of all bytes, starting with the address and ending with the byte preceding
the checksum. The sum is truncated to the least significant byte.
The checksum is the second to last byte of a message.
1.7.3 Address
A means is provided on every controller to set its address. In any interface bus in which messages are
received by more than one controller, each controller should be assigned a unique address not equal to 00.
Refer to the notes under section 1.3 Address.
1.8.4 Replies
If a message generates a reply, that reply should start no more than 100 milliseconds after the original host
message. With a full duplex interface, if the controller is already transmitting when it comes time to send a
reply, it will send it as soon as the transmitter is finished. If a message generates a reply and an ACK
response, the ACK response will always be first (according to ACK Response specifications), followed by the
reply, within its specified time frame.
The minimum time for a reply (with no ACK response) is the same as the minimum specification for an ACK
response above, depending on the interface.
3. Message Details
NOTE: External Alarm inputs are in their asserted state when nothing is connected to them. The controller
will therefore report Unit Alarms continuously if External Alarm inputs are enabled in the controller
configuration with nothing connected to the External Alarm input connector on the rear panel.
This message will always report the state of all eight External Alarm inputs, regardless of the controller type.
3.9.1 Configure Remote Disables Local / Auto Disables Manual (17 41)
This message can be used to read or control the states of Remote Disables Local and Auto Disables Manual
features.
When used with no parameters, this function returns the configuration of the Remote Disables Local function
and Auto Disables Local function by way of two bytes in the format:
BRDL BADM where the bytes are enumerations with the meanings:
BRDL: 30 = Remote Disables Local function not enabled
31 = Remote Disables Local function is enabled
BADM: 30 = Auto Disables Manual function not enabled
31 = Auto Disables Manual function is enabled
If the function is sent with one or more byte parameters, the first parameter sets the configuration of the
Remote Disables Local function as follows:
30 = Remote Disables Local function not enabled
31 = Remote Disables Local function is enabled
CAUTION! When Remote Disables Local is enabled using this message, front panel controls will be
immediately disabled, since the controller must already be in Remote mode for this message to have effect.
If the function is sent with two byte parameters, the second parameter sets the configuration of the Auto
Disables Manual function as follows:
30 = Auto Disables Manual function is disabled
31 = Auto Disables Manual function is enabled
In LOCAL mode, the configuration can be queried by this message, but not changed. Switch to REMOTE
mode to change configuration using this message.
3.9.2 Configure Auto Revert / Priority Channel / Channel Preferences (17 42)
When used with no parameters, this function returns the configuration of the Auto Revert function, followed by
the Priority Channel or Channel Preferences, depending on controller type. The configuration in returned in
the format:
BAUTO-REVERT B2 [ B3 ]
For all controller models, the first byte returned indicates the configuration of the Auto Revert function as
follows:
30 = Auto Revert disabled
31 = Auto Revert enabled
For a 1:2 controller, the second byte returned indicates the Priority Channel configuration:
30 = No Priority Channel
31 = Priority Channel is Pol 1
32 = Priority Channel is Pol 2
3.9.3 Configure Latched Faults and Enable Internal / External Alarms (17 43)
When used with no parameters, this function returns the configuration of Latched Faults and Internal/External
Alarms by way of four bytes in the format:
BLATCH FAULTS 010 bI5 bI4 bI3 bI2 bI1 01 bE6 bE5 bE4 bE3 bE2 bE1 010000 bE8 bE7
The first byte indicates the configuration of Latched Faults as follows:
30 = Latched Faults are disabled
31 = Latched Faults are enabled
The following three bytes consist of several bit flags that indicate the configuration of Internal and External
Alarms as follows: