Hello Guest it is April 26, 2024, 10:45:08 AM

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 - Ya-Nvr-No

11
General Mach Discussion / Re: Restart program
« on: September 17, 2019, 02:39:43 PM »
It's just like Fanuc... you have to pay extra for the Macro B option.  :'(

But in Fanuc it was just a parameter change; you just had to know the one.  ;)

12
I look at the view screen script under Operator.
I copy everything and past in a text editor and then search for examples
shows me the line numbers and some coding possibilities of how I might use it.
Hopefully I can set break points and then test by single stepping through my code.
You still have to put that code it in the MPG script your using, or i'm sure you could use a module and a shared function. called by any mpg device code.

13
I use Dynomotion Kflop its $249, if you want analog 0-10volt go for the additional kanalog board for an additional $249. I've used it for both mill and lathe. Great software too but you have to learn C code. Used it for years, love it. :)

http://dynomotion.com/

14
Mach4 General Discussion / Re: Mach4 automatic ways oiler
« on: July 26, 2019, 08:11:40 AM »
Just a heads up on what I found on sharing, testing and using pmc files:

File names need to have no spaces, as function names are created on generating the Lua file.
During simulation I noticed NO update on outputs on diagnostics tab
also I had to edit the data for contacts and coils for Device and Object as they came up blank.
In live Simulation mode still have to use the space bar to update the simulation of ladder diagram.

thanks for following though and sharing as we all learn by experiences of others.

photos show comparisons of the original, my edited version and what I referenced.

and thanks to Chaoticone for adding PMC file uploads  ::)

15
Mach4 General Discussion / Re: Mach4 automatic ways oiler
« on: July 22, 2019, 08:07:48 AM »
Why not do a Bing or Google image search for
"ladder diagram for way lube timer"
and then emulate the ladder code using the PMC scripting/ladder feature in Mach4 to write the code for you?
Might help you learn and understand how timers and lua works.
would be a good test and lesson.

16
take a look at this example I created of how to pass data, might help you.

https://www.machsupport.com/forum/index.php?topic=27162.msg261221#msg261221

17
General Mach Discussion / Re: 4th axis movement with jerks in Mach3
« on: June 25, 2019, 09:21:08 AM »
1,865,481 lines  :o
n line number start over
interesting file to read
yep joeaverage is right, computer cant do it all.
could try more memory and dedicated graphics card.
look like breaking it up in to smaller files would be the way to go, just takes some manual coding to end a section then create a new start for the next section.




18
Mach4 General Discussion / Re: floating point information
« on: June 04, 2019, 06:10:00 PM »
How do you go about sending the float from the camera to a register so you can read it? Reading and writing from within Mach4 or an attached PLC is easy enough just not sure how a generic device can send and read to a predefined register. Only thing I can think of is reading an analog signal and sending that to the reg. That makes me wonder also, will it be real time data?

19
G-Code, CAD, and CAM discussions / Re: parameters wont compile?
« on: May 29, 2019, 07:32:34 PM »
not sure what that cluster F--- code was...

but here is what I can show closer to what you need to do.

20
Mach4 General Discussion / Re: Read droGageBlockT
« on: May 26, 2019, 10:14:48 AM »
id start with mc.mcCntlSetLastError print out of each variable in the script then look at the history to see what is not correct.
but I suspect as id mentioned before its a timing issue and a sleep of a few seconds (maybe 3) needs to be used then look at the variables again in the same script. As it takes a little time for all the registers to update.