12.EXAMPLE OF RS-485 COMMUNICA TION APPLICATION .............................................25
1/30
7300PAModbus
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 InterfaceRS-422/RS-485
Maximum Connection32 MODBUS (RTU mode) salve standard
Baud Rate2400/4800/9600/19200 (BPS)
Data Bit8 Bit
ParityNo Parity/Odd Parity /Even Parity
Stop Bit1 Bit (Odd Parity, Even Parity)/2 Bit (No Parity)
Communication Status2 LED Indication
Mechanical Size64mm x 87mm
2/30
7300PAModbus
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
7300PAModbus
RS-48
Application Manual
5. Description of Terminal, LED, DIP Switch and Jumper
(6) Source of Run/Stop command and Frequency reference
---
Sn-08=
=
=
=
(Default =
*1The change will be effective in the next start time after turning off the inverter.
0Frequency reference is from RS-485.
---
1Frequency 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
7300PAModbus
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
7300PAModbus
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 Start12345678Parity Stop
No Parity Start12345678Stop 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 Bit8Bit9
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
CodeFunctionNote
03HRead Data of Holding Register------------------06HWrite Data to Single Registerthe Slave Address can be 0
08HLoop Test------------------10HWrite Data to Holding Registerthe 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
7300PAModbus
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
7300PAModbus
Application Manual
9.Message Format
7300PA supports 4 MODBUS Function codes only.
Table 1 Message Length
Host QueryInverter Return
Function
Code
Function
Byte
(Min.)
Byte
(Max.)
Byte
(Min.)
Byte
(Max.)
Data Read03HRead Data from Holding Register88737
Data Write06HWrite Data to Single Holding Register8888
Loop Test08HLoop Test8888
Data Write10HWrite Data to Holding Register114188
(1) Read Command : Read data of Holding Register
Host Query
Slave Address01H
Function Code03H
Head Address
(*1)
Access Count
(*2)
CRC-16
High Byte00H
Low Byte01H
High Byte00H
Low Byte01H
Low ByteD5H
Inverter Return (Normal)
Slave Address01H
Function Code03H
Data Byte Count02H
Data Value
High Byte00H
Low Byte00H
CRC-16
Low ByteB8H
High Byte44H
High ByteCAH
Inverter Return (Error Detected)
Slave Address01H
80H + Function Code83H
Error Code (*3)03H
CRC-16
Low Byte01H
High Byte31H
*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
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.