Hello Guest it is May 15, 2024, 04:37:03 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cncmagic

Pages: « 1 2 3 4 5 6 7 »
11
and while this would be beyond my really truly meager capabilities.. I guess you could somehow retrieve the message box instance itself (or its thread or whatever id or position in the Ether it holds) and kill that in code.. way past anything I would attempt myself.  :o

12
my mistake.. not sufficient coffee this morning... no.. I don't see any method to close a message box using an input.. why don't you simply write into the bottom message banner when the guard is open.. you can clear that from the plc script.. or put a box on the screen and then make it invisible. Or you could do something really crazed and try to stuff keystrokes into the keyboard buffer to clear the box.. now that would be something to post!!!  :-\

13
in the screen plc code read the state of the input and generate the message.. make sure you keep track and only do on a transition so it doesn't generate the message every scan.. and simply either lockup Mach4, crash or both.  :o

14
Mach4 Toolbox / Re: On Screen Cycle Counter
« on: March 09, 2024, 09:36:45 PM »
and just for the heck of it attached is what the Cycle Start script should look like   :(

15
Mach4 Toolbox / Re: On Screen Cycle Counter
« on: March 09, 2024, 09:26:13 PM »
actually a bit easier than my earlier post.. make the global.. now using the screen editor place a numeric on the screen.. you can set the properties for it to display the value in the global.. this will also allow you operator to set the value.. you still have to make the macro to decrement the global and you also need to write the code in the cycle button script to check the value. I've attached what I used for M168 to increment the value. You can easily modify to decrement the value.  :-[

16
Mach4 Toolbox / Re: On Screen Cycle Counter
« on: March 09, 2024, 09:00:11 PM »
forgot the last part.. make the global persistent and the value should remain after power down and then up. :o

17
Mach4 Toolbox / Re: On Screen Cycle Counter
« on: March 09, 2024, 08:58:47 PM »
I'm guessing the cycle stops at the end of each part and requires another cycle start? If thats the case, create a global register called 'CycleCnt' (you can name it whatever makes sense to you).. now write a short macro that reads the value in the register and decrements it by 1 (you can clip it to zero if you want). At the end of each cycle call the macro. Now inside the Cycle Start button place some code so that if the value in the register is greater than zero it does a cycle start. You can place a wxMessage in the code if the value is zero to pop up a message that alerts the operator that the count is zero. If you want to display the value on the screen, place a number display and in the screen plc code, read the value in the global register and write it into the screen display. Sounds like a lot but it should be quick and relatively easy. I actually count cycles in a similar fashion.  ???
and not only do I give advice here I also sell plots in the Antarctic.. cheap!!!

18
Mach4 General Discussion / Re: Auto Load Last GCode File on Startup
« on: March 08, 2024, 12:02:27 AM »
you can probably write some code in the screen load script to do this. I wouldn't expect it to be too difficult. You'll need some experience with coding using LUA (C is close) and you'll need to search out how to locate the last file loaded, or write some code to store the filename and then retrieve it. To get to the screen load script before you enable Mach4, click on the Operator in the top menu.. then click Edit Screen. You'll now see the screen object tree on the left side of the screen. Click on 'WX4' which is most likely the screen set you are using. Then click the the lightning bolt in the Properties window below. Now you should see the selections for the screen load script, screen unload script, plc script, message script and timer script. Click on the box to the right of the 'SCREEN LOAD SCRIPT'  text.. then click on the small button on the right of the box you just clicked in. That will bring up the screen load script in the editor. Rest is up to you. There is useful info in the forum and the documentation that came with Mach4. Be careful.. you can make changes that will cause the program to either stop, fault, or lock up. Make a copy of the WX4.set file in the screens sub directory. If  you make changes and Mach4 won't load or run, replace the WX4 file in the sub-directory with the original. You might also want to look into the plc script.
Remember.. never take candy from a stranger.. nor advice.  :o

19
Mach4 General Discussion / Re: Change from Syntec 6MD to Mach 4?
« on: February 28, 2024, 10:13:55 PM »
took a quickie look.. documentation is poor.. but if the system is operational then let it be.. don't fix what's not broke as they say.. if its not functional, I wouldn't spend the time and effort to try and figure it out and fix it.. I'd toss the entire control into the trash.. if that's the case it won't be any tougher installing Mach4 than starting from scratch.. some learning curve but probably no more so than learning the 6MD.  ???

20
Mach4 General Discussion / Re: Need help, homing/limit lights
« on: February 20, 2024, 04:34:27 PM »
when you are not enabled, you can go to the ESS config and configure the pin for each axis home signal to be active high or low.. alternatively you can do similar in the Control config for Mach4.. that being said, if the machine homes correctly you probably don't want to change the way either is 'seeing' the input state.. currently I don't have a setup with the standard screen set and my setup doesn't show the HOME status of any axis (I'm doing it differently).. is this the actual input state you are referring to or the indicator that shows the axis is homed? I'll try to set the original screen set back and take a look whats in place  :-\

Pages: « 1 2 3 4 5 6 7 »