Вы находитесь на странице: 1из 27

ebsite: www.hantech.

vn

Communication
for XGB and Drive (iG5A)
- Modbus RTU protocol

HANTECH Automation

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Application Soluti
Communication with VFD (Variable Frequency Drive)

iguration

Configuration

e Setup

000

nosis

RS-485 (Modbus communication)


Baud rate: 9600, Data bit: 8, Stop bit: 1, Parity bit: None
Note that baud rate and stop/parity bit are selectable in I/O group.
* I/O group: I61 baud rate, I65: parity/stop bit setting.

Wiring Diagram
+

S+

S+

S-

S-

XGB
RS-485
Built-in Cnet
Website: www.hantech.vn

iG5A
Station: 1

Email: dinhhai@hantech.vn

iG5A
Station: 2

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
Drive parameter setting

e Setup

000

nosis

Set up each drive communication-concerning parameter as follows.


For iG5A (station: 1)
* DRV-03 [Drive mode]: 3 [RS-485] * DRV04 [Freq. mode]: 7 [RS-485]
* I/O 59 [Communication protocol]: 0 [Modbus RTU]
* I/O 60 [VFD station number]: 1
* I/O 61 [communication speed]: 3 (9600bps)
For iG5A (station: 2)
* DRV-03 [Drive mode]: 3 [RS-485]
* DRV-04 [Freq. mode]: 7 [RS-485]
* I/O 59 [communication protocol]: 0 [Modbus RTU]
* I/O 60 [VFD station number]: 2
* I/O 61 [communication speed]: 3 (9600bps)

XGB Parameter setting: XG-PD


For XGB communication parameter setting, XG-PD (Network Manager) is used.
After running XG-PD, select [Online][Connect].
When connected, select [Online][Read IO Information].

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XGB parameter setting: XG-PD

e Setup

D
B Setup

000

nosis
Double
click

Website: www.hantech.vn

After setting is
done, click [P2P].

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XGB parameter setting: XG-PD

e Setup

000

nosis
Double
click

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
P2P parameter setting: iG5A (station 1) Write request

e Setup

000

nosis

Website: www.hantech.vn

Double
click

Slave
address

Clic

Conditional flag: M0000


This request frame is sent from X
at M0 bit rising edge.
Data type/Data size
This request frame is to write 4 w
data to iG5A.

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
P2P parameter setting: iG5A (station 1) Write request

e Setup

000

nosis

Modbus corresponding addresses of iG5A are acquired by the following formula.


[Modbus address] = [iG5A address] - 1
Modbus word output area is from 0x40000. Therefore, [0x0005] is to be [0x40004].
Here D0000 is assigned to 0x40004, which means D0 data value is sent to ref. Freq. area.
In the previous slide, 4 words are to be sent. Therefore,
D0 for Reference Frequency
D1 for Run command (D1.0 bit is on iG5A stop; D1.1 bit is on iG5A forward run, etc).
D2 for ACC time
D3 for DEC time

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Application Soluti
Communication with VFD (Variable Frequency Drive)

iguration

P2P parameter setting: iG5A (station 1) Read request

e Setup

D
Slave
address

000

nosis

Conditional flag: M0001


This request frame is sent from XGB at M1 bit rising edge.
Data type/Data size
This request frame is to read 8 word data from iG5A.
Note that data size should be less than or equal to 8. If not, iG5A does not respond
properly.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Clic

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
P2P parameter setting: iG5A (station 1) Read request

e Setup

000

nosis

Modbus word input area is from 0x30000. Therefore, [0x0007] to be [0x30006].


Here D0020 is assigned to 0x30006, which means ACC time is sent to D20.
In the previous slide, 8 words to be sent from drive to XGB. Therefore,
D20 for ACC time; D21 for DEC time, D22 for Output Current; D23 for Reference Frequency;
D24 for Output voltage; D25 for DC Link voltage; D26 for Output power;
D27 for drive status (D27.0 bit is on iG5A stop; D27.1 bit is on iG5A forward run, etc).

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Application Soluti
Communication with VFD (Variable Frequency Drive)

iguration

P2P parameter setting: iG5A (station 2) Write request

e Setup

D
Slave
address

000

nosis

Conditional flag: M0002


This request frame is sent from XGB during M2 bit rising edge.
v Data type/Data size
This request frame is to write 4 word data to iG5A.
v Data assignment method: the same as iG5A (station 1)
D100 for Reference Frequency
D101 for Run command (D1.0 bit is on iG5A stop; D1.1 bit is on iG5A forward run, etc
D102 for ACC time D103
for DEC time

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Application Soluti
Communication with VFD (Variable Frequency Drive)

iguration

P2P parameter setting: iG5A (station 2) Read request

e Setup

D
Slave
address

000

nosis

Conditional flag: M0003


This request frame is sent from XGB during M3 bit rising edge.
v Data type/Data size
This request frame is to read 8 word data from drive to XGB.
v Data assignment method: the same as iG5A (station 1)
D120 for ACC time; D121 for DEC time, D122 for Output Current; D123 for Reference Freque
D124 for Output voltage; D125 for DC Link voltage; D126 for Output power;
D27 for drive status (D27.0 bit is on iG5A stop; D27.1 bit is on iG5A forward run, etc).

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XG-PD download/Link enable

e Setup

D
wn & Link

000

nosis

Website: www.hantech.vn

After link enable,


select [Online][Rese

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

e Setup

Application Soluti
Communication with VFD (Variable Frequency Drive)
XG5000 Programming: Part I
For programming, please refer to XG5000 program after opening it.

000
gramming

nosis

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XG5000 Programming: Part II

e Setup

000
gramming

nosis

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XG5000 Programming: Part III

e Setup

000
gramming

nosis

[View][Devices/Variables] or other item to see its variable or comment.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XG5000 Programming: Part IV

e Setup

000
gramming

nosis

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
XG5000 Programming: Part V

e Setup

000
gramming

nosis

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
iG5A (#1) Control: Set Ref. Freq. and make it run forward

e Setup

000
nitoring

nosis

Reference frequency is set as 12.34Hz.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
iG5A (#1) Control: Set ACC/DEC time of station 1

e Setup

000
nitoring

nosis

iG5A reference frequency is set as 12.34Hz. Its status is FWD Run. ACC and DEC time is
set as 1.0 and 2.0 sec, respectively. Now let's monitor iG5A.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
iG5A (#1) Monitoring: operation information

e Setup

000
nitoring

nosis

iG5A is running as we set in the previous slide.


D27.1 bit means its operation status is FWD Run.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)

iG5A (#2) Control: Ref. Freq., Operation command and ACC/DEC time

e Setup

000
nitoring

nosis

Station 2 reference frequency: 43.21Hz


Station 2 operation command: Reverse running
Station 2 ACC time: 3.0 sec Station
2 DEC time: 4.0 sec

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
iG5A (#2) Monitoring: operation information

e Setup

000
nitoring

nosis

iG5A is running as we set in the previous slide.


D27.1 bit means its operation status is REV Run.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
iG5A (#1 & #2) Communication Status

e Setup

000
nitoring

nosis

Click [Variable Monitoring] icon:


Now there is no error in either station 1 or 2.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

Application Soluti
Communication with VFD (Variable Frequency Drive)
iG5A (#1 & #2) Communication Status

e Setup

000
nitoring

nosis

When station 1 is turned off or disconnected from network, its error flags are increased.
After the problem is recovered, error-concerned flags are not increased but hold their
values. Note that L relay is latched.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

e Setup

Application Soluti
Communication with VFD (Variable Frequency Drive)
System diagnosis: XG-PD
In XG-PD, select [Online][System Diagnosis] where you are able to see comm. Status.

000
Right-mouse
click

nosis

Website: www.hantech.vn

Select [Channel 2] and click [Start] then


you will see its communication frame.
Even though XGB has no RTC, but it sh
time stamp when the transmission/rece
frame pass through the comm. port.
This is important because in 1:N comm
RS-485 (half-duplex) system, transmiss
and reception frame should be interloc
And a user could know the best possib
conditional flag to send each frame by
time stamp.

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Application Soluti
Communication with VFD (Variable Frequency Drive)

iguration

System diagnosis: XG-PD

e Setup
1

D
3

000
4

nosis

(1) If there is 'unknown' in Result, the frame is wrong.


(2) It shows when each frame passes through the communication port.
(3) When the transmission frame is sent to iG5A (station 1) at 0:00:02:770 (2.770sec after
monitoring start), the reception frame is delivered to XGB from station 1 after 0.03sec late
(4) It shows one cycle in this system composed of 8 frames.
Write request to #1 (M0 bit ) Write response from #1 Read request to #1 (M1 bit )
Read response from #1 Write request to #2 (M2 bit ) Write response from #2
Read request to #2 (M3 bit ) Read response from #2
Note that every transmission frame is sent with 200ms period.

Website: www.hantech.vn

Email: dinhhai@hantech.vn

Tel: 093.5858.658

iguration

e Setup

Application Soluti
Communication with VFD (Variable Frequency Drive)
System diagnosis: XG-PD
In XG-PD, select [Online][System Diagnosis] where you are able to see comm. Status.

000
Right-mouse
click

nosis

Website: www.hantech.vn

Select [P2P Service] and click [Multiple


Reading] then you will see comm. status

Whenever an communication error occu


its error count will increase.

Email: dinhhai@hantech.vn

Tel: 093.5858.658

Вам также может понравиться