How to work with my plc?

More
02 Jun 2017 13:40 #94008 by zhcong
How to work with my plc? was created by zhcong
hi, I have a siemens S7-300 plc. I want use linuxcnc to control this plc and plc control servo motor. servo motor simulation by matlab. It commnuicate use opc protocol.
And it is important that linuxcnc change the storage of the plc, how it works?

Please Log in or Create an account to join the conversation.

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Jun 2017 22:17 #94024 by andypugh
Replied by andypugh on topic How to work with my plc?
I am not sure what part you expect LinuxCNC to play in this system.

What do you want LinuxCNC to send to the PLC? Where does Matlab fit in?

Please Log in or Create an account to join the conversation.

More
03 Jun 2017 01:12 #94026 by zhcong
Replied by zhcong on topic How to work with my plc?
thanks for reply.
This is a simulation environment, I use matlab simulate the servo motor. I want linuxcnc send control signal to plc, and plc control servo motor. I don't know what send to plc, maybe like X-axis pulse signal. I dont need to achieve all, it's only a cnc lab environment.

Please Log in or Create an account to join the conversation.

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
03 Jun 2017 19:54 #94038 by andypugh
Replied by andypugh on topic How to work with my plc?
I would be surprised if Matlab is fast enough-responding and real-time enough to do the job.
(Simulink compiled for realtime hardware will certainly work for this sort of thing)

I think you would end up using LinuxCNC, then Modbus2HAL to link to the PCL, then to Matlab.

But I have this feeling that this is an over-complex and not super-useful configuration.
The following user(s) said Thank You: zhcong

Please Log in or Create an account to join the conversation.

More
04 Jun 2017 01:49 #94042 by zhcong
Replied by zhcong on topic How to work with my plc?
Thanks!!
I will try it. This a cnc lab environment, so I don't need real "real-time".
And Thanks again。

Please Log in or Create an account to join the conversation.

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
04 Jun 2017 08:48 #94045 by andypugh
Replied by andypugh on topic How to work with my plc?

I will try it. This a cnc lab environment, so I don't need real "real-time".


In that case you probably don't need LinuxCNC.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.058 seconds
Powered by Kunena Forum