Tejas
Tejas
I-1
MASTER-TO-REMOTE
Scan requests from the Master or Host consist of 5 or 6 bytes, depending on the type of security code implemented. The request message is:
I-1
I-2
REMOTE-TO-HOST
The addressed remote responds to the Host request by sending a variable length response message.
one byte one byte one byte variable length one or two bytes
Station ID
Direction Bit = 1 Direction Bit = 0
Opcode
Data
Data
Security Code
ABER COSR
Station ID
RTU Status
COS Count
Data
Security Code
I-2
I-3
The data portion of a message is always two bytes in length for a Master-toRemote message. The length of the data portion of a message in a Remote-to-Master transmission varies depending on the function being performed.
Description Analog Scan Accumulator Scan Status Point Scan Control Select Control Execute Not Used Accumulator Freeze Accumulator Reset Accumulator Freeze and Reset Status Point Change (COS Dump) RTU Status Clear RTU Configuration Request Analog Deadband Download Analog Change Count Request Analog Change (ABE) Dump Analog Output Select Analog Output Operate Analog Output Direct Control Analog Output Setpont Scan SOE Time Sync Time Tagged COS queue dump Pulse Output (no reply) Pulse Output Reserved or Illegal
Implemented Y Y Y Y Y N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N
I-3
I-4
The message trailer consists of either one byte if the security code is set to LRC or two bytes if it is set to CRC. The LRC is produced at the time of transmission from the host by computing the EXCLUSIVE OR of each byte of data as it is transmitted. The value calculated is sent along with its associated ODD parity bit as the last byte of a transmission.. At the receiving end, all the bytes of a message (including the transmitted LRC) are passed thru the EXCLUSIVE OR calculation. If the result is zero the message was received error free. A non-zero result indicates an error condition. Note that the parity column is not included in the LRC calculation.; the parity bit of the LRC byte is calculated as the odd parity of the eight data bits of the LRC character just like any other byte of data. An optional error check technique appends a standard CRC-16 security code at the end of each message. The technique differs from the LRC in two important ways: the individual data bytes do not include a parity bit and are therefore 10 bits long instead of 11 bits and the CRC-16 check consists of two bytes of security code instead of one. The TEJAS protocol uses the generator polynomial X16 + X15 + X2 + 1 to generate the check word.
I-5
been read into the Comm-Troller memory normal operation begins. Based on information stored in the table the Comm-Troller continuously reads data from the PLC(s) that may be required by the host computer. The data read is placed in a dual ported memory bank that is accessible by the TEJAS protocol emulation microprocessor. When a request for information is received from the host it is answered using data already present in the dual-ported memory. Control commands received from the host are first validated and if correct a message is sent to the PLC to perform the desired control action. The configuration table consists of a header and from one to eight data sections as defined below. The header contains general type information such as the RTU Address, remote communications baud rate and parity and other data as defined in section 1.5.1 below. A data section is defined for each block of data to be read from a PLC. Each data section contains the data highway address of the PLC where the data is located as well as the number items a starting address for each group. Group data can be collected from up to 8 PLCs.
I-5
I-6
WORD 2 HI Byte #4 is used to define the baud rate which will be used while communicating with the host. This entry is a hex coded number. Valid selections are: 300 baud = 04H, 600 baud = 05H, 1200 baud = 06H, 2400 baud = 08H, 4800 baud = 09H and 9600 baud = 0BH. WORD 2 LOW Byte #5 is used to select the host communication line parity bit. Valid settings for this byte are: No Parity (00H), Odd Parity (01H) and Even Parity (02H). WORD 3 HI Byte #6 is used to select the number of Stop Bits to use when communicating with the host. Valid selections are: 1 Stop Bit (01H) or 2 Stop Bits (02H) WORD 3 LOW thru WORD 7 HI Bytes #7 thru 14 are not recognized by the Comm-Troller for the TEJAS protocol.
BYTE # 0,1 2,3 4,5 6,7 4-13 14,15 16-19 20,21 22,23 24,5 16,27 28,29 30,31 32,33 34,35 36-49
Function RTU Number; Number of Data Tables To read Reserved-set to 0000H Baud Rate; Parity Stop Bits; Reserved Reserved Reserved; PLC Swap Enable Reserved CRC Enable; Reserved Message Resync Timer (X10ms) Radio Key Address Maximum Message Length Setpoint Arm Timeout (X10msec) Radio Turn-off Delay (x10msec) Reserved; PLC Address for Reset Accumulator Function Accumulator Reset Address Reserved
I-6
I-7
WORD 7 LOW Byte #15 is the PLC "SWAP" enable flag. If this byte is non-zero any failure detected by the Comm-Troller while communicating with the PLC will result in an automatic switch-over to a backup PLC. The backup PLC must have exactly the same configuration information as the primary PLC. The backup PLC address must be the address of the primary PLC plus 1. If the backup PLC subsequently fails the Comm-Troller will attempt to switch back to the primary unit. If this byte is zero then a switch will not be attempted. WORDS 8 and 9 Bytes 16, 17, 18 and 19 are not used for the TEJAS Comm-Troller. Word 10 HI Byte #20 is used to specify the type of error detection to use. Set this byte to 00H to select LRC mode. Set this byte to 01H to select CRC mode. Word 10 LOW Byte #21 is not used. Set to 00H. WORD 11 HI LOW Bytes #22 and 23 are used to specify a message re-sync time-out period. A timer is started when any character is received. If a break in the message occurs for a time longer than the message re-sync time-out period the previous message characters are discarded and a new message assembly is started. The message re-sync time is equal to the count contained in word 11 times 10 msec. WORD 12 HI LOW Bytes #24 and 25 are used to specify a "radio key address". Some radios used for communication require an external contact closure to "key" or start the radio transmitter. A PLC output could be used to perform this function. Word 12 is used to specify the HEX BYTE ADDRESS of a word in the PLC which will be accessed by the Comm-Troller whenever a message is ready to be transmitted. The least significant bit of the word will be set prior to transmission and reset after transmission is completed.. If word 12 is set to 0000H then no radio keying will be performed. WORD 13 HI, LOW Bytes #26 and 27 are used to specify a maximum message length. WORD 14 HI, LOW Bytes #28 and 29 are used to specify a SETPOINT ARM time-out period. If an execute command is not received within the time-out period then the arm command is discarded. The time-out period is equal to the count contained in word 14 times 10 msec.
I-7
I-8
WORD 15 HI, LOW Bytes #30 and 31 are used to specify a "radio-turn-off" delay. It is sometimes necessary to keep the radio transmitter keyed at the end of a transmission to insure that the last character is completely sent, especially if there are repeater stations involved. The delay period is equal to the count contained in word 15 times 10 msec. WORD 16 HI, LOW Bytes #32 and 33 are used to specify the address of a PLC to use for the "reset accumulator function". See word 17 below. WORD 17 HI, LOW Bytes #34 and 35 are used to specify the HEX BYTE ADDRESS of a word which will be written when a reset accumulator function is received. The least significant bit of the word will be set on if the function is an accumulator freeze command. The least significant two bits of the word will be set for an accumulator freeze and reset command. WORDS 18 thru 24 Bytes 36 thru 49 are not used. Set to 0000H.
I-8
I-9
define the hi byte and the right 2 the low byte. The figure below defines both the PLC word and the Comm-Troller byte number for the configuration header data. The Configuration data tables start at the next address following the end of the header section. Data sections are read in pairs by the Comm-Troller. Up to 4 pairs (8 data sections) can be defined. The amount of data that can be defined in a single table
Word 0 1 2 3 4 5 6 7 8 9 10 11-27 28
BByte 0,1 2,3 4,5 6,7 8,9 10,11 12,13 14,15 16,17 18,19 20,21 22-55 56;00
Function PLC Address; Size=02 Number of digital inputs/16; Start addx.of Digital Inputs HI Digital Input Addx. LOW; Size=02 Number of Analog Inputs; Start Addx of Analog Inputs HI Analog Input Addx. LOW; Size=02 Number of Accumulators; Start Addx of Accumulators HI Accumulator Addx. LOW; Size=02 Number of Control Outputs/16; Start Addx. of Controls HI Control Addx. LOW; Size=02 Number of Setpoints; Start Addx of Setpoints Setpoint addx LOW; Reserved Reserved Reserved; Next Table Start
I-9
I-10
The high-order two bits of the PLC address field are used when multiple reads from the same PLC are required. The address bits are not used by the PLC for the highway address. Using PLC 0AH as an example, a second table can be read from the PLC by setting byte 0 to address 4AH. The tired read will be from address 8AH and the fourth from address CAH. WORD 0 LOW Byte #1 is used to define the number of bytes of data for each status input card. Normally it will be set to 2 because a 16-bit register is used to store 16 bits of status information. In special applications however, PLC ladder logic could be used to form "cards" of any width. The TEJAS Comm-Troller only permits a size of 2. WORD 1 HI Byte #2 is used to define the number of status input registers associated with this PLC. A total of 256 bytes of status input information can be defined per Comm-Troller. WORD 1 LOW and WORD 2 HI Bytes #3 and 4 define the starting address (hex byte address) in the PLC for the status input data. WORD 2 LOW, WORD 3 and WORD 4 HI Bytes #5, 6, 7 and 8 are used in a similar fashion to define the Analog input registers for the PLC. A total of 256 bytes of analog input information can be defined per Comm-Troller. WORD 4 LOW, WORD 5 and WORD 6 HI Bytes #9, 10, 11 and 12 are used to define accumulator inputs. A total of 256 bytes of accumulator information can be defined per Comm-Troller. WORD 6 LOW, WORD 7 and WORD 8 HI Bytes #13, 14, 15 and 16 are used to define control outputs. A total of 64 bytes of control output information can be defined per Comm-Troller WORD 8 LOW, WORD 9 and Word 10 HI Bytes #17, 18, 19 and 20 are used to define analog outputs. A total of 64 bytes of analog output information can be defined per Comm-Troller. WORD 10 LOW thru WORD 28 HI Bytes #21 thru 56 are not used in the TEJAS Comm-Troller. Set all bytes to zero.
I-10
I-11
JUMPER J2 J3 J4 J5 J6 J7 J8 J9
POSITION 1-2 NOT USED NOT USED NOT USED 1-2 1-2 NOT USED NOT USED
POSITION NOT USED 1-2 1-2 NOT USED NOT USED 1-2 NOT USED NOT USED
TEJAS Protocol Communication is on Port P1 (top port), Allen-Bradley Communication is on Port P2 (center port) U13 = #XXX-XXX-X U23 = #XXX-XXX-X
I-11
I-12
Protocol PLC Type Comm. Data Num. of PLCs Num. of Status Num. of Analogs Num. of Accums Num. of Controls Num. of Setpoints
TEJAS Series V One PLC RTU Address =01) PLC-5/15 Leased Line, 1200 baud, 1 stop, Odd Parity One 144 5 6 112 6
Desired location of configuration table at word 000010 Desired starting location of data at word 20010
I-12
I-13
I-13