Hello Guest it is April 25, 2024, 02:10:14 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 - civilseal

Pages: 1 2 3 »
1
Mach4 General Discussion / Mapp input to output?
« on: May 31, 2021, 08:34:46 AM »
Hello,
Whats the easiest way to mapp an input to an output?
For example when Input1 is set the I would like Output8 to also be set.

2
General Mach Discussion / Read working coordinates in macro
« on: May 23, 2017, 08:49:27 AM »
When using GetOemDro(802) it could be a disaster if the user has pressed the machine coord button as it then read the the machine coordinates instead of the working coordinates.
I could of course check if the button is pressed and abort but is there an other way to read only the working coordinates?

3
General Mach Discussion / Re: Spindle orientation with Mach3 Need help
« on: February 04, 2016, 01:47:40 PM »
Well there is no PLC there now so I will control the valves and motors either via Mach3 or a PLC.
So the question is how fast can Mach3 process a input in a macro and stop the spindle?
I would say that it has 0.5s or so to react.
And then there is the Smoothstepper in between...

4
General Mach Discussion / Spindle orientation with Mach3 Need help
« on: February 04, 2016, 11:40:12 AM »
I´m retrofitting an old CNC-machine for wood with a bunch of spindles on a big vertical wheel of which each spindle has a different combination of cams and switches so that it can find the right spindle.
So, I wonder if its possible to do this in Mach3, for the programming its not a problem but can Mach3 time it reliable? (with the Ethernet smoothstepper)
I have tried before to stop a spindle when hitting an inductive switch but it was stopped sometimes directly and sometime it took a second or two from the switch was triggered until Mach3 turned it off so that did not work very well.
Has anyone managed this or do I need a PLC to make it work?
Would Mach4 work better than Mach3 for this?

Thanks.

5
is this what your wanting?

x1 = getdro(0)
y1 = getdro(1)
z1 = getdro(2)
Print #1, "Here are the X, Y and Z coordinates"
Print #1, "My X = ", x1
Print #1, "My Y = ", y1
Print #1, "My Z = ", z1

Thanks, bur how is this different from my example above?

My thought was that it must be an easy way to just tell it where to go in the file like
Print #1, X; row 10 or something like that but I can only find various to complicated ways to do it (at least for me) so there for I hoped that I missed something and that someone here new an easy way like my example.

ger21: How could I use Goto in this application?

6
Yes thats what I´m trying to find info about but has not yet succeded and thats why I posted this thread

7
How can I control where to write in a file?
For example if I do this:
Dim X As Double
  Open "C:\Mach3\myfile\myFile.txt" For Output As #1
  X = GetDRO(0)
  Y = GetDRO(1)
  Z = GetDRO(2)
  Print #1, X
  Print #1, Y
  Print #1, Z
  Close #1


But then maybe I just want to write the value of the Y axis and have the other ones intact, or if I want to add more and more values after the others, how can I control where in the file the value is written?

8
G-Code, CAD, and CAM discussions / Re: THC on off problem
« on: August 27, 2015, 01:21:29 AM »
How do you mean? thats exactly what the macros are doing:

M101 macro:

Rem THC On
If GetOEMLED(24) = FALSE Then 'Check if off, then turn it on, else do nothing
   DoOEMButton(123)
End If

M102 Macro:

Rem THC Off
If GetOEMLED(24) = TRUE Then
   DoOEMButton(123)
End If
   
I want do be able to set cutting rules in sheetcam to control the THC, thats why I want this to work.

9
G-Code, CAD, and CAM discussions / THC on off problem
« on: August 26, 2015, 05:00:26 PM »
I´m having very much problem with turning the THC on in a gcode.
Included are the macros I use for turning the THC on and off and the file which I test the function with.
By them self the macros work fine, and if I delete the M101 in the gcode file it also work fine,
but when I run it as it is now it turns the THC on and then the Torch, and then nothing happens?? until I hit stop and the run again, then it continues, its like there is something wrong with the macro that I have to abort with the stop button.

I have also tried to move the M101 after M3 and then it hangs after M101.
There is no problem with klicking the THC button when the program is running.

I have been trying different approaches now for two hours and are supposed to have this ready for a customer on the morrow (in Sweden that is) so if anyone could help me it would be much appriciated.

M101 macro:

Rem THC On
If GetOEMLED(24) = FALSE Then
   DoOEMButton(123)
End If

M102 Macro:

Rem THC Off
If GetOEMLED(24) = TRUE Then
   DoOEMButton(123)
End If
   
Gcode:

N0010 (Filename: Plasmatest1.tap)
N0020 (Post processor: Mach3 plasma.scpost)
N0030 (Date: 26/08/2015)
N0040 G21 (Units: Metric)
N0050 G53 G90 G91.1 G40
N0060 F1
N0070 S500
N0080 (Part: Drawing1)
N0090 (Operation: Inside Offset, A new layer, T1: Plasma, 6 mm kerf)
N0100 M06 T1 F2000.0  (Plasma, 6 mm kerf)
N0110 G00 Z20.0000
N0120 X449.6106 Y299.8261
N0130 Z5.0000
N0140 M101
N0150 M03
N0160 G02 X456.7401 Y305.4020 I6.3527 J-0.7768 F2000.0
N0170 G01 X461.7031 Y304.7951
N0180 X426.0583 Y13.2934
N0190 X13.1060 Y56.9178
N0200 X24.7354 Y358.2275
N0210 X456.7401 Y305.4020
N0220 G02 X455.6415 Y296.4179 I-5.0413 J-3.9427
N0230 M102
N0240 M05
N0250 G00 Z20.0000
N0260 M05 M30
        

10
Screen designer tips and tutorials / Re: Enable jog on screen?
« on: August 14, 2015, 08:26:13 AM »
Ok I placed both on the screen and now it works, thank you very much.

Pages: 1 2 3 »