TECO 7300PA User Manual

7300PA Modbus
Application Manual
TECO Frequency Inverter
7300PA MODBUS Slave
Communication Interface
APPLICATION MANUAL
7300PA Modbus
Application Manual
Content
2. SPECIFICATION.................................................................................................................2
3. WIRING DIAGRAM.............................................................................................................3
4. INSTALLATION...................................................................................................................3
5. DESCRIPTION OF TERMINAL, LED, DIP SWITCH AND JUMPER..................................4
6. RELATED PARAMETERS FOR MODBUS COMMUNICATION.........................................5
7. CONNECTING INVERTER WITH HOST CONTROLLER...................................................6
8. PROTOCOL FORMAT ........................................................................................................7
9. MESSAGE FORMAT...........................................................................................................9
10. HOLDING REGISTER TAG LIST......................................................................................13
11. ERROR CODE..................................................................................................................24
12. EXAMPLE OF RS-485 COMMUNICA TION APPLICATION .............................................25
1/30
7300PA Modbus
Application Manual
1. Introduction This manual describes freature of PA-M communication card and the communication methods between TECO frequency inverter 7300PA and host controllers (PC, PLC…) using PA-M.
2. Specification
Part No. 4H300D2950006 Serial Interface RS-422/RS-485 Maximum Connection 32 MODBUS (RTU mode) salve standard Baud Rate 2400/4800/9600/19200 (BPS) Data Bit 8 Bit Parity No Parity/Odd Parity /Even Parity Stop Bit 1 Bit (Odd Parity, Even Parity)/2 Bit (No Parity)
Transmission
Distance (max.) 100m Mode Half-Duplex Connection Medium Shielded Twisted Pair Cable RTS Repeater TTL Level Photocoupler Isolation Common Mode Rejection VCM = 50V, dV/dt = 5000V/µsec Error Check Cyclic Redundancy Check (CRC) Access Data All Parameters of 7300PA Terminal Resistors Onboard Switch Setting
Product Feature
Communication Status 2 LED Indication Mechanical Size 64mm x 87mm
2/30
7300PA Modbus
Application Manual
3. Wiring Diagram (1) RS-485 interface (Set JP1 to "RS-485")
7300 PA
2CN
IM
(2) RS-422 interface (Set JP1 to "RS-422")
7300 PA
2CN
IM
PA-M
JP1
CN1
PA-M
JP1
CN1
RS-485
220
RS-422
220
220
SW1-1
SW1-1
SW1-2
1 (S+) 2 (S
­E
1(TX+)
2(TX
E
1(RX+)
2(RX
E
TB1
)
)
-
)
-
P
Twist Pair Cable
TB1
P
TB2
P
Twist Pair Cable
Host Link
Host Link
4. Installation (1) Turn off the inverter. (2) Insert attached 2 locking
supports into the 7300PA control board.
(3) Mount the PA-M commu-
nication interface to the control board, with the holes in the right side aligned to the locking supports, and the connector CN1 aligned to 2CN of control board.
CN1 in PA-M
2CN in control
board
Locking Support
3/30
7300PA Modbus
RS-48
Application Manual
5. Description of Terminal, LED, DIP Switch and Jumper
Receive
(1) Terminal
Terminal
TB1
TB2
CN1
5
LED2LED1
Send
TB1 TB2E12 E34
Function
RS-485 RS-422 1S+ TX+ 2S
-
TX
­E Shield Shield 3 ------------------- RX+ 4 ------------------- RX
-
E ------------------- Shield
JP1
RS-485 RS-422
RS-422
1234
S+ S---
TX+ TX-RX+ RX
SW1
-
(2) LED
LED Description
Receive Flash while data are being received from PLC.
Send Flash while data are being sent from PLC.
(3) DIP Switch (ON : enable terminal resistor, OFF : disable terminal resistor)
DIP
Switch
SW1-1
Control terminal resistor between S+
RS-485 RS-422
and S-.
SW1-2 ----------------------------------
Description
Control terminal resistor between
TX+ and TX -.
Control terminal resistor between
RX+ and RX-.
(4) Jumper
Jumper Description RS-422 RS-422 Communication Interface. RS-485 RS-485 Communication Interface.
4/30
7300PA Modbus
Application Manual
6. Related parameters for MODBUS communication (1) Node address (*1)
Sn-23 = 1~31 Inverter Node Address (Default = 1)
(2) Baud rate (*1)
Sn-24 = 00 = 01 = 10 = 11
(3) Parity Check (*1)
Sn-24 = --00 No Parity (Default = --00) =
(4) Stopping Method while RS485 Communication Fault/Alarm.
Sn-08 = 00
= 10 = 11
--
--
--
--
--
01 Even Parity
= --10 Odd Parity
--
=
11 Reserved
--
--
= 01
--
--
2400 BPS 4800 BPS 9600 BPS 19200 BPS (Default = 11--)
Decelerating to stop by Bn-02 (Default = 00--) Coasting to stop Decelerating to stop by Bn-04 Continuous operation
(Can be stopped by STOP Key if Sn-05 =
(5) Time-out Check
Cn-31 = 00.0 s Don’t care = 0.1 - 25.5 Checked Error (Default = 01.0 s)
(6) Source of Run/Stop command and Frequency reference
---
Sn-08 = = = = (Default =
*1 The change will be effective in the next start time after turning off the inverter.
0 Frequency reference is from RS-485.
---
1 Frequency reference is from Operator or Terminal.
--0-
--1-
Run/Stop command is from RS-485. Run/Stop command is from Operator or Terminal.
--
11)
---
0)
5/30
7300PA Modbus
Application Manual
7. Connecting inverter with host controller (1) Operation procedure
A. Turn on the inverter, set the related parameters and turn off the inverter. B. Turn on the inverter again. C. Connect inverter and host controller. D. Host controller sends communication message.
(2) Communication status indication of inverter
While Run/Stop command and/or Frequency reference is from RS-485 (Sn-08), and the inverter does not receive any message from host controller after power on 1 seconds, the inverter will display "Call" and flash. This message will disappear while inverter has received messages from host controller.
While Run/Stop command and/or Frequency reference is from RS-485 (Sn-08), the time-out detection is enabled (Cn-31 <> 0) and the inverter does not receive any message from host controller in time specified by Cn-31, the inverter will display "CPF21".
While Run/Stop command and/or Frequency reference is from RS-485 (Sn-08), the inverter receives any message with incorrect communication format. (Baud rate, parity, data bit and stop bit) the inverter will display "CPF22".
Bit 2, 3 of parameter Sn-08 will decide the display format and operation of “CPF21", “CPF22".
= 11
--
--
--
--
Decelerating to stop by Bn-02 (fault “CPF21”/“CPF22” light up) Coasting to stop (fault “CPF21”/“CPF22” light up) Decelerating to stop by Bn-04 (fault “CPF21”/“CPF22” light up) Continuous operation (alarm “CPF21"/"CPF22" flash)
Sn-08 = 00 = 01 = 10
6/30
7300PA Modbus
Application Manual
8. Protocol Format (1) A message of MODBUS RTU mode contains 4 parts: slave address, function code,
data and CRC-16 character. The interval between two messages needs 3.5 characters transferring time.
T1 T2 T3 T4
T1~T4 : 3.5 Characters transferring time at least
(2) Following is the data bit format for MODBUS RTU mode. (LSB will be sent first)
Even/Odd Parity Start 1 2 3 4 5 6 7 8 Parity Stop
No Parity Start 1 2 3 4 5 6 7 8 Stop Stop
(3) Slave Address
Parameter Sn-23 can set the node address of each inverter (1~31). Every slave stand can receive the message sent from host controller. Only the corresponding one returns the message to master. If the slave address of receiving message is 0, all slave stands will execute this
Slave
Address
LSB
Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 Bit9
Function
Code
Data
Character
CRC-16
Character
T1 T2 T3 T4
MSB Bit10
command and do not return the message to master. This message can only use for Register 0001H and 0002H.
(4) Function Code
Code Function Note
03H Read Data of Holding Register ------------------­06H Write Data to Single Register the Slave Address can be 0 08H Loop Test ------------------­10H Write Data to Holding Register the Slave Address can be 0
(5) Data Characters
Detail descriptions will be discussed in "Message Format" section (p.9-12) because it depends on the function code.
7/30
7300PA Modbus
Application Manual
(6) CRC-16 data
CRC-16 Generation Procedure. A. Load a 16-bit register with FFFFH. Call this the CRC register.
B. Exclusive OR the first 8-bit byte of the message with the low order byte of the 16-bit
CRC registers, putting the result in the CRC register.
C. Shift the CRC register one bit to the right (toward the LSB), zero filling the MSB.
Extract and examine the LSB.
D.If LSB is 0, repeat procedure C (another shift).
If LSB is 1, Exclusive OR the CRC register with the polynomial value A001H.
E. Repeat procedure C, D until eight shifts has been performed.
While this is done, a complete byte will have been processed.
F. Repeat procedure B-E to the following byte of the message until all bytes of the
message is processed. Now, the value of CRC register is the CRC-16 data.
G. When the CRC is placed into the message, it upper and lower bytes must be
swapped.
(7) Inverter return messages
A. Please refer to the “Message Format” in next page about inverter returning
messages for more detail descriptions.
B. It needs 5ms to return messages after inverter had received normal message from
host controller.
C. In next two cases, inverter does not return any message :
(a) There is any error detected in received data message (parity error, framing error,
overrun error or CRC-16 error).
(b) Slave Address character is different to parameter Sn-36 (Inverter Slave No.).
8/30
7300PA Modbus
Application Manual
9. Message Format 7300PA supports 4 MODBUS Function codes only.
Table 1 Message Length
Host Query Inverter Return
Function
Code
Function
Byte
(Min.)
Byte
(Max.)
Byte
(Min.)
Byte
(Max.) Data Read 03H Read Data from Holding Register 8 8 7 37 Data Write 06H Write Data to Single Holding Register 8 8 8 8
Loop Test 08H Loop Test 8 8 8 8
Data Write 10H Write Data to Holding Register 11 41 8 8
(1) Read Command : Read data of Holding Register
Host Query
Slave Address 01H Function Code 03H
Head Address
(*1)
Access Count
(*2)
CRC-16
High Byte 00H
Low Byte 01H
High Byte 00H
Low Byte 01H Low Byte D5H
Inverter Return (Normal)
Slave Address 01H
Function Code 03H
Data Byte Count 02H
Data Value
High Byte 00H
Low Byte 00H
CRC-16
Low Byte B8H
High Byte 44H
High Byte CAH
Inverter Return (Error Detected)
Slave Address 01H
80H + Function Code 83H
Error Code (*3) 03H
CRC-16
Low Byte 01H
High Byte 31H
*1 Refer to p.13-23 to see the holding register tag list. *2 Host controller can read 16 registers at most in each transferring message. *3 Refer to p.24 to see the error code.
9/30
Loading...
+ 21 hidden pages