Professional Documents
Culture Documents
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
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.
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
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.
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,
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
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.
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.
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
Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 5 of 10
Software_version: 1.0
2006-10-05
INTERFACE DESCRIPTION
Proportioning System with TUC-5+ Electronics
TUC5+-140-EE23.8-R0 Page 6 of 10
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
000 Free
001 Free
002 No of Batches 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
039 Free
040 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
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