6691
Mach4 General Discussion / Re: Homing sequence triggering by limit switch possible?
« on: September 13, 2017, 03:35:59 AM »
Hi,
don't think I can answer your questions, I had a look at the vid but still unsure exactly what you wish to achieve...yet.
The comment I was going to make concerns the 'LUA Script'. Mach4 is composed of a whole bunch of scripts like screen load script,
PLC script, signal script and so on. Each has a particular use and you will when creating custom solutions modify and add to several or
possibly all of them to achieve a certain behaviour.
When Mach runs however ALL of those scripts get put together and compiled. The combined or super script is just called the 'LUA Script'
and as you've found available for your inspection at Operator/LUA Script. Note however you can't edit it or even run it, its just a text representation
of your combined scripts. If you wish to change it you have to edit the contributing script, screen load script for example.
You might ask why? I have on occasion found that having one large file to search for a given fragment of code much easier than searching in each
of the contributing scripts.
In recent times a feature called PMC has been added to Mach4 which is a ladder logic programing tool. It may be useful to you.
Keep talking about what your trying to achieve, it doesn't quite make sense to me that you are trying to use something like RefAllHome as a working
instruction.
Craig
don't think I can answer your questions, I had a look at the vid but still unsure exactly what you wish to achieve...yet.
The comment I was going to make concerns the 'LUA Script'. Mach4 is composed of a whole bunch of scripts like screen load script,
PLC script, signal script and so on. Each has a particular use and you will when creating custom solutions modify and add to several or
possibly all of them to achieve a certain behaviour.
When Mach runs however ALL of those scripts get put together and compiled. The combined or super script is just called the 'LUA Script'
and as you've found available for your inspection at Operator/LUA Script. Note however you can't edit it or even run it, its just a text representation
of your combined scripts. If you wish to change it you have to edit the contributing script, screen load script for example.
You might ask why? I have on occasion found that having one large file to search for a given fragment of code much easier than searching in each
of the contributing scripts.
In recent times a feature called PMC has been added to Mach4 which is a ladder logic programing tool. It may be useful to you.
Keep talking about what your trying to achieve, it doesn't quite make sense to me that you are trying to use something like RefAllHome as a working
instruction.
Craig