Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: TimGS on June 04, 2015, 04:40:23 PM

Title: Custom Signal Event Handler?
Post by: TimGS on June 04, 2015, 04:40:23 PM
Just curious ...
Could the Input/output signals been setup with a Custom Signal Event Handler?
...It would dispense with the need for polling input signals.

Title: Re: Custom Signal Event Handler?
Post by: Screwie Louie on June 06, 2015, 12:45:56 AM
sounds just as good as an 'Event_Macro_Hold"....whatcha talkin about willis?
Title: Re: Custom Signal Event Handler?
Post by: TimGS on June 08, 2015, 09:45:26 AM
Just Google "How to create an event handler in Lua" 
Title: Re: Custom Signal Event Handler?
Post by: Screwie Louie on June 09, 2015, 04:30:24 AM
so...   who is the client and who is the server   ...or... should I say....who is the

publisher....to the 'event handler'...to which, whom has subscribed to?

sorry, may be speaking greek....it's all TCP, lol.


Title: Re: Custom Signal Event Handler?
Post by: Screwie Louie on June 09, 2015, 04:30:58 AM
fudge! I just realized I'm a nerd!!!!!  NERDZ!!!! >:D   computerized NERD control


lmao haha...ok, I'll quit now.

maybe.
Title: Re: Custom Signal Event Handler?
Post by: TimGS on June 09, 2015, 07:20:00 AM
Mach 4 would host the server since it is the core. Clients would sign up to receive/trigger events.
Title: Re: Custom Signal Event Handler?
Post by: Screwie Louie on June 09, 2015, 01:26:42 PM
Modbus?

I was looking at the same typology kinda (publisher -> server -> subscriber) but having a signal from the mill be the publisher to a "channel" on a MQTT server and m4 being the subscriber (using a PLC script to ping the channel). That way I can control m4 from anywhere there is a Internet connection if I am away from the area. Well, theoretically anyway.

I know, your thinking, why go through an external server for signal processing when I can just send the signal straight to m4.....just trying to look a things from all directions. That's all.  I'm really interested in learning more about TCP/IP config & comms with m4. I get where you are coming from. That's neat!
Title: Re: Custom Signal Event Handler?
Post by: DazTheGas on June 09, 2015, 05:23:36 PM
That way I can control m4 from anywhere there is a Internet connection if I am away from the area. Well, theoretically anyway.

and will mr google be putting the stock on the machine.....
Title: Re: Custom Signal Event Handler?
Post by: Screwie Louie on June 09, 2015, 06:26:31 PM
lmao! ha!   point taken. ok, maybe not the best of projects to take on. shoot, that was funny  ;D
Title: Re: Custom Signal Event Handler?
Post by: dude1 on June 09, 2015, 06:40:06 PM
it is a good idea if you use a tablet that gets updated  info from the machine and you can kill it from a tablet and use it as a pendint. for when you go of to make a coffee, or other rest stop so when you get back to the machine you will know there is going to be no Decepticons waiting for you or a F machine
Title: Re: Custom Signal Event Handler?
Post by: Screwie Louie on June 11, 2015, 05:58:50 AM
better answer would of been...."stock placement is automated". f those decepticons dan!  ;D
Title: Re: Custom Signal Event Handler?
Post by: dude1 on June 11, 2015, 06:13:17 AM
well you could added a robot and pallet loader
Title: Re: Custom Signal Event Handler?
Post by: TimGS on June 11, 2015, 08:40:06 AM
You two are entertaining ;D
Title: Re: Custom Signal Event Handler?
Post by: dude1 on June 11, 2015, 05:27:01 PM
I just find crazy axe (Screwie Louie) funny I cant help but add something silly