Hello Guest it is April 21, 2019, 12:47:00 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.


Topics - beezerlm

Pages: 1
1
Mach4 General Discussion / Rename A axis to U axis?
« on: September 29, 2016, 01:04:00 PM »
There is probably something simple I am missing here, but I would like to rename the "A axis" to "U axis" throughout the system.  Is there a simple way to change the letter of an axis in Mach 4?

2
Mach4 General Discussion / Macro - Pause until input triggered
« on: September 26, 2016, 08:14:44 PM »
Is there a simple way to pause motion until an input is triggered within a macro? 

I would like to ensure my Z axis returns home before the macro ends because after the macro would be an X-Y move. This is a cylinder where I have output 1 activate the "up" direction and output 0 activate the "down" direction. 

Something like this:

1. activate output_1 (up)
2. wait for Z home switch to trigger
3. end macro.

What is the best way to code step 2 (wait for input) in a Macro?

3
Mach4 General Discussion / PLC Script troubleshooting
« on: September 10, 2016, 09:37:26 AM »
I have a Moore Jig grinding machine that has a reciprocating pneumatic Z-axis.  It has a glass scale on the axis that is hooked to my motion controler (PMDX-424).  I have a PLC script set up so the user can specify an upper and lower limit on the stroke and the solenoid will change direction once one of the limits are reached.  My problem is that sometimes the machine will only perform a partial stroke on the way down changing direction well before it reaches the lower limit.  It never does this on the way up.  Perhaps there is an issue with my code?

Here is a link to a quick video showing a half stroke on about the 3rd or 4th stroke:

https://youtu.be/L82Gi7fmf28

Here is the code I am using in the PLC script:

Code: [Select]

--My Z axis DRO to inches script starts here:

local inst = mc.mcGetInstance()
local hreg = mc.mcRegGetHandle(inst, "SmartBOBUSB/EncoderDRO") --get encoder input handle
local zEncoderVal = mc.mcRegGetValueString(hreg)
local zEncoderVal = tonumber(zEncoderVal) --convert input to number for math
local zEncoderVal = (zEncoderVal * 0.0004) --convert input from encoder counts to inches
WriteRegister("Z_DRO_INCH", tostring(zEncoderVal)) --write the result to the Z axis DRO

--My Z axis DRO to inches script ENDS here:

--My Z axis stroke monitor script Starts here:

local zStrokeUp = GetRegister("Z_STROKE_UP")
local zStrokeDown = GetRegister("Z_STROKE_DOWN")
local zStrokeUp = tonumber(zStrokeUp)
local zStrokeDown = tonumber(zStrokeDown)
local output_0 = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT0) -- Get handle for output 0
local output_1 = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1) -- Get handle for output 1
local output_0_state = mc.mcSignalGetState(output_0) --Get state of  signal
local output_1_state = mc.mcSignalGetState(output_1) --Get state of  signal

if  zEncoderVal >= zStrokeUp then
    mc.mcSignalSetState(output_0, 1)
elseif zEncoderVal > zStrokeDown and zEncoderVal < zStrokeUp and output_0_state == 1 then
    mc.mcSignalSetState(output_0, 0)
elseif zEncoderVal > zStrokeDown and zEncoderVal < zStrokeUp and output_1_state == 1 then
    mc.mcSignalSetState(output_1, 0)
elseif zEncoderVal <= zStrokeDown then
    mc.mcSignalSetState(output_1, 1)
end

--My Z axis stroke monitor script Ends here:





4
Long time user of Mach3 but new to Mach4.  I keep seeing references to the Mach4 "Customization Manual" in the Operators and Scripting manuals.  Where can I find this? ???

5
Mach4 General Discussion / Controling pneumatic Z-axis?
« on: May 02, 2016, 11:54:09 AM »
I am in the process of re-retrofitting a Jig grinding machine I did a long time ago.  The machine is sort of a hybrid between the old control and Mach3.  Mach3 controls the X,Y and U (wheel outfeed) Axis.  The old control still handles the Z axis which is pneumatically driven with glass scale feedback.  I would like to take control of the Z in Mach.  This axis does not need to be precision controlled, I just need to be able to set and upper and lower limit so the Z axis will reciprocate between those limits.  I have done something similar in LinuxCNC using a Moog hydraulic servo valve with glass scale feedback to control the position of a hydraulic cylinder, but I have not done this in Mach3 or Mach4.

I am thinking I should take control of the relays that operate the pneumatic solenoid and use a script to monitor the position of the axis.  Once the position hits the upper or lower limit it would activate the relay to change direction.  Does this sound feasible? Is there a better way to do this?

6
General Mach Discussion / Jogging x1 x10 x100 instead of velocity
« on: February 11, 2008, 10:29:13 PM »
Hello,
    Trying to Jog with cnc4pc mpg-2 hooked up to lpt2. It moves all axis but I cannot adjust the increment it moves per click of the mpg. x1 x10 x100 are all the same amount no matter what I do.  Seems like I am stuck in velocity mode or something.

Any Ideas? ???

7
General Mach Discussion / VERY SIMPLE STUPID QUESTION.
« on: December 17, 2007, 07:37:22 PM »
Is there a difference between a parallel cable and a serial cable. I always thought the serial crossed over 2 and 3 pins and parallel kept them in line?

Also, should I use a parallel cable from Lpt1 to Breakout board? :P

8
General Mach Discussion / Lets pick a Spindle motor!
« on: December 04, 2007, 08:01:57 PM »
OK guys here is the deal: ???

I am building a machine to dress shapes into a grinding wheel.  I need to push a 14" dia grinding wheel to about 1000 rpm's.  The wheel should not be under much load because the diamonds I am using are .020" radius tips and I am taking .002" per pass at 3 IPM.  Looking for some suggestions for the most logical hook-up using  a C11 BOB.  What size and type of motor ???

Help is much appreciated! ;D

9
General Mach Discussion / newbie getting started
« on: December 03, 2007, 10:53:48 AM »
Trying to find a good setup to build a 3axis machine.

what is the gecko g100? 

Is there a good cnc all in one package ready for purchase because I don't know much about the controlers and other hardware.  Is there a good basic 3 axis package that works good with mach 3? 

Any help is greatly appreciated! ???

Pages: 1