Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 05:27 AM
Hi,
I have a project where I have new PLC M241 and an old Magelis XBTGT HMI (XBTGT 5330). The plan is to connect these two with modbusTCP but I have some difficulties to get this to work. I think mostly because the HMI model is deprecated. But for now, I need to work with what I have.
In Vijeo I have selected the modbusTCP driver and I have set my variables as external.
In Machine Expert I have the Generic Modbus TCP slave.
And as you can see, I have an alarm. Which is not so helpful 😕
The Industrial Ethernet Manager is happy though
Does anyone have an idea on where I have messed up? Or where I should continue with my trouble shooting?
Thanks!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 06:33 AM
If you are using the Modbus Driver you define addresses in VJD, ie 40001 is %MW0 in PLC depending on your settings on the Driver
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 06:42 AM
Hi @Olofsson ,
Please take a look into this video to connect teh PLC with an HMI in Vijeo Designer using the Machine Expert protocol:
ANother solution using the MOdbusTcp driver in HMI take a look into the next application:
https://schneider-electric.box.com/s/cap8l6or3w901frwg3czaau42t1etgja
More information about the address in the PLC:
Good luck!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 06:02 AM
Hi
You don't need to set in a Modbus Slave in the M241. The PLC should act as a Modbus Server and you have to activate the protocol under the Ethernet interface in Machine Expert
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 06:22 AM
That takes care of my alarm alright 🙂
But then what? How do I find the addresses to the variables in the HMI?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 06:33 AM
If you are using the Modbus Driver you define addresses in VJD, ie 40001 is %MW0 in PLC depending on your settings on the Driver
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-05 06:42 AM
Hi @Olofsson ,
Please take a look into this video to connect teh PLC with an HMI in Vijeo Designer using the Machine Expert protocol:
ANother solution using the MOdbusTcp driver in HMI take a look into the next application:
https://schneider-electric.box.com/s/cap8l6or3w901frwg3czaau42t1etgja
More information about the address in the PLC:
Good luck!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-10-06 12:40 AM
So simple...
I got it to work with a slave but then I had to declare the inputs and outputs. This is far better!
Big thanks !
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.