0% found this document useful (0 votes)
128 views4 pages

Sample Program: XGB-INV IG5A (RS-485 Modbus RTU)

The document describes a sample program for communication between an XGB PLC and an IG5A inverter using RS-485 Modbus RTU communication. Key details include: - The XGB PLC communicates with IG5A inverter station 1 via its built-in RS-485 port using Modbus RTU protocol at 19200 baud. - The XEC program transmits data from registers %MW0-1 to addresses 5-6 of the inverter to control frequency and run command. It receives data to registers %MW10-12 from the inverter. - The IG5A is configured for RS-485, Modbus RTU communication as station 1 at 19200
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views4 pages

Sample Program: XGB-INV IG5A (RS-485 Modbus RTU)

The document describes a sample program for communication between an XGB PLC and an IG5A inverter using RS-485 Modbus RTU communication. Key details include: - The XGB PLC communicates with IG5A inverter station 1 via its built-in RS-485 port using Modbus RTU protocol at 19200 baud. - The XEC program transmits data from registers %MW0-1 to addresses 5-6 of the inverter to control frequency and run command. It receives data to registers %MW10-12 from the inverter. - The IG5A is configured for RS-485, Modbus RTU communication as station 1 at 19200
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

XGB-INV IG5A (RS-485 Modbus RTU) Sample program

Configuration

XEC PLC

RS-485 (Modbus communication)


Baud rate: 19,200, 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 (Max. total distance should be within 500m)


+ S+ S+

- S- S-

XGB iG5A iG5A


RS-485 Built-in Cnet Station no. : 1 Station no. : 2
Station no. : 0

1/4
XGB-INV IG5A (RS-485 Modbus RTU) Sample program
The communication between IG5A and built-in XGB Cnet through ch2 (RS-485).
XEC Sample Program for only slave station no. 1

Reception
( %MW10
3 words )

Transmission
( %MW0, %MW1
2 words )

IG5A Setting
DRV=3(RS-485), FRQ=7(RS-485), I59=0(Modbus RTU),
I60=1(station no.), I61=4(19,200bps), I65=0(Parity:None, Stop Bit:1)
Eg) XEC (%MW0 1 Word data) -> address no. 5 of iG5A inverter (Frequency reference )
XEC (%MW1 1 Word data) -> address no. 6 of iG5A inverter (Run command )

2/4
XGB-INV IG5A (RS-485 Modbus RTU) Sample program
XG-PD Parameter setting
① Please set “Channel 2 of Active mode” to “Use P2P settings” in using XG-PD of XG5000.

② You have to set P2P Channel to “Modbus RTU client.

③ P2P Block setting for only slave station no. 1

3/4
XGB-INV IG5A (RS-485 Modbus RTU) Sample program

XG-PD download/Link enable

After link enable,


select [Online]—[Reset].

4/4

You might also like