Mindstorms controlled by industrial PLC?
Started by
Superkalle
, Jul 04 2010 10:23 PM
11 replies to this topic
#1
Posted 04 July 2010 - 10:23 PM
Hi
A friend at work has this idea to use Mindstorms/LEGO to visualize MES (Manufacturing Execusion Systems). So I was wondering if anyone here knows cases where Mindstorms units have ever been controlled by an industrial PLC, like Siemens Simatic/S7 or similar. Or does anyone have some good examples of LEGO/Mindstorms used to illustrate industrial MES-concepts.
A friend at work has this idea to use Mindstorms/LEGO to visualize MES (Manufacturing Execusion Systems). So I was wondering if anyone here knows cases where Mindstorms units have ever been controlled by an industrial PLC, like Siemens Simatic/S7 or similar. Or does anyone have some good examples of LEGO/Mindstorms used to illustrate industrial MES-concepts.
#2
Posted 05 July 2010 - 03:11 AM
National Instruments' LabVIEW software is used in both Lego Mindstorms and industrial Programmable Logic Controllers (PLCs): http://www.ni.com/labview/ . In the "Search" box, I typed in "PLC" and "Mindstorms" and got a whole bunch of "hits." Here's a video of a German instructor who, with his students, made a Lego Aircraft Factory that could assemble a Lego airplane using 25 Mindstorms controllers: http://decibel.ni.co...ircraft-factory .
#3
Posted 05 July 2010 - 03:09 PM
Thanks dluders. Have you had any own experience in this field, or did you google it?
#5
Posted 05 July 2010 - 03:33 PM
Well, googled I have, thus this topic
So, the question is still open
So, the question is still open
#6
Posted 05 July 2010 - 04:37 PM
From an article posted two weeks ago on http://www.controlgl...s/2010/126.html :
"Connect to Any PLC using NI LabVIEW
ControlGlobal.com
06/17/2010
By National Instruments
Add advanced analysis and control functionality—available through National Instruments' LabVIEW software and programmable automation controllers—to any PLC using the new NI OPC servers. View this webcast to learn how to create tags in OPC servers and utilize OPC client connectivity to communicate between NI LabVIEW and PLCs."
Lego Mindstorms NXT uses LabVIEW, PLCs can use LabVIEW, hence NXT can be programmed like PLCs.
"Connect to Any PLC using NI LabVIEW
ControlGlobal.com
06/17/2010
By National Instruments
Add advanced analysis and control functionality—available through National Instruments' LabVIEW software and programmable automation controllers—to any PLC using the new NI OPC servers. View this webcast to learn how to create tags in OPC servers and utilize OPC client connectivity to communicate between NI LabVIEW and PLCs."
Lego Mindstorms NXT uses LabVIEW, PLCs can use LabVIEW, hence NXT can be programmed like PLCs.
#7
Posted 05 July 2010 - 05:42 PM
dluders, on 05 July 2010 - 04:37 PM, said:
From an article posted two weeks ago on http://www.controlgl...s/2010/126.html :
Lego Mindstorms NXT uses LabVIEW, PLCs can use LabVIEW, hence NXT can be programmed like PLCs.
Lego Mindstorms NXT uses LabVIEW, PLCs can use LabVIEW, hence NXT can be programmed like PLCs.
Like I said. I have done all the googling needed and I have seen that article before. Mayve I was unclear in my first post, but my quesiton was here if anyone has practical experience or personal knowledge, or knew if any company or university had actually done anything in this area. Thanks anyway dluders!
#8
Posted 05 July 2010 - 06:33 PM
Practical experience in Labview = Yes
Practical experience in connecting NXT to PLC = No (sorry).
I would look at the website for the Control Laboratory (RWTH) at the University of Aachen - they developed the Matlab NXT toolboxes - and may know others working in this area.
http://www.mindstorms.rwth-aachen.de/
Option 1: if you want direct integration then you are perhaps thinking of running a converter cable into the inputs / outputs. Since these run on the I2C format it might be possible to find a converter to the PLC... (A quick google search was not looking positive).
Option 2: Control the NXT via the serial interface (USB cable/ bluetooth). I have used the Matlab toolbox from RWTH which communicates with a small firmware module downloaded to the NXT memory. This interface is a simple serial protocol - and with a small embedded PLC it should be possible to send and receive sensor port data in semi-realtime. It is not perfect; (i.e. uses a polling loop to monitor motor positions, so has overshoot) but could provide a quick and dirty hack. There might be other alternative firmware - but this was the most practical / open one (http://en.wikipedia....dstorms_NXT_2.0)
Feel free to send me a PM if I can be of more help.
Practical experience in connecting NXT to PLC = No (sorry).
I would look at the website for the Control Laboratory (RWTH) at the University of Aachen - they developed the Matlab NXT toolboxes - and may know others working in this area.
http://www.mindstorms.rwth-aachen.de/
Option 1: if you want direct integration then you are perhaps thinking of running a converter cable into the inputs / outputs. Since these run on the I2C format it might be possible to find a converter to the PLC... (A quick google search was not looking positive).
Option 2: Control the NXT via the serial interface (USB cable/ bluetooth). I have used the Matlab toolbox from RWTH which communicates with a small firmware module downloaded to the NXT memory. This interface is a simple serial protocol - and with a small embedded PLC it should be possible to send and receive sensor port data in semi-realtime. It is not perfect; (i.e. uses a polling loop to monitor motor positions, so has overshoot) but could provide a quick and dirty hack. There might be other alternative firmware - but this was the most practical / open one (http://en.wikipedia....dstorms_NXT_2.0)
Feel free to send me a PM if I can be of more help.
Flicker Sets:7812 Observation Car || BR1020 - 4551 Mod || Octan Tanker || Multi-coloured 7939 || Fire & Rescue Train
Cuusoo Projects: Fire & Rescue Train || 4-Wide working V4 / V6 / V8 Engines
BSTF Thread: Old trains / Models for sale or visit Bricklink Store
Cuusoo Projects: Fire & Rescue Train || 4-Wide working V4 / V6 / V8 Engines
BSTF Thread: Old trains / Models for sale or visit Bricklink Store
#9
Posted 06 July 2010 - 08:29 AM
Thanks so much roamingstudio
. I'll take this info to my workmate, and see what he says. However, now it's summer vacation, so it'll probably be in August.
#10
Posted 12 July 2010 - 09:11 PM
I've used NXT with LabView, if that's what you're looking for. I'm not sure how much help I can be, I found it to be rather frustrating. I'm new to both LabView and NXT, although I do have two Robotics Invention Systems. Someone with more LabView experience might find it less frustrating and be more helpful.
#11
Posted 16 July 2010 - 08:05 PM
roamingstudio, on 05 July 2010 - 06:33 PM, said:
if you want direct integration then you are perhaps thinking of running a converter cable into the inputs / outputs. Since these run on the I2C format it might be possible to find a converter to the PLC...
So far I don't see anyone mentioning the very much underused and under-publicized RS485 serial interface on NXT input port 4. That allows the NXT to interact directly with any PLC that supports Modbus-ASCII, which typically runs on a 2-wire daisychained serial link. All that you would need is Modbus drivers (i.e. software) for the NXT.
Some months ago I played with some NXC code on the NXT to have it receive Modbus data packets and generate a response. I definitely proved the concept, but never did complete the project due to other things coming up.
Ron.
#12
Posted 16 July 2010 - 08:33 PM
ronmcrae, on 16 July 2010 - 08:05 PM, said:
So far I don't see anyone mentioning the very much underused and under-publicized RS485 serial interface on NXT input port 4. That allows the NXT to interact directly with any PLC that supports Modbus-ASCII, which typically runs on a 2-wire daisychained serial link. All that you would need is Modbus drivers (i.e. software) for the NXT.
Flicker Sets:7812 Observation Car || BR1020 - 4551 Mod || Octan Tanker || Multi-coloured 7939 || Fire & Rescue Train
Cuusoo Projects: Fire & Rescue Train || 4-Wide working V4 / V6 / V8 Engines
BSTF Thread: Old trains / Models for sale or visit Bricklink Store
Cuusoo Projects: Fire & Rescue Train || 4-Wide working V4 / V6 / V8 Engines
BSTF Thread: Old trains / Models for sale or visit Bricklink Store
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
Sponsored Links










