Hello Guest it is April 24, 2024, 11:39:03 PM

Author Topic: Using modbus to control a 3 color stack light  (Read 6262 times)

0 Members and 1 Guest are viewing this topic.

Using modbus to control a 3 color stack light
« on: November 03, 2013, 06:23:46 PM »
Wondering if anyone has a working Brain to control a red, yellow, green stack light. I'm hoping to control it using Peter Homann's modio, but am having difficulty writing a brain to control it. The Goal:

Mach3's Run button : Turns the green LED on
Tool change: Causes the green LED to flash
Mach3's Feed Hold Button: Turns yellow LED and signals it to flash
Mach3"s Stop Button: Turns the red LED on
Mach3's Reset Button: Turns the red LED on and signals it to flash.

The other thing I cannot figure out is how to get the Discrete outputs to turn on and off.  When powering on the modio, all 3 LEDs light up solid. if I toggle Active low on either pin in 'Ports and Pins', nothing happens. I have the stack light connected to Dout0 (Green), Dout1(Yellow), Dout2(Red), negative lead to +VOut (Pin18). I have external 24v power supply connect to  VGND (Pin7) and +VOut (Pin18). The Modio is being read by the PC as I am able to read registers using the modio plugin. I've watch the videos on setting up Modbus and have read thru Peter Homann's 'Using Modbus with Mach3' guide but just can't get it to work. Hopefully someone has already figured this out.
Re: Using modbus to control a 3 color stack light
« Reply #1 on: November 03, 2013, 07:13:44 PM »
Hi,

If you are following the Article I wrote, you should be able to get it to work using the attached Brains.

Cheers,

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com
Re: Using modbus to control a 3 color stack light
« Reply #2 on: November 08, 2013, 12:15:11 AM »
Hi Peter

Thank you for your quick response. I loaded the brains you attached and mach3 now responds. It's finally working as it should. I have a 4 channel relay on order that should arrive in a couple weeks. That should take care of the trigger functions. I'm finally getting the hang of working with brains.

Thanks again,

Cruz