Hello Guest it is March 29, 2024, 09:51:56 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 - jevs

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »
151
I setup a button to turn an output on and off that only works when the machine is enabled.
However, if you leave it on and Disable the machine, the output stays on (button itself is disabled).

I also setup custom M codes to turn it off and on. If you turn it on with the M-Code and disable the machine, it will also still leave the output on.

So, I have no idea where and what to put somewhere to ensure this output gets shut down no matter what when the machine is disabled?

Thanks

152
Yeah the first problem I have with all of this is that everyone is assuming I am already a Lua programmer and that I am just not figuring out the right commands to use for my task.
The real problem is that I do not know what any of these commands or lines of code are doing. After much digging and noticing people using it in videos, I found the Mach4 Core API help file. So I can start decoding what is going on here....However using the search tool in this help file is about useless. It does not even find stuff that is in there once you look manually.

For example, lets just start with what seems to be the first line to everything I see:
local inst = mc.mcGetInstance()

Where would I find the info that explains what this does. This is not in the Alphabetical API Reference list
I kinda know what this one does just because I have watched so many videos and read so much stuff already, but I do not have a pure definition. I assume this some how sets it to use my currently being used instance of Mach4 or something. I would really like a better definition and how to find it for myself. What is the instance? a number? the profile I am using?, or what?

 

153
I went ahead and ordered the 57e and a PCI-E network card.

154
I am just trying to do some of what should be some simple stuff but the roadblocks and learning curves are huge so far....

I found out you can use the PMC editor to automate creating a macro for you. However, I am stuck on the first step because there is no Core Function to pick for what I want to do...

I am trying to create two custom M codes.They will be M200 to turn on the oiler and M201 to turn it off.

I created a button and an LED that I want to use so I can do this manually. I copied the flood on off stuff and renamed them etc.

I also want to be able to have this output on whenever X or Y is moving.

I created the output setup and named it Enable Oiler in the ESS pins setup and turned it on the outputs.




155
I just realized that you said this runs when any axis moves. I only want it to run if X and/or Y moves. The Z axis has no oiling (has grease fittings).

156
Thanks, I will try to decode this so I know what it is doing and then go from there.

I have an MMXL-III oiler.
It pumps out oil at a rate of 2.5cc per 15mins. It just pumps oil real slow when it is on.

I think I may also create a custom on and off M code and make a button on the screen to manually operate it and to light up the button when it is on maybe if I figure it out....

157
I need to make a script or macro for turning on my oiler output anytime an axis is moving.

The oiler has it's own motor that pumps out a certain volume over time. So all I need to do is turn it on when the X or Y is moving to keep the ways oiled.

I figured this out in mach 3 with the brain editor thing, but now I am starting from scratch here. I also lost this brain for mach3 somehow. I cannot find it anywhere....I have not used the machine in years. 

Other than turning it on anytime there is a move, do you think I should add a minimum time limit or minimum distance so it is not clicking off and on with every little jog? The issue here is that if you make a bunch of little jogs it may not lube enough? However if it is clicking on and off a million times maybe that will wear out the relay or oil pump?

Anyway, I am sure someone has to have done this by now so any help is appreciated. I was watching videos on youtube of making a tool change script and started to fall asleep, so I figured I better get out here on the machine and do something simpler and wake up :)

In the mean time I will do more research and reading while I see if there is any response here.

Thanks!


158
I notice the Pokeys 57E does not offer keyboard or joystick emulation, but the USB version does.

Is this of any concern?

159
Thanks for that information!

My computer in my CNC machine is using Wi-fi for internet/network access.
I am using the ethernet port on the back of the motherboard for the ESS.
What do you think is the best way to get my second ethernet port in this scenario?

I want to keep my machine stand alone and not requiring any access to anything to run. It does have internet access and I can access my server etc via the wi-fi, but it will work anywhere without access to anything else.

I will have to solder connectors onto the pokeys57 in my scenario because it is plugged into the Machmotion control panel. That shouldn't be a big deal, but it would be kind of nice to have it seperate if I want to add things to it at some point. I may just get the one with screw terminals and jumper it over so I have better access for upgrades....not sure yet.
I think I will have to supply power to the ethernet version also. I believe this one pulls it from the USB connection.

I have some work ahead of me.

160
I have to upgrade my pokeys 55 that is used for physical buttons, switches, & Pendant to go to Mach4.

I am wondering about going with the Ethernet version(57e) instead of the USB version (57u)?

Anyone done this? Any details?

Since there is only one ethernet port on the computer I am wondering the best way to go on adding a second one. I am also wanting to make sure there would be no issues with the ESS.

From my understanding the ethernet pokeys may be a bit more reliable than USB?

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »