Hello Guest it is March 17, 2026, 04:30:40 PM

Author Topic: PLC Scripts  (Read 741 times)

0 Members and 1 Guest are viewing this topic.

Re: PLC Scripts
« Reply #10 on: March 10, 2026, 05:04:54 PM »
If you meant Clunky, I'd agree with you!  ;D  Given the movement towards AI, I was just thinking about how it could be used to implement things like this in the CNC world. Besides creating 3D imagery, this seems to be an underserved area in the CNC world.

I've used AI when doing coding on Android, and have found it pretty useful to help me when I've got stuck. Why not here?  Someone needs to create an LLM around the scripting and other languages used in the CNC world. That would be killer.
Re: PLC Scripts
« Reply #11 on: March 11, 2026, 10:37:57 AM »
Technically the GMS flow is a standard of flow but it's not very intuitive for users who are not used to it. We are trying to determine what kind of flow we want in the future. Personally I'm for a drag and drop method, but we could technically also do ladder logic or refine the text based version we currently have It's more about deciding how we want the product to look and feel at the end of the day. We have been moving towards the AI route to do prototyping. For example, we are trying to do a web based interface and using AI to help test for what is possible and not possible to determine what and how we want to implement said technology.
Thanks,

Paul
Re: PLC Scripts
« Reply #12 on: March 11, 2026, 10:41:34 AM »
maybe make it so it works as well. I've found a couple of errors which make it unusable. For instance it does not save the custom IO. When you restart the program, they disappear completely. Then there's the unhandled exception that pops up and causes Machpro to be unusable. I've already posted about this to Carl.
Re: PLC Scripts
« Reply #13 on: March 11, 2026, 11:03:21 AM »
There is also no method of sorting the items. What I'm looking for is a big if then elseif  end or switch solution. Some things take priority over others. ESTOP for example should be an absolute. Nothing else matters. it looks like this will go through ALL of the options and without sorting it, well it's not correct interpreting what the state of the machine is.
Re: PLC Scripts
« Reply #14 on: March 11, 2026, 12:44:58 PM »
Currently, I do wish to add other logic gates like NAND, NOR, XOR, XNOR.

When it comes to an elseif statement, you're right. You would have to make multiple GMS processes Each one setting a register or #var and base the other processes to read said register or #var making your conditions work. It is a lot of extra clutter and steps. I'll try to think of a process that can cover these things and go to make a proposal.
Thanks,

Paul