Sei sulla pagina 1di 7

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

plc.myforum.ro
PLCs users www.plc.myforum.ro!
FAQ
Profile

Search

Memberlist

Usergroups

Log in to check your private messages

Register
Log in

Modbus communication with M238 and Magelis


plc.myforum.ro Forum Index -> Schneider Electric
View previous topic :: View next topic
Author
Martin_2287
Junior

Message
Posted: 17/04/2014 19:19

Post subject: Modbus communication with M238 and Magelis

I have a M238 PLC and Magelis HMIS5T connected by the RS-485 port and SoMachine protocol.
I can visualize the PLC variables by Magelis Ethernet port and Modbus TCP protocol from a SCADA?
Joined: 14 Apr 2014
Posts: 3

I have SoMachine 3.1.10.1 and Vijeo Designer V6.1.0.393.


thanks
regards

Back to top
kaka
Junior 2

Posted: 17/04/2014 22:01

Post subject: Re: Modbus communication with M238 and Magelis

Martin_2287 wrote:
Joined: 16 Mar 2014
Posts: 46

I have a M238 PLC and Magelis HMIS5T connected by the RS-485 port and SoMachine protocol.
I can visualize the PLC variables by Magelis Ethernet port and Modbus TCP protocol from a SCADA?
I have SoMachine 3.1.10.1 and Vijeo Designer V6.1.0.393.
thanks
regards

Can Vijeo Citect communicate to a XBTGC CoDeSys application?


Goals and Symptoms
This resolution is an example for setting up the communication between Vijeo Citect and a XBTGC CoDeSys application. It provides a detail overview of the configuration for Vijeo Citect and SoMachine.
Causes and Fixes
SoMachine is a software package which includes Vijeo Designer and CoDeSys. It is used to develop applications for the XBTGC (PLC and HMI Combo) or the M238 (PLC only)
The XBTGC2230T has an ethernet port reserved for the HMI Vijeo Designer. In this example will provide an example for Vijeo Citect to communicate to the CoDeSys PLC via this ethernet port.
1) From CoDeSys, create a new Function Block Diagram (FBD) POU.

2) From CoDeSys, use a ADD Function block to add input1 and input2. The result will be stored in input3

1 de 7

12-02-2015 09:28

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

3) From CoDeSys. publish the variables to Vijeo Designer

4) Open up the Vijeo Designer editor from SoMachine and link the variables from the CoDeSys application

2 de 7

12-02-2015 09:28

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

5) From Vijeo Designer, add the variables to the scangroup

6) From Vijeo Designer, check to see the variables were added successfully.

3 de 7

12-02-2015 09:28

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

7) From Vijeo Designer, create a Modbus TCP/IP slave driver which will be used to communicate to Vijeo Citect. Vijeo Citect (Master) will be resquesting the data from the XBTGC (Slave).

8) From Vijeo Designer create 3 new integer variables (INT datatype) and set the Scan Group to the Modbus TCPIP slave driver (ModbusSlaveTCPIP01)

4 de 7

12-02-2015 09:28

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

9) From Vijeo Designer we need to copy the data from SOM_XBTGC2230 Scan Group (CoDeSys) to ModbusSlaveTCPIP01 Scan Group.(Vijeo Citect). We will also use a Conditional Script Event.
Anytime "Application_POU_inputx" variable changes value (On Data Change), INT0x (Vijeo Citect) will be updated.

10) From Vijeo Designer, configure an IP address for the XBTGC.

5 de 7

12-02-2015 09:28

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

11) Vijeo Citect Communication setup

12

6 de 7

12-02-2015 09:28

plc.myforum.ro :: View topic - Modbus communica...

http://plc.myforum.ro/modbus-communication-wi...

Back to top
Martin_2287
Junior

Posted: 23/04/2014 15:35

Post subject:

Thank you very much! It worked great!


Joined: 14 Apr 2014
Posts: 3

regards

Back to top
Martin_2287
Junior

Posted: 23/04/2014 20:47

Post subject:

Is can be added an Ethernet port to the M238 to communicate a SCADA via Modbus TCP / IP protocol?
Joined: 14 Apr 2014
Posts: 3

Back to top
AdBot
Robotelul cu reclame

Posted: 12/02/2015 13:25

Post subject: AdBot

Ce este AdBot ?
Click aici

Back to top
Display posts from previous: All Posts

Oldest First

Go
All times are GMT + 2 Hours

plc.myforum.ro Forum Index -> Schneider Electric


Page 1 of 1
Jump to: Schneider Electric

Go
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB 2001, 2005 phpBB Group


Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro

7 de 7

12-02-2015 09:28

Potrebbero piacerti anche