You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old May 4th, 2021, 03:52 AM   #1
ayesh
Member
Sri Lanka

ayesh is offline
 
Join Date: May 2021
Location: sri lanka
Posts: 2
PLC MODBUS communication

hi, so anyone know how to connect a haiwell HMI with XINJE PLC by using MODBUS communication protocol? please help me ASAP. thank you
  Reply With Quote
Old May 4th, 2021, 04:49 AM   #2
BobB
Lifetime Supporting Member
Australia

BobB is offline
 
BobB's Avatar
 
Join Date: Jun 2002
Location: Sydney
Posts: 4,428
You will be hard pressed to find anyone using either of those I am afraid. Good luck.
__________________
The Old Pfhaart

  Reply With Quote
Old May 4th, 2021, 05:12 AM   #3
ayesh
Member
Sri Lanka

ayesh is offline
 
Join Date: May 2021
Location: sri lanka
Posts: 2
reply to BOB

hi BOB, thank you for the reply, have you ever worked with two different kinds of HMI and PLC where serial communication doesn't support.
  Reply With Quote
Old May 4th, 2021, 08:08 AM   #4
Corsair
Member
United States

Corsair is offline
 
Join Date: Dec 2020
Location: Missouri
Posts: 55
Modbus Generalities

This is a general comment that is not specific to your situation.

A common mistake for someone implementing Modbus is not having some understanding of Modbus FIRST. This may mean studying the Modbus spec. Us older types have a printed 'Modicon Modbus Protocol Reference Guide' PI-MBUS-300 Rev J (1996). I'm sure the Modbus association people have an online equivalent. You need to have an understanding of the different function codes. There's about 24 of them - you can completely ignore the majority. Most work can be done with just 3 and 16. The next ones to understand are 1 and 15. 2, 4, 5, and 6 are the last place that most people need to go.

The PLC class outline at CorsairHMI.com has some Modbus material including some discussion of the 1-register address offset issue that seems to plague most first-time Modbus users. It also has some discussion of the double-integer and floating point considerations. There seems to be a lot of other (and better) available guides to the topic. Chipkin Automation Systems 'Modbus for Field Technicians' by Peter Chipkin is a good resource and much better than anything that I have written.

I'm sure that there are plenty of people that love or hate Modbus with valid reasons but it's not going away any time soon. It may outline us all.
  Reply With Quote
Old May 4th, 2021, 08:13 AM   #5
Corsair
Member
United States

Corsair is offline
 
Join Date: Dec 2020
Location: Missouri
Posts: 55
'Outlive' us all
  Reply With Quote
Old May 4th, 2021, 12:16 PM   #6
danw
Member
United States

danw is offline
 
danw's Avatar
 
Join Date: Oct 2004
Location: midwest, USA
Posts: 3,179
As a basic consideration, the HMI is usually a Modbus master/client, for the sole reason that Modbus is a master/slave protocol and slaves are silent unless spoken to. If the state of a selector switch is changed on the HMI, it's up to the HMI, as a Modbus master, to write that change to the PLC.



If the PLC were the master it would have to continuously poll/read dozens/hundreds of status words looking for a state change on the HMI.
  Reply With Quote
Old May 4th, 2021, 02:04 PM   #7
lfe
Member
France

lfe is offline
 
Join Date: Jun 2007
Location: Barcelona
Posts: 624
Basically

- You will have, in the PLC manuals, to learn how to configure Modbus and see which Modbus addresses correspond to the bits and registers that you want to manage on the HMI.

- You will have to make the physical connection between PLC and HMI. If it is Modbus RTU you will need to consult the manual of both and obtain or manufacture the appropriate serial cable. If it is Modbus TCP, both devices must be connected via ethernet on the same subnet and you must assign IP addresses.

- You will have to configure the HMI to connect as a master to the PLC and create the screens to display or modify the bits and registers Modbus addresses of the first point.
__________________
Suppanel HMI
  Reply With Quote
Old May 4th, 2021, 02:11 PM   #8
the_msp
Lifetime Supporting Member
United Kingdom

the_msp is offline
 
the_msp's Avatar
 
Join Date: May 2008
Location: Northern Ireland
Posts: 980
I have used Xinje PLCs but only with Xinje HMIs. The HMIs are pretty cheap and the software is free, it would be the easiest way forward.
__________________
Regards,

Patrick G. B.Eng MIET

Making the flashy lights flash since the 90's

SCADA - Inductive Automation Gold Integrator | PLC | Control Panels | Robotics | Training

Connect with Matrix Engineering
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Siemens PLC Modbus Communication with Com Module CM PtP kevinlin_5 LIVE PLC Questions And Answers 0 August 16th, 2018 10:31 PM
Ge fanuc plc communication unus LIVE PLC Questions And Answers 20 February 19th, 2017 07:19 AM
ABB drive control via modbus communication with FXCPU plc prakashchy85 LIVE PLC Questions And Answers 3 April 5th, 2015 11:06 PM
ABB PLC communication thru Modbus jdmotoomull LIVE PLC Questions And Answers 4 November 21st, 2014 07:33 AM
AB CompactLogix PLC and Modbus Communication Hani ahmed LIVE PLC Questions And Answers 3 September 26th, 2010 08:14 AM


All times are GMT -4. The time now is 10:07 AM.


.