Teta Inverter Protocol MA610
Teta Inverter Protocol MA610
118
Communication Protocol
9.3.1 RS485
The interface of 2-wire RS485 works on semiduplex and its data signal applies differential
transmission which is called balance transmission, too. It uses twisted pairs, one of which is
defined as A (+) and the other is defined as B (-). Generally, if the positive electrical level
between sending drive A and B is among +2~+6V, it is logic“1”, if the electrical level is among
-2V~-6V; it is logic“0”.
485+ on the terminal board corresponds to A and 485- to B.
Communication baud rate means the binary bit number in one second. The unit is bit/s (bps).
The higher the baud rate is, the quicker the transmission speed is and the weaker the
anti-interference is. If the twisted pairs of 0.56mm(24AW G)is applied as the communication
cables, the Max. Transmission distance is as below:
Max. transmission Max. transmission
Baud rate Baud rate
distance distance
2400BPS 1800m 9600BPS 800m
4800BPS 1200m 19200BPS 600m
It is recommended to use shield cables and make the shield layer as the grounding wires
during RS485 remote communication.
In the cases with less devices and shorter distance, it is recommended to use 120Ω terminal
resistor as the performance will be weakened if the distance increase even though the
network can perform well without load resistor.
9.3.2 RTU mode
119
Communication Protocol
In one character frame, the digital bit takes effect. The start bit, check bit and end bit is used
to send the digital bit right to the other device. The digital bit, even/odd checkout and end bit
should be set as the same in real application.
The MODBUS minimum idle time between frames should be no less than 3.5 bytes. The
network device is detecting, even during the interval time, the network bus. When the first
field (the address field) is received, the corresponding device decodes next transmitting
character. When the interval time is at least 3.5 byte, the message ends.
The whole message frame in RTU mode is a continuous transmitting flow. If there is an
interval time (more than 1.5 bytes) before the completion of the frame, the receiving device
will renew the uncompleted message and suppose the next byte as the address field of the
new message. As such, if the new message follows the previous one within the interval
time of 3.5 bytes, the receiving device will deal with it as the same with the previous
message. If these two phenomena all happen during the transmission, the CRC will
generate a fault message to respond to the sending devices.
The standard structure of RTU frame:
120
Communication Protocol
121
Communication Protocol
The method is advanced with easy program and quick calculation speed. But the ROM space
the program occupied is huge. So use it with caution according to the program required
space.
T1-T2-T3-T4 between START and END is to provide at least the time of 3.5 bytes as the
leisure time and distinguish two messages for the avoidance of taking two messages as one
message.
ADDR = 01H means the command message is sent to the inverter with the address of 01H
and ADDR occupies one byte
CMD=03H means the command message is sent to read data form the inverter and CMD
occupies one byte
“Start address” means reading data form the address and it occupies 2 bytes with the fact
that the high bit is in the front and the low bit is in the behind.
“Data number” means the reading data number with the unit of word. If the “start address’ is
0004H and the “data number” is 0002H, the data of 0004H and 0005H will be read.
CRC occupies 2 bytes with the fact that the high bit is in the front and the low bit is in the
behind.
RTU slave response message (from the inverter to the master)
START T1-T2-T3-T4 (transmission time of 3.5 bytes)
122
Communication Protocol
ADDR 01H
CMD 03H
Byte number 04H
Data high bit of address 0004H 13H
Data low bit of address 0004H 88H
Data high bit of address 0005H 00H
Data low bit of address 0005H 00H
CRC CHK low bit 7EH
CRC CHK high bit 9DH
END T1-T2-T3-T4 (transmission time of 3.5 bytes)
The meaning of the response is that:
ADDR = 01H means the command message is sent to the inverter with the address of 01H
and ADDR occupies one byte
CMD=03H means the message is received from the inverter to the master for the response
of reading command and CMD occupies one byte
“Byte number” means all byte number from the byte(excluding the byte) to CRC
byte(excluding the byte). 04 means there are 4 byte of data from the “byte number” to “CRC
CHK low bit”, which are “digital address 0004H high bit”, “digital address 0004H low bit”,
“digital address 0005H high bit” and “digital address 0005H low bit”.
There are 2 bytes stored in one data with the fact that the high bit is in the front and the low
bit is in the behind of the message, the data of data address 0004H is 1388H, and the data
of data address 0005H is 0000H.
CRC occupies 2 bytes with the fact that the high bit is in the front and the low bit is in the
behind.
9.4.2 Command code: 06H
06H (correspond to binary 0000 0110), write one word(Word)
The command means that the master write data to the inverter and one command can write
one data other than multiple dates. The effect is to change the working mode of the inverter.
For example, write 5000 (1388H) to 0004H from the inverter with the address of 02H, the
fram e structure is as below:
RTU master command message (from the master to the inverter)
123
Note
124
Communication Protocol
125
Communication Protocol
be changed into hex. For example P05.06, the group number before the radix point of the
function code is 05, then the high bit of the parameter is 05, the number after the radix point
05, then the low bit of the parameter is 06, then the function code address is 0506H and the
parameter address of P10.01 is 0A01H.
Note: P29 group is the factory parameter which can not be read or changed. Some
parameters can not be changed when the inverter is in the running state and some
parameters can not be changed in any state. The setting range, unit and relative
instructions should be paid attention to when modifying the function code parameters.
Besides, EEPROM is stocked frequently, which may shorten the usage time of EEPROM.
For users, some functions are not necessary to be stocked on the communication mode.
The needs can be met on by changing the value in RAM. Changing the high bit of the
function code form 0 to 1 can also realize the function. For example, the function code
P00.07 is not stocked into EEPROM. Only by changing the value in RAM can set the
address to 8007H. This address can only be used in writing RAM other than reading. If it is
used to read, it is an invalid address.
126
Communication Protocol
127
Communication Protocol
128
Communication Protocol
R/W characteristics means the function is with read and write characteristics. For example,
“communication control command” is writing chrematistics and control the inverter with
writing command (06H). R characteristic can only read other than write and W characteristic
can only write other than read.
Note: when operate on the inverter with the table above, it is necessary to enable some
parameters. For example, the operation of running and stopping, it is necessary to set P00.01
to communication running command channel and set P00.02 to MODBUS communication
channel. And when operate on “PID reference”, it is necessary to set P09.00 to “MODBUS
communication setting”.
The encoding rules for device codes (corresponds to identifying code 2103H of the inverter)
Note: the code is consisted of 16 bit which is high 8 bits and low 8 bits. High 8 bits mean
the motor type series and low 8 bits mean the derived motor types of the series. For
example, 0110H means TETA MA610 vector inverters.
9.4.6 Fieldbus ratio values
The communication data is expressed by hex in actual application and there is no radix point
in hex. For example, 50.12Hz can not be expressed by hex so 50.12 can be magnified by
100 times into 5012, so hex 1394H can be used to express 50.12.
A non-integer can be timed by a multiple to get an integer and the integer can be called
fieldbus ratio values.
The fieldbus ratio values are referred to the radix point of the setting range or default value in
the function parameter
n list. If there are figures behind the radix point (n=1), then the fieldbus
ratio value m is 10 . Take the table as the example:
129
Communication Protocol
If there is one figure behind the radix point in the setting range or the default value, then
the fieldbus ratio value is 10. if the data received by the upper monitor is 50, then
the “hibernation restore delay time” is 5.0 (5.0=50÷10).
If MODBUS communication is used to control the hibernation restore delay time as 5.0s.
Firstly, 5.0 can be magnified by 10 times to integer 50 (32H) and then this data can be sent.
After the inverter receives the command, it will change 50 into 5 according to the fieldbus
ratio value and then set the hibernation restore delay time as 5s.
Another example, after the upper monitor sends the command of reading the parameter of
hibernation restore delay time ,if the response message of the inverter is as following:
Because the parameter data is 0032H (50) and 50 divided by 10 is 5, then the hibernation
restore delay time is 5s.
130
Communication Protocol
But the setting range of “running command channel” is 0~2, if it is set to 3, because the
number is beyond the range, the inverter will return fault response message as below:
131
Communication Protocol
Abnormal response code 86H means the abnormal response to writing command 06H; the
fault code is 04H. In the table above, its name is operation failed and its meaning is that the
parameter setting in parameter writing is invalid. For example, the function input terminal can
not be set repeatedly.
9.4.8 Example of writing and reading
Refer to 10.4.1 and 10.4.2 for the command format.
9.4.8.1 Example of reading command 03H
Read the state word 1 of the inverter with the address of 01H (refer to table 1). From the
table 1, the parameter address of the state word 1 of the inverter is 2100H.
The command sent to the inverter:
The data content is 0003H. From the table 1, the inverter stops.
Watch “the current fault type” to “the previous 5 times fault type” of the inverter through
commands, the corresponding function code is P07.27~P07.32 and corresponding
parameter address is 071BH~0720H(there are 6 from 071BH).
The command sent to the inverter:
See from the returned data, all fault types are 0023H (decimal 35) with the meaning of
maladjustment (STo).
9.4.8.2 Example of writing command 06H
Make the inverter with the address of 03H to run forward. See table 1, the address of
“communication control command” is 2000H and forward running is 0001. See the table
below.
132
Communication Protocol
If the operation is success, the response may be as below (the same with the command
sent by the master):
Set the Max. Output frequency of the inverter with the address of 03H as100Hz.
See the figures behind the radix point, the fieldbus ratio value of the Max. output frequency
(P00.03) is 100. 100Hz timed by 100 is 10000 and the corresponding hex is 2710H.
The command sent by the master:
If the operation is successful, the response may be as below (the same with the command
sent by the master):
Note: the blank in the above command is for illustration. The blank can not be added in the
actual application unless the upper monitor can remove the blank by themselves.
Common communication fault
Common communication faults are: no response to the communication or the inverter
returns abnormal fault.
The possible reason for no response to the communication:
Selecting wrong serial interface, for example, if the converter is COM1, selecting COM2
during the communication
The baud rate, digital bit, end bit and check bit are not the same with the inverter + and - of
RS485 are connected in reverse.
The 485 wire cap on the terminal board of the inverter is not plug in. the wire cap in
behind the terminal arrangement.
9.4.8.3 Example of continous writing command10H
Example 1: make the inverter whose address is 01H run forward at 10Hz. Refer to the
instruction of 2000H and 0001. Set the address of “communication setting frequency” is
2001H and 10Hz corresponds to 03E8H. See the table below.
133
Communication Protocol
Example 2: set the ACC time of 01H inverter as 10s and the DEC time as 20s
ACC time means the time needed if the inverter Depend
P00.11 ACC time 1 speeds up from 0Hz to the Max. One (P00.03).
DEC time means the time needed if the inverter
on
model
○
speeds down from the Max. Output frequency to Depend
P00.12 DEC time 1 0Hz (P00.03).
Setting range of P00.11 and P00.12:0.0~3600.0s
on
model
○
The corresponding address of P00.11 is 000B, the ACC time of 10s corresponds to 0064H,
and the DEC time of 20s corresponds to 00C8H.
The command sent to the inverter:
Note: The space between above commands is for instruction and there is no space between
the commands during actual applications.
134