TrustedTM PD-T8151B TrustedTM Communication Interface Introduction TM The Trusted Communication Interface is an intelligent module that provides a range of TM communication services for the Trusted Controller, minimising communication loading of the TMR Processor. A user-configurable module, the Communication Interface can support multiple communication media. Up to four Communication Interfaces can be supported by a Trusted TM system.
TrustedTM Communication Interface T8151B Issue Record Issue Number Date Revised by Technical Check Authorised by Modification 12 Added Modicon open Modbus TCP on port 502. This was released in build 20 as part of release 3.4 13 Added 8151B hardware rev C changes. This hardware revision removes 10 Base 2 14 Jan 05 JBourn 15 Sept 05 K.
TrustedTM Communication Interface T8151B This page is intentionally blank Issue 21 Apr 10 PD-T8151B 3
TrustedTM Communication Interface T8151B Table of Contents 1. Description .................................................................................................................................11 1.1. Module Versions.........................................................................................................................11 1.2. Associated Equipment and Software .........................................................................................11 1.3. Overview..........
TrustedTM Communication Interface T8151B 3.5.9. Validation Tool............................................................................................................................35 3.6. Modbus Master Polling Sequence..............................................................................................36 3.7. Modbus Master Redundant Configurations................................................................................38 3.8. Modbus Compatibility .................................
TrustedTM Communication Interface T8151B 7.1. SOE Address Window................................................................................................................61 7.1.1. Data Blocks ................................................................................................................................62 7.1.2. Time-stamp Blocks.....................................................................................................................62 7.2. Variable Blocks................
TrustedTM Communication Interface T8151B Figures Figure 1 Module polarisation ..................................................................................................................15 Figure 2 Communications Interface Configuration Screen.....................................................................17 Figure 3 Multicast Configuration .............................................................................................................19 Figure 4 Modbus Slave Configuration Window ..
TrustedTM Communication Interface T8151B Tables Table 1 Communication Port Configurations..........................................................................................11 Table 2 Associated Equipment...............................................................................................................11 Table 3 External I/O Connector - Pin Out..............................................................................................14 Table 4 Modbus Master Control register ...........
TrustedTM Communication Interface T8151B Notice The content of this document is confidential to ICS Triplex Technology Ltd. companies and their partners. It may not be given away, lent, resold, hired out or made available to a third party for any purpose without the written consent of ICS Triplex Technology Ltd. This document contains proprietary information that is protected by copyright. All rights are reserved.
TrustedTM Communication Interface T8151B Revision and Updating Policy All new and revised information pertinent to this document shall be issued by ICS Triplex Technology Ltd. and shall be incorporated into this document in accordance with the enclosed instructions. The change is to be recorded on the Amendment Record of this document.
TrustedTM Communication Interface T8151B 1. Description 1.1. Module Versions TM The Trusted Communication Interface has part number T8151B. T8151 is an earlier part number for the same module. Later modules have 100BaseT Ethernet but not 10Base2, as below, have a faster processor, a single PCB and also keep a backup system event log.
TrustedTM Communication Interface T8151B 1.3. Overview TM TM The Trusted Communication Interface provides the Trusted System with an intelligent TM communications interface, acting as a relay between the Processor, other Trusted Systems, the Engineering Workstation and third-party equipment. 1.3.1. Hardware The module has a Motorola Power PC processor. Bootstrap software is stored on EPROM. Operational firmware is stored in flash memory and may be upgraded via the front panel port.
TrustedTM Communication Interface T8151B 2. Installation The Communication Interface can be installed in any I/O slot of a controller or expander chassis, however, peer to peer communications is only supported from the processor chassis. When installed in the chassis, the communication Interface connects to external systems via either a Communication Interface Adaptor T8153 or a TC-305-01 Communications Cable with flying leads. 2.1.
TrustedTM Communication Interface T8151B 2.3.
TrustedTM Communication Interface T8151B 2.4. TrustedTM Module Polarisation/Keying. TM All Trusted modules have been keyed to prevent insertion into the wrong position within a chassis. The polarisation comprises two parts: the module and the associated field cable. Each module type has been keyed during manufacture.
TrustedTM Communication Interface T8151B 3. Application 3.1. Supported Protocols 3.1.1. Front Panel Serial Port This port operates at 19200 baud on RS232. A command-line diagnostic protocol is available via this port, accessed using a TC-304-01 maintenance cable and a terminal program. This protocol is not affected by the Processor front panel keyswitch. 3.1.2. Rear Serial Ports These ports may be configured between 1200 and 115200 baud.
TrustedTM Communication Interface T8151B configuration details. This protocol creates independent simplex data block passing networks between systems. TM ‘Enhanced’ peer to peer communications between Trusted systems, using dxp definitions. This protocol uses port 5000 and is configured in the application. Refer to PD-8017, latest issue for configuration details. This protocol creates multiple redundant data block passing networks between systems with transparent control, greater scope and multicasting.
TrustedTM Communication Interface T8151B mask defines the portion of the whole IP address which is the network address. Devices on one network address cannot communicate to devices on other networks without a gateway. The Ethernet port IP addresses for the two ports on a communication interface should be set to separate networks, i.e. the IP addresses covered by the ‘Subnet Mask’ should be different. If port 1 and 2 are on the same network, only one will be able to communicate. Examples: Subnet mask = 255.
TrustedTM Communication Interface T8151B 3.3.3. Multicast For Enhanced Peer to Peer multicast operation from release 3.5, the Multicast operation section must be configured. This is only necessary if using enhanced peer (using dxpnc40 control definitions) and data must be sent to more than one peer system with one message. Click on ‘Configure Multicast’ to open the parameter window.
TrustedTM Communication Interface T8151B 3.4. Modbus Slave Clicking ’Configure Modbus Slave’ opens the Slave configuration window. Figure 4 Modbus Slave Configuration Window It is possible to configure up to 10 Modbus slaves operating in the Communications Interface (not to be confused with the setup of remote Modbus slaves which the communication interface Modbus masters communicate with). These may be allocated to serial or Ethernet ports. If a slave is required, check the box ‘Use This Slave’.
TrustedTM Communication Interface T8151B 3.4.1. Connection Timeout ‘Connection Timeout’ should be left at the default of ‘Disconnect after 300 seconds’. This allows Ethernet-based slaves to recover properly after a lost connection. 300 seconds is appropriate for communications where cable breaks are not normally expected (e.g. not involving a modem or other link likely to disconnect). The TCP/IP stack does not detect the loss of Modbus communications caused by a pulled connection or cable break.
TrustedTM Communication Interface T8151B 3.4.3. SOE over Modbus: Requirements In order to use SOE over Modbus, there are several configuration steps that must be taken. At least one Modbus Slave must be configured and active in order to use the SOE over Modbus service. Configure variables for SOE logging. Variables should have the “Enable SOE Logging” extended attribute set (or be connected to a SOE board) and have a valid Modbus address. Configure the SOE Over Modbus service.
TrustedTM Communication Interface T8151B 3.5. Modbus Master TM The Trusted Communications Interface may also act as a Modbus Master with the addition of the Processor Interface Adapter T8122 or T8123. See Product Description PD-T812x for details. On a system without the appropriate Processor Interface Adapter connected, the Modbus Master may TM be configured and downloaded into the Trusted system. However, no communications activity will take place once the system is running.
TrustedTM Communication Interface T8151B 3.5.1. Modbus Master Configuration Create a new Modbus Master by clicking ‘+ Add Master’. This enables the controls to remove the master, add a slave responding to that master, and to remove a slave. The three configuration tabs (Configuration, Broadcast and Statistics) are now available for the new master. The master name can be changed by double clicking on the name or clicking on ‘Change Name’.
TrustedTM Communication Interface T8151B The following tables list the valid values for each of the control and status register types. In all cases invalid values written to the control registers result in the inactive state being selected.
TrustedTM Communication Interface T8151B 3.5.3. Broadcast Tab Figure 7 Modbus Master Broadcast Configuration The Modbus broadcast mode is supported by the Modbus Master. The Modbus broadcast is an unacknowledged write data message sent from the master using slave ID 0. All slaves on the communications link that support broadcast messages will process the message. As the data transfer is one way only, broadcast messages are restricted to coil and holding register writes only.
TrustedTM Communication Interface T8151B There are three modes of operation. One Shot: In this mode a single broadcast sequence is sent when an edge is detected on the control variable within the application. Once all enabled broadcast messages have been sent, the mode will be suspended until a new edge is seen on the control variable. Message Count: The broadcast sequence is sent after a fixed number of slave messages have been sent.
TrustedTM Communication Interface T8151B If message control is required, select ‘Application Controls Message’ and enter the Modbus address of an application variable that will be used to control the message. Where a control register is defined for either a broadcast or slave message, the message is enabled when the register contains a zero value. All other values will result in the message being disabled. The data type used for control variable can be either boolean or integer but not real.
TrustedTM Communication Interface T8151B Statistics Mode Max Scan Rate Scan Rate Average Control Variable Value False → True (Boolean) 0 → non-zero (Integer) Result Max value will remain until next cycle completed. Max value then updated with time of next complete cycle.
TrustedTM Communication Interface T8151B 3.5.5. Modbus Slave Configuration To add a slave to a Modbus Master, click on the appropriate Master on the left hand tree window. Create a new Modbus Slave by clicking ‘+ Add Slave’. This enables the controls to remove the slave. The three configuration tabs (Configuration, Messages and Statistics) are now available for the new slave. The slave name can be changed by double clicking on the name or clicking on ‘Change Name’.
TrustedTM Communication Interface T8151B The following tables list the valid values for each of the control and status register types. In all cases invalid values written to the control registers result in the inactive state being selected. State Value Description Inactive 0 Do not poll or ping the slave Standby 1 Ping the slave to ensure communications are possible Active 2 Poll the slave for data Table 9 Modbus Slave Control Register State Healthy Unavailable Value 0 1 Description 1.
TrustedTM Communication Interface T8151B 3.5.7. Messages Tab Figure 12 Modbus Slave Message Configuration This panel lists all of the messages for the slave device in the order that the Modbus Master executes them. Dragging and dropping a highlighted message anywhere in the list can be used to change the order of the messages in the list. To create a message to send to this slave, click ‘New’. (‘Insert’ adds a new message at the cursor position, ‘New’ adds at the end). Select a Message Type from the list.
TrustedTM Communication Interface T8151B If message control is required, select ‘Application Controls Message’ and enter the Modbus address of an application variable that will be used to control the message. Where a control register is defined for either a broadcast or slave message, the message is enabled when the register contains a zero value. All other values will result in the message being disabled. The data type used for control variable can be either boolean or integer but not real.
TrustedTM Communication Interface T8151B Statistics Mode Max Scan Rate Scan Rate Average Control Variable Value False → True (Boolean) 0 → non-zero (Integer) Result Max value will remain until next cycle completed. Max value then updated with time of next complete cycle.
TrustedTM Communication Interface T8151B 3.5.9. Validation Tool The Modbus Master validation tool is automatically run each time the Modbus Master configuration is saved and exited. The tool may also be run at any time by using the ‘Validate’ button on the Modbus Master main edit page. Figure 15 Modbus Master Validation Tool The validation tool scans the current configuration, checking against a rule base which matches the INI file reader in the Communication Interface.
TrustedTM Communication Interface T8151B 3.6. Modbus Master Polling Sequence Once a Modbus master begins polling, one message from each slave connected to the Master is executed in turn. This is repeated for all the messages listed for each slave. Once all the messages for a given slave have been executed, then the list will be repeated from the first message again. Figure 16 below shows the sequence of three slaves connected to a single master being polled.
TrustedTM Communication Interface T8151B The resultant message sequence on the communications link will be as shown in Table 14 below. Sequence No.
TrustedTM Communication Interface T8151B 3.7. Modbus Master Redundant Configurations Redundant systems can be implemented using multiple Communication Interfaces. Redundant links can also be configured from a single Communications Interface, though this will result in the module being a single point of failure.
TrustedTM Communication Interface T8151B 3.8. Modbus Compatibility The Communication Interface supports the following Modbus RTU commands. Read Coil Status Read Input Status Read Holding Registers Read Input Registers Force Single Coil Preset Single Register Force Multiple Coils Preset Multiple Registers Modbus 08 Command sub-function 0 The following coil and register mappings, as dictated by the Modbus protocol, are supported by the Communications Interface.
TrustedTM Communication Interface T8151B 3.9. Modbus Master Timing and Throughput Rules Each Modbus message and response takes a finite time. At 9600 bits/second, a common application may take several seconds to process all transactions. The size of each transaction is listed here to allow timing calculations to be made. Note that each byte requires 11 bits for delivery, including start, parity and stop bits. Detailed information on the Modbus protocol is available on www.modbus.org.
TrustedTM Communication Interface T8151B 3.10. Modbus Slave Timing and Throughput Rules TM If the Trusted system is Modbus Slave, then it has no control over the messages received from the TM Master. If the Trusted system is delaying more than expected between messages, it is possible that insufficient time is allowed for communications processing between the Communication Interface and the Processor.
TrustedTM Communication Interface T8151B 3.11. I/O Complex Equipment Definition ‘TCI’ TM The Trusted Communication Interface has a definition for entry in the I/O Connection table. For details on editing the table, please refer to PD-8082B. The definition contains no information for the application. The definition does not need to be entered into the I/O connection table for the application to run.
TrustedTM Communication Interface T8151B 4. Operation 4.1. Front Panel TM Figure 18 shows the front panel of the Trusted Communication Interface. The front panel of the module contains indicators showing overall module health and status.
TrustedTM Communication Interface T8151B 4.2. Module Status LEDs There are ten status LEDs on the Communications Interface front panel; Healthy, Active, Standby, Educated, and six Communications. The module status LED states and their meanings are described as follows: LED INDICATION Healthy Module health: Steady green = healthy Flashing red = slice failed. Active Steady green when the module is in the Active mode. Standby Not used. Educated Not used. Set to steady green at power-up.
TrustedTM Communication Interface T8151B 5. Fault Finding and Maintenance 5.1. Fault Reporting The Communication Interface provides a module fault alarm on its System Healthy LED, which indicates a module shutdown. No diagnostics are available via the module’s I/O complex equipment definition. Diagnostic variables are available for Modbus Master configurations as described in section 3.5. Detailed communications diagnostics are available via the command line interface diagnostics as described in section 5.
TrustedTM Communication Interface T8151B 5.4. Command Line Diagnostics The Communication Interface has a front-panel mounted RS232 serial diagnostic port to which the Engineering Workstation or a lap-top PC can be connected. The diagnostic port also provides an TM interface to the diagnostics and on-line monitoring facilities of the Trusted TMR Processor. This facility is provided for the use of ICS Triplex personnel.
TrustedTM Communication Interface T8151B Each task will provide help on its commands on typing the task prefix. For example, Modbus Master commands are shown below. To enter a command, type its prefix, a space and the command, e.g. mbm m. ci:?mbm Modbus Master Diagnostic Commands: m s t b l c cont stat caddr saddr h - Displays Master Configuration [master]. Displays Slave Configuration [slave]. Displays Message Configuration [slave]. Displays Broadcast Message Configuration [master].
TrustedTM Communication Interface T8151B Communications data may be filtered, but the filtering is based on internal numbers for ports and sockets, not any obvious pattern. The first step therefore is to capture all data and identify the socket and port numbers for the data of interest. Type ‘c’ to check that filtering is turned off. The three filters should show [off]. trc:?c Comms logging disabled Socket filter : [off] Peer port filter : [off] Peer IP address filter: [off] Comms. log empty.
TrustedTM Communication Interface T8151B 6. Communications Wiring 6.1. RS232 Communications Standard There are two main classes of serial communication defined in the RS232 standard. DTE (Data Terminal Equipment), such as terminals and computers DCE (Data Communications Equipment), such as modems. If standard D-type connectors are used, the convention is to mount Female connectors on the DCE devices and Male connectors on the DTE devices. Cables between DCE and DTE devices can be connected 1:1.
TrustedTM Communication Interface T8151B From To Communication Interface (PL5) Interface Adapter (J3) 9 Way D-type 25 Way D-type DIN41612 Socket 9 way Phoenix Contact Socket To DTE (Socket) To DCE (Plug) To DTE (Socket) To DCE (Plug) A5 (TXD1) 1 (TXD) 2 (RXD) 3 (TXD) 3 (RXD) 2 (TXD) C6 (RXD1) 2 (RXD) 3 (TXD) 2 (RXD) 2 (TXD) 3 (RXD) A6 (RTS1)* 3 (RTS)* 8 (CTS) 7 (RTS) 5 (CTS) 4 (RTS) A7 (CTS1)* 4 (CTS)* 7 (RTS) 8 (CTS) 4 (RTS) 5 (CTS) C9 (GND1) 5 (GND) 5 (GND) 5 (GND)
TrustedTM Communication Interface T8151B Pin Function (DTE) MP SK1 connection 1 RTS 2 TXD E14 3 RXD E16 4 CTS 5 GND 6 unconnected Figure 19 MP and CI Front Panel Diagnostic Ports 6.1.1. Maximum Cable Length The RS232 standard states that the maximum capacitive load seen by the driver should be 2500pF. The maximum length of cable can be worked out from the capacitance specification of the cable being used.
TrustedTM Communication Interface T8151B 6.2. RS485 Communications Standard RS485 is a differential twisted pair interface. A key feature of RS485 over RS422 is its ability to support configurations where multiple line-drivers share a common twisted pair, as distinct from multi-drop (i.e. multiple receivers only) which is supported by both RS422 and RS485. There are several modes of operation for the RS485/RS422 ports of the Communication Interface. 6.2.1.
TrustedTM Communication Interface T8151B 6.2.2. RS485 Full Duplex Multiplexed This mode is a 4 wire multi-drop connection. The System Configuration setting for this mode is ‘rs485fdmux’. On circuits with multiple transmitters the line should be terminated at both ends. On circuits with one transmitter the line should be terminated at the far end (usually the last receiver in the chain). The Interface Adapter (T8153) provides links for termination on the receiver and transmitter circuit.
TrustedTM Communication Interface T8151B A TX B A RX Term B Term A B RX B A A B RX TX A B TX A B RX A B TX Figure 22 Half Duplex Multiplexed Topology The maximum number of nodes that the Communication Interface supports before hardware build C for multi-drop applications is 6. From hardware build C, the module has internal terminations changed to support the full 32 drop capacity. 6.2.4.
TrustedTM Communication Interface T8151B 6.2.6. Maximum Cable Length The maximum length of an RS485 system is dependant on cable type, data rate and termination. For example, the EIA RS-422-A standard gives a maximum length of 4000ft (approx. 1.2Km) for 24AWG twisted pair telephone cable that has a shunt capacitance of 16pF/ft, a 100R termination and a data rate of 100Kbits/s. 6.2.7. RS485 Connections The pin outs and signal labels for the Communication Interface RS485 ports are shown in Table 21 below.
TrustedTM Communication Interface T8151B 6.3. Ethernet – 10Base2 10Base2 Ethernet is a linear network with nodes fitted along the length of one network; it cannot cope with spurs. The connections use 50 Ohm coax cables (e.g. RG58). The rules for connecting 10Base2 Ethernet are given below. The maximum length of a segment without repeaters is 185m.
TrustedTM Communication Interface T8151B Table 22 below shows the cable wiring for the 10/100baseT Ethernet connections on the Communications Interface.
TrustedTM Communication Interface T8151B If the above happens, the communication interfaces will be overloaded and may crash on releases before 3.5. From release 3.5, although the communication interfaces will continue to operate, peer to peer network timeouts are likely to occur instead, which will cause a trip in the application if safety related data is being carried. The communication interfaces will not transfer packets between networks.
TrustedTM Communication Interface T8151B 6.5. Interface Adapter Connectors Table 23 below gives a list of connectors required to interface to the Communications Interface Interface Adapter (T8153).
TrustedTM Communication Interface T8151B 6.6. Further Sources of Information EIA/TIA-232-E RS232 Standard EIA/TIA-422-B RS422 Standard EIA-485 RS485 Standard IEEE 802.3 Ethernet Standard Note: EIA/TIA Electronics Industry Association/Telecommunications Industry Association. IEEE Institute of Electrical and Electronic Engineers.
TrustedTM Communication Interface T8151B 7. SOE Over Modbus Protocol The SOE Over Modbus Protocol is defined in two parts: the definition of the Modbus registers within the SOE Address Window, and the defined interaction between the Modbus master and the SOE Over Modbus service. 7.1. SOE Address Window The SOE Over Modbus protocol operates over the Modbus addresses within the configured SOE Address Window. Modbus operations on address within this window are used exclusively for the protocol.
TrustedTM Communication Interface T8151B SEQ_NO is a read-only register maintained by the SOE Over Modbus service. Upon the start of the service or after each acknowledged transfer, it is incremented when new event data is available. NUM_BLKS is a read-only register maintained by the SOE Over Modbus service. When the SEQ_NO field is incremented, the NUM_BLKS field will be updated to indicate the number of data blocks that are available. ACK_SEQ is a read/write register maintained by the Modbus master.
TrustedTM Communication Interface T8151B Offset Description Start of block + 0 HEADER Start of block + 1 YEAR_MNTH Start of block + 2 DAY_HOUR_MIN Start of block + 3 SEC_MSEC Table 26 Time-stamp Block The HEADER field is common to both Time-stamp and Variable data blocks. The TYPE bit-field will always contain the value 1 for Time-stamp blocks.
TrustedTM Communication Interface T8151B DAY_HOUR_MIN 15 14 13 12 Start of block + 2 11 DAY 10 9 8 7 6 HOUR 5 4 3 2 1 0 MIN Bit-Field Description DAY The day-of-the-month value for the timestamp (1…31). HOUR The hour value for the time-stamp (0…23). MIN The minute value for the time-stamp (0…59). Table 29 Time-stamp DAY_HOUR_MIN The SEC_MSEC field is valid only for Time-stamp blocks. It contains the second and millisecond values for the time-stamp.
TrustedTM Communication Interface T8151B HEADER 15 14 Start of block + 0 13 12 RESERVED 11 10 9 8 REASON 7 6 5 4 3 RESERVED Bit-Field Description REASON Not valid for Variable blocks. TYPE 1 = Time-stamp block. 2 = Variable block. 2 1 0 TYPE Table 32 Variable HEADER field The ADDRESS field contains the Modbus address of the variable that has changed.
TrustedTM Communication Interface T8151B While in the IDLE state, the service will wait until it receives one or more events. The events are encoded into the appropriate data blocks, with the first data block at the start of the SOE_DATA area. The service will continue to receive events and place them sequentially in data blocks in the SOE_DATA until there are no more events in the queue, or the maximum number of data blocks has been reached.
TrustedTM Communication Interface T8151B Specifications Pre build C Build C Voltage Range 20 to 32V dc 20-32V dc Heat Dissipation 24W 10W Number of Ports (Dependent on module variant) 1 serial diagnostic port Up to 4 high-speed serial ports 2 Ethernet ports 1 serial diagnostic port Up to 4 high-speed serial ports 2 Ethernet ports Serial Port Types Supported RS-232/422/485 RS-232/422/485 Ethernet Port Types Supported 10Base2 ‘Thin Ethernet’ using 50 coax cable.