Modbus RTU Mode & Modbus ASCII Mode and frame length is maximum 80
bytes. 1.1Hardware Installation. Slave A510. Address 01. Slave A510. Address
02.
No: Version: x01 Page: 1
A510 MODBUS Communication Protocol
A510 MODBUS Communication Protocol English Version
Approval
Check
Write
No: Version: x01 Page: 2
A510 MODBUS Communication Protocol
1. Communication data frame A510 can be communication-controlled by PC or other controllers via RS485 or RS232 with protocol Modbus RTU Mode & Modbus ASCII Mode and frame length is maximum 80 bytes.
1.1Hardware Installation Controller
Slave A510
Slave A510
Slave A510
Slave A510
Address 01
Address 02
Address 03
Address FE
Option Card
Option Card
Option Card
Option Card
RSA
RSA
(PLC / HMI or PC )
RS-485 Interface
RSB
RSB
RSA
RSB
RSA
Receive Send 120Ω 1/4w
120Ω 1/4w
**Please connect terminal resistance 120Ω,1/4w between start terminal and end terminal of communication.**
1.2 Data Frame 1.2.1 Data Frame FOR ASCII MODE STX(3AH)
Start character = 3AH
Address Hi Address: consist of 2 ASCII code Address Lo Function Hi Command: consist of 2 ASCII code Function Lo Command Start Address Command Start Address Command start bit: consist of ASCII code Command Start Address Command Start Address Data length Data length Data length from start to end: consist of ASCII code Data length Data length LRC Check Hi LRC check code: consist of ASCII code LRC Check Lo END Hi End code: END Hi=CR(0DH),END Li = LF(0AH) END Lo
RSB
A510 MODBUS Communication Protocol
No: Version: x01 Page: 3
1.2.2 Data Frame FOR RTU MODE MASTER (PLC etc) sends command to SLAVE while SLAVE responds. Receive date frame is following. The data length will differ from commands to commands.
SLAVE address Command code DATA CRC CHECK Signal Interval **The interval between sending command to respond command should maintain in 10mS.
1.3 SLAVE Address 00H: Broadcast to all the drives 01H: To No1. drive. 0FH: To No15. drive. 10H: To No16. drive. and so on ……254(FEH)
1.4 Function Code 03H: Read the register contents 06H: Write a WORD to register 08H: Loop test 10H: Write several data to register (complex number register write)
A510 MODBUS Communication Protocol
No: Version: x01 Page: 4
2. CMS (Checksum and time-out definition) 2.1 LRC ex. ADDRESS FUNCTION COMMAND
01H 03H 01H
00H DATA LENGTH 0AH ----------------------0FH------------complement of 2 Checksum = F1H CS(H) = 46H (ASCII) CS(L) = 31H (ASCII) 2.2 CRC CHECK:CRC code covers the content from Slave address to DATA. Please calculate it according to the following methods. (1) Load a 16-bit register with FFFF hex (all1’s). Call this CRC register. (2) Exclusive OR the first 8-bit byte of the message, the low-order byte of the 16-bit CRC register, putting the result in the CRC register. (3) Shift the CRC register one bit to the right (toward the LSB), Zero-filling the MSB, Extract and examines the LSB. (4) (If the LSB was 0): Repeat Steps (3) (another shift) (If the LSB was 1): Exclusive OR the CRC register with the polynomial value A001 hex (1010 0000 0000 0001), putting the result in CRC register. (5) Repeat Steps (3) and (4) until 8 shifts been performed. When this is done, a complete 8-bit byte will be processed. (6) Repeat Steps (2) through (5) for next 8-bit byte of the message, Continue doing this until all bytes have been processed. The final content in the CRC register is the CRC value. When sending the CRC value, the Low-order byte should be sent firstly, then the High-order byte. For example, CRC value: 124 Hex, the high-order byte should be set to 41hex and low-order byte 12hex. CRC calculate program: UWORD ch_sum ( UBYTE long , UBYTE *rxdbuff ) { BYTE i = 0; UWORD wkg = 0xFFFF; while ( long-- ) { wkg ^= rxdbuff++; for ( i = 0 ; i < 8; i++ ) { if ( wkg & 0x0001 ) wkg = ( wkg >> 1 ) ^ 0xa001; else wkg = wkg >> 1; } } return( wkg ); }
No: Version: x01 Page: 5
A510 MODBUS Communication Protocol
3. Error code ASCII Mode STX
RTU Mode ‘:’
SLAVE address
02H
‘0’
Function
83H
‘1’
Exception code
52H
Address ‘8’
Function
CRC-16
‘6’ Exception
‘5’
code
‘1’
LRC Check
High order
C0H
Low order
CDH
‘2’ ‘8’ ‘CR’
END
‘LF’
When there is exception in communication, the drive will sent exception code and Function Code AND 80H to main control system. Then the system will aware there is exception.
Exception code
4 Inverter Control
Content
01
Function code error
02
Register number error
03
Number error
04
DATA setting error
No: Version: x01 Page: 6
A510 MODBUS Communication Protocol
4.1 Command DATA (Readable and Writable) Bit
Register No. 2500H
Reserved
Operation
2501H
Content
0
Operation
1
Command
Signal
1 : Run
0 : Stop
Reverse Command
1 : Reverse
0 : Forward
2
External Fault
1 : Fault
3
Fault
1 : Reset
4
Reserved
5
Reserved
6
Multi-function Comm S1
1 :“ON”
7
Multi-function Comm S2
1 :“ON”
8
Multi-function Comm S3
1 :“ON”
9
Multi-function Comm S4
1 :“ON”
A
Multi-function Comm S5
1 :“ON”
B
Multi-function Comm S6
1 :“ON”
C
Multi-function Comm S7
1 :“ON”
D
Multi-function Comm S8
1 :“ON”
E
drive mode
1 : “ON”
F
Reserved
Reset
2502H
Frequency Command
2503H
Reserved
2504H
Reserved
2505H
AO1
2506H
AO2
2507H
DO
2508H
Reserved
2509H
Reserved
250AH
Reserved
250BH
Reserved
250CH
Reserved
250DH
Reserved
250EH
Reserved
250FH
Reserved
Note : Write in zero for Not used BIT, do not write in data for the reserved register.
4.2 Monitor Data
(Only for reading)
No: Version: x01 Page: 7
A510 MODBUS Communication Protocol
Bit
Register No.
State Signal
2520H
2521H
Content
0
Operation State
1 : Run
0 : Stop
1
Direction
1 : Reverse
0 : Forward
2
Inverter operation prepare state
1 : ready
0 : unready
3
Fault
1 : Abnormal
4
Waring
1 :“ON”
5
ZeroSpeed
1 :“ON”
6
Is440V
1 :“ON”
7
FreqAgree
1 :“ON”
8
SetFreqAgree
1 :“ON”
9
FreqDet1
1 :“ON”
A
FreqDet2
1 :“ON”
B
UnderVoltage
1 :“ON”
C
InvNoOutput
1 :“ON”
D
FreqNotFromComm
1 :“ON”
E
SeqNotFromComm
1 :“ON”
F
OverTorque
1 :“ON”
State
0
31
Under Torque 1
Error Description
1
UV
32
Under Torque 2
2
OC
33
CF02
3
OV
34
CF03
4
OH1
35
CF04
5
OL1
36
CF05
6
OL2
37
CF06
7
OH4
38
CF07
8
OH5
39
CF08
9
SC
40
CF09
10
Ground OC
41
CF10
11
Fuse broken
42
CF11
12
Input Phase Loss
43
CF12
13
Output Phase Loss
44
CF13
14
PG Overspeed
45
CF14
15
PG Open
46
CF15
16
PG Speed Deviation
47
CF16
No: Version: x01 Page: 8
A510 MODBUS Communication Protocol
17
External Fault 01
48
CF17
18
External Fault 02
49
FeedbackFeedback Fault Fault
19
External Fault 03
50
KeyKeypad Removedved
20
External Fault 04
51
OH
21
External Fault 05
52
OH3
22
External Fault 06
53
Modbus External Fault
23
External Fault 07
54
Braking Transistor Fault
24
External Fault 08
55
Braking Resistor Overheat
25
External Fault 09
56
CE
26
External Fault 10
57
27
External Fault 11
58
28
External Fault 12
59
29
Over Torque 1
60
30
Over Torque 2
61
Terminal S1
DI State
2522H
1
Terminal S2
2
Terminal S3
3
Terminal S4
4
Terminal S5
5
Terminal S6
6
Terminal S7
7
Terminal S8
8
Reserved
9
Reserved
A
Reserved
B
Reserved
C
Reserved
D
Reserved
E
Reserved
F
Reserved
2523H
Frequency command
2524H
Output frequency
2525H
Reserved
2526H
DC voltage command
A510 MODBUS Communication Protocol
2527H
Output current
2528H
warning
2529H
DO State
252AH
Reserved
252BH
Reserved
252CH
AI 1 Intput
252DH
AI 2 Intput
252EH
Software Version(預定新增)
252FH
A510/L510/E510 Check(預定新增)
Note : Do not write in data for the reserved register.