You are on page 1of 10

INTERFACE DESCRIPTION

Proportioning System with TUC-5+ Electronics


TUC5+-140-EE23.8-R0 Page 1 of 10

1.0 General

The Serial Interface on the TUC-5+ Controller can be used for communication
between the TUC-5+ and a Supervisory Controller. The Supervisory Controller can
perform the following functions,
- Send control commands
- Send Recipe
- Get Proportioning Status
- Get Batch Records

2.0 Interface

2.1 Transmission Mode - Half Duplex, Asynchronous,RS-485

2.2 Communication Protocol - Modbus

2.3 Transmission Rate - 4800 - 19200 baud

2.4 Transmission mode - RTU mode

2.5 Data Format:


Data - 8 bits
Parity - Even/Odd/None (User selectable)
Stop bits - 1 bit

2.6 Error Check - CRC-16

3.0 Protocol

Communication between the Master Controller and Slave TUC-5+ unit is controlled
by the Master controller. In all cases, the Master unit initiates data transmission and
the TUC-5+ controller responds to it. When master unit begins data transmission, it
sends a set of data (query message) to the TUC-5+ unit in a fixed sequence. Upon
receiving the query message, the slave unit decodes it, takes the necessary action
and returns a fixed data (response message) to the Master unit.

3.1 Message Format

The message consists of four parts: slave (TUC-5+) address, function code, data and
error check code, which are always transmitted in this sequence.

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 2 of 10

Slave Address
Function Code

Data

Error Check

3.1.1 Slave address

This is a number in the range 01 to 99, which is preset for each slave unit. The
master unit communicates with only one slave unit at a time. Although all connected
slave units receive the query message sent from the master unit, only the slave unit
having the slave address coinciding with the query message accepts the message.

The Slave address "0" can be used with some function codes so that all slave units
accept the query message regardless of their preset addresses. In this case, no slave
unit returns a response message to the master unit after command execution.

3.1.2 Function code

The master unit specifies function to be executed to a slave unit using function code.
The functions possible with TUC-5+ unit are as follows,

Function code Function Description


(Decimal)
1 or 2 Read status of a group of Binary Flags or Digital I/O
3 or 4 Read 16 bit value of one or more Register Contents
5 Change Single Digital Output/Binary Flag status
6 Write a specific 16 bit value into a register
8 Loop-back diagnostic test
15 Change a series of consecutive Digital Output/Binary
Flag status
16 Write a series of 16 bit register values

3.1.3 Data

After setting the function, the master unit sends the data needed to execute the
function to the slave unit. Data depends on the function.

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 3 of 10

3.1.4 Error Check Code

CRC-16 (Cyclic Redundancy Check) is used for error detection.

4.0 Slave unit (TUC-5+) Response

Receiving a query message from the master unit, the slave unit examines it and,
when valid, decodes and executes it. If invalid, the slave unit ignores the message
and takes no action. For all valid messages, the slave unit prepares a response
message and transmits it to the master unit. For defective messages, like reference
to illegal Function codes, the slave unit transmits a message identifying the defect.

4.1 Normal Response

Messages from the master with Function codes 5, 6 or 8, the slave unit responds with
the same message as the query message.
Messages with Function code 15 or 16, the slave unit returns part of the query
message (slave address, function code, starting number, and number of bytes
changed) as the response message.

In the response message for functions, 1, 2, 3 or 4, slave address and function code
are same as in the query message with the data bytes appended.

4.2 Response to Defective Message

If the query message is defective (except in the case of transmission error), the slave
unit takes no action and returns the response message as shown below,

Slave Address
1 Function Code
Error Code
Error Check

The master unit can determine if the slave unit executes the query message, by
examining the function code involved in the response message. If it detects an error,
the error code that follows the function code can be examined to detect the type of
error.
Error Code Description
1 Invalid Function code ´
2 Number out of range
3 Number of elements out of range
17 CRC-16 error

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 4 of 10

4.3 No Response

In the following cases, the slave unit ignores the query message and does not
respond.
- Transmission error in query message
- Slave address in message different from the address assigned
- Time interval between adjacent data in the query message is greater than 1 sec.

When the slave address is "0" with a writing function, all slave units execute the query
message but do not respond.

5.0 Addresses

5.1 Digital Inputs/Outputs : 000 to 079

5.2 Flags : 080 to 151

5.3 Registers (Analog Values) : 000 to 020

6.0 Data Table

6.1 Digital Inputs :

Bit Address Description

000 to 007 E000 to E007


008 to 015 E008 to E015
016 to 023 E020 to E027
024 to 031 E030 to E037

6.2 Digital Outputs:

Bit Address Description

040 to 047 A000 to A007


048 to 055 A008 to A015
056 to 063 A020 to A027
064 to 071 A030 to A037

6.3 Flags (Inputs):

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 5 of 10

Bit Address Description

080 Remote Start


081 Remote Stop
082 Remote On/Off
083 Free
084 Free
085 Free
086 Free
087 Abort Batch

088 Proportioning Enable


089 Discharge enable
090 Fault acknowledge
091 Tare
092 Cancel Tare
093 Zero
094 Auto mode
095 Manual mode

096 Emergency Stop


097 Start
098 Stop
099 ‘1’ - Fill every Batch
100 Filling Enable
101 Free
102 Free
103 Free

104 Select Recipe-BCD bit 24


105 Select Recipe-BCD bit 23
106 Select Recipe-BCD bit 22
107 Select Recipe-BCD bit 21
108 Select Recipe-BCD bit 20
109 Free
110 Free
111 Free

6.4 Flags (Outputs):

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 6 of 10

Bit Address Description

112 Coarse Proportioning


113 Fine Proportioning
114 Discharge
115 Faulty Batch
116 Loadcell Fault
117 Filling
118 Ready to Fill
119 Free

120 Filling Error


121 +ve Tolerance error
122 -ve Tolerance error
123 Ready for Discharge
124 Automatic/Manual mode
125 Coarse feed timeout
126 Fine Feed timeout
127 Free

128 Limit Value 1


129 Limit Value 2
130 Zero range
131 Online
132 Sequence running
133 Batch end
134 Discharge Timeout
135 Limit Empty

136 Function key pressed


137 0,5 Sec Blinking Marker
138 Component1
139 Component2
140 Component3
141 Component4
142 Component5
143 Component6

144 Hopper Weight < Re-fill Limit


145 Hopper Weight > Fill Limit
146 Free
147 Free
148 Free

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 7 of 10

149 Free
150 Free
151 Free

6.5 Registers (Inputs): 2 Byte Values

Address Description Range

000 Free
001 Free
002 No of Batches Un-signed Int-16

003 Setpoint-Component1 Un-signed Int-16


004 Overfill Quantity-Component1 Un-signed Int-16
005 +ve Tolerance-Component1 Un-signed Int-16
006 -ve Tolerance-Component1 Un-signed Int-16
007 In-flight Value-Component1 Un-signed Int-16
008 Fine Feed Value-Component1 Un-signed Int-16

009 Setpoint-Component2 Un-signed Int-16


010 Overfill Quantity-Component2 Un-signed Int-16
011 +ve Tolerance-Component2 Un-signed Int-16
012 -ve Tolerance-Component2 Un-signed Int-16
013 In-flight Value-Component2 Un-signed Int-16
014 Fine Feed Value-Component2 Un-signed Int-16

015 Setpoint-Component3 Un-signed Int-16


016 Overfill Quantity-Component3 Un-signed Int-16
017 +ve Tolerance-Component3 Un-signed Int-16
018 -ve Tolerance-Component3 Un-signed Int-16
019 In-flight Value-Component3 Un-signed Int-16
020 Fine Feed Value-Component3 Un-signed Int-16

021 Setpoint-Component4 Un-signed Int-16


022 Overfill Quantity-Component4 Un-signed Int-16
023 +ve Tolerance-Component4 Un-signed Int-16
024 -ve Tolerance-Component4 Un-signed Int-16
025 In-flight Value-Component4 Un-signed Int-16
026 Fine Feed Value-Component4 Un-signed Int-16

027 Setpoint-Component5 Un-signed Int-16


028 Overfill Quantity-Component5 Un-signed Int-16
029 +ve Tolerance-Component5 Un-signed Int-16

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 8 of 10

030 -ve Tolerance-Component5 Un-signed Int-16


031 In-flight Value-Component5 Un-signed Int-16
032 Fine Feed Value-Component5 Un-signed Int-16

033 Setpoint-Component6 Un-signed Int-16


034 Overfill Quantity-Component6 Un-signed Int-16
035 +ve Tolerance-Component6 Un-signed Int-16
036 -ve Tolerance-Component6 Un-signed Int-16
037 In-flight Value-Component6 Un-signed Int-16
038 Fine Feed Value-Component6 Un-signed Int-16

039 Free
040 Free

6.6 Registers (Outputs): 2 Byte Values

Address Description Range

041 Actual Value (Gross) Un-signed Int-16


042 Actual Value (Net) Un-signed Int-16

043 Actual Value-Component1 Un-signed Int-16Note1


044 Actual Value-Component2 Un-signed Int-16 Note1
045 Actual Value-Component3 Un-signed Int-16 Note1
046 Actual Value-Component4 Un-signed Int-16 Note1
047 Actual Value-Component5 Un-signed Int-16 Note1
048 Actual Value-Component6 Un-signed Int-16 Note1

049 Error_Status_bytes Un-signed Int-16


High byte – Error_Number
Low_byte – Status_Number
050 Free

Note:
1.0 MSB of 16-bit Actual Component value is made ‘1’ in case of Tolerance error for
that component
2.0 Un-signed Int-16 value range: 0 to 65535
3.0 Decimal points & units of all 2 byte values are as per TUC-5+ Configuration
Parameters.
4.0 Error Number list

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 9 of 10

Error Description
Number
(Hex)
01 InAdm. Setpoint
02 Error Printer
03 DIO 2 Communication
04 DIO 1 Communication
05 SIO Communication
06 Tolerance Error
07 Error Zeroing
08 Error Discharge
09 EEProm Read error
0A Overload
0B EEProm Write error
0C Underload
0D Loadcell Fault
0E Cycle Fault
0F Emergency Stop
10 No PLC File
11 Error Coarse Feeding
12 Error Fine Feeding
13 Error Filling
14 DIO 3 Communication
15 DIO 4 Communication
16 Setpoint Error
17 Tolerance Error?CL-Y,Esc-No
18 Master Communicaton
19 Batch Aborted

5.0 Status Number list

Status Description
Number
(Hex)
01 Coarse Feeding in progress
02 Fine Feeding in progress
03 Ready to Discharge (Waiting for Discharge enable)
04 Ready to Start (Waiting for Proportioning enable)
05 Discharging in progress
06 Batch Complete
07 Zeroing

Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 10 of 10

08 Printing
09 Low Level
0A Batch start delay in progress
0B Coarse-Fine Switch over delay
0C Fine-Inflight Switch over delay
0D Addl. Proportioning in progress
0E Busy
0F Filling in progress
10 Ready to Fill (Waiting for fill enable)

Software_version: 1.0
2006-10-05

You might also like