Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

Why one modbus device (PLC) has two address (Slave)

Solved!
Go to solution

Hello, I'm new modbus. I try to study modbus application in LabVIEW by one example (Other person developed but now I can not contact to ask these question). The example code as bellow:

Modbus code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The device I want to communicate is PLC (TSXP57 103 Schneider) through PCMCIA 114 card and one converter from 485 to RS232.

I don't understand why in this code has two Acquision modbus.VI with two different Slave addresss (1 and 2 as above code). What is slave address I need to configure for my PLC (1 or 2)? Because I see only one PLC in this system.

The block diagram of Acquisition as bellow

Modbus 2.jpg

As above blok diagram, I understand that LabVIEW will read input register from start address 500 with 45 register. This my understand is correct? If yes, PLC program need to store it's data at address %MW500 or %MW30500 (Because the register address of  "Read Input Registers" command from 30001-39999 as my understand)

Please tell me what is wrong in my understading!

Thank you

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What is INO Measure?
Please find the answer at www.ino.com.vn site!
Download All
0 Kudos
Message 1 of 3
(7,427 Views)
Solution
Accepted by topic author ino_measure

Greetings ino measure.

 

If I understand your application correctly, I believe you should be setting the slave address to 1.  If you would like to learn more about this modbus implementation in LabVIEW, I highly recommend visiting the link below as that article covers the use of this particular library.  Hope this helps!

 

Introduction to MODBUS

 

Regards,

 

Michael G

Michael G.
Applications Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Self-realization: I was thinking of the immortal words of Socrates, who said, "... I drank what?"
0 Kudos
Message 2 of 3
(7,405 Views)

Hi Michael G,

 

Thank for your reply. My problem come from a misunderstand. The diagram code I posted was written for system with two PLCs. They modified hardware system but not yet finish modified software. After study and test on the hardware, I already solved the trouble. You are right, I should set up the address to 1 and delete one of them (Only one PLC on new system).

Thank for your help.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What is INO Measure?
Please find the answer at www.ino.com.vn site!
0 Kudos
Message 3 of 3
(7,400 Views)