Hello Guest it is May 12, 2024, 12:48:12 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 - Cbyrdtopper

581
Mach4 General Discussion / Re: How do I make "Go to Work 0" work?
« on: April 02, 2018, 10:52:29 AM »
If you are running the demo, make sure it hasn't timed out.  You only have a limited time frame in the demo.

Restart Mach4 and try again.

582
Mach4 General Discussion / Feedrate and Spindle Speed Override LEDs
« on: April 02, 2018, 09:03:45 AM »
When I'm machining something and I override the Feedrate or Spindle RPM, I sometimes forget to change it back.
 
I liked how Mach3 had the flashing LEDs whenever the Feed or Spindle were not at 100%.   So I added a couple of LEDs to the screen in the Feedrate and Spindle control boxes to do the same thing.

I used two options of code to get this to work; either set the screen property to "1" for the LED or link the LED to an Output and toggle it on or off.

PLC Script
---------------------------------------------------------------
--Override LEDs whenever Feedrate and Spindle are not at 100%.
---------------------------------------------------------------
--local inst = mc.mcGetInstance()
local FRO = mc.mcCntlGetFRO(inst) --Returns:  0 - 250
local SSO = mc.mcSpindleGetOverride(inst) --Returns:  0.5 - 1.5
local FROLED = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT60)
local SSOLED = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT61)

if FRO ~= 100 then
     scr.SetProperty("FROLED", "Value", "1")         --Screen Property Example
else
     scr.SetProperty("FROLED", "Value", "0")
end

if SSO ~= 1 then
     mc.mcSignalSetState(SSOLED, 1)         --Output Example
else
     mc.mcSignalSetState(SSOLED, 0)
end
---------------------------------------------------------------

583
Mach4 General Discussion / Re: wx.widgets
« on: March 29, 2018, 08:09:58 AM »
I haven't found a good source for wx.widgets.  But I am using boxes to get info from the operators.

local MyNum = wx.wxGetNumberFromUser("Message", "Prompt", "Caption", 50, 0, 100) --Default, min, max

local MyText = wx.wxGetTextFromUser("Message", "Caption", "Default Value")

http://www.machsupport.com/forum/index.php/topic,36207.0.html

Check out this thread as well.

584
Agreed.  To Each his own.  I generally like having separate home and limit switches. 
We don't have to worry about I/O Constraints though.  We always use the HiCON here in the shop and I run a PLC on machines connected to Mach4 via TCP Modbus.   Virtually unlimited I/O.
I only have to have Probes, Limit/Home Swtiches, and E Stop hooked directly to the HiCON.

I didn't realize that you could use limit switches as home switches on the ESS; I know you can on the HiCON and it homes just fine but if you hit the switch out of the homing routine I've got to push the "Axis Limit Override" button to move it off the switch.

585
Can the ESS use the same input as Limit and Home switches?  You need to be sure you are able to do that with the ESS.
But to move it once you hit the home switch, it is on the limit and won't let you move the axis.  There is a button on the Jogging Tab called "Axis Limit Override".  This will disable the Over travel switch, once you move off of the switch you can click the button again to turn them back on.   

M28 isn't anything. 
G28 is Zero Return. 

The Go To Work Zero Button does work.  I use it all the time here at the shop as well.

586
Mach4 General Discussion / Re: Zero Brane not working properly.
« on: March 27, 2018, 04:04:52 PM »
When I stepped through my macro, I get the same message that you put on here.
So that is the same.  Just no results on Mach4 still.  I am using Hobby.  That shouldn't matter though I wouldn't think.

587
Mach4 General Discussion / Re: Zero Brane not working properly.
« on: March 27, 2018, 03:57:26 PM »
Okay, So I did delete it.  It isn't on my computer anywhere.
So I have no Idea what to do.....

588
Mach4 General Discussion / Re: Zero Brane not working properly.
« on: March 27, 2018, 03:45:28 PM »
Hmm....
You know, I did see Steve talking to someone about Zero Brane so I tried to download it and try it out. 

I wonder if I need to go back and delete that and see if that fixes my problem.

589
Mach4 General Discussion / Re: A Aixs Brake
« on: March 27, 2018, 03:43:57 PM »
No, the brake is to hold it from rotating while machining.  It's on the 4th axis; not the X, Y, or Z. 

Anytime the A Axis moves on our Johnford, GSK, or Haas machines, it releases the brake and has a delay ever so slightly to release pressure and then rotate.  Then it locks when it is finished with its move. 

It's not like a brake for an axis with a ballscrew. 

However, I haven't thought of making it work off of hardware, AKA the drive.  I'll look into that as well.

590
Mach4 General Discussion / Re: Zero Brane not working properly.
« on: March 27, 2018, 01:55:09 PM »
I'm just assuming this is the correct message that I should be receiving on execution. 
Is this correct?

Program starting as '"C:\Mach4Hobby\ZeroBraneStudio\bin\lua52.exe" -e "io.stdout:setvbuf('no')" -e "do;package.cpath=[[C:\Mach4Hobby\Modules/?.dll;C:\Mach4Hobby\ZeroBraneStudio\bin/clibs52/?.dll]];package.path=[[C:\Mach4Hobby\Modules/?.lua;]]..package.path;mc=require('machipc');mc.mcIpcInit('localhost');scr=require('screenipc');scr.scIpcInit('localhost');require('wx');__IN_EDITOR__=1;__MINSTANCE__=2304;end" "C:\Mach4Hobby\Profiles\Chad\Macros\m307.mcs"'.
Program 'lua52.exe' started in 'C:\Mach4Hobby' (pid: 3804).
Program completed in 0.41 seconds (pid: 3804).