Hello Guest it is March 28, 2024, 02:57:04 PM

Author Topic: Custom Signal Event Handler?  (Read 4434 times)

0 Members and 1 Guest are viewing this topic.

Offline TimGS

*
  •  108 108
    • View Profile
Custom Signal Event Handler?
« 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.

Re: Custom Signal Event Handler?
« Reply #1 on: June 06, 2015, 12:45:56 AM »
sounds just as good as an 'Event_Macro_Hold"....whatcha talkin about willis?

Offline TimGS

*
  •  108 108
    • View Profile
Re: Custom Signal Event Handler?
« Reply #2 on: June 08, 2015, 09:45:26 AM »
Just Google "How to create an event handler in Lua" 
Re: Custom Signal Event Handler?
« Reply #3 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.


Re: Custom Signal Event Handler?
« Reply #4 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.
« Last Edit: June 09, 2015, 04:32:42 AM by Screwie Louie »

Offline TimGS

*
  •  108 108
    • View Profile
Re: Custom Signal Event Handler?
« Reply #5 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.
Re: Custom Signal Event Handler?
« Reply #6 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!
« Last Edit: June 09, 2015, 01:31:06 PM by Screwie Louie »

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Custom Signal Event Handler?
« Reply #7 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.....
New For 2022 - Instagram: dazthegas
Re: Custom Signal Event Handler?
« Reply #8 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

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Custom Signal Event Handler?
« Reply #9 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