Hello Guest it is March 29, 2024, 05:01:25 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 - jelle_bos

Pages: 1 2 »
1
Mach4 General Discussion / Macro gets stuck in loop, need to restart mach4
« on: December 17, 2019, 03:46:15 PM »
Hello People,

I made some custom mcodes to run when I want the machine to drill in a panel, so I don't have to make gcodes for every panel. But when something goes wrong and I press stop the mcodes gets stuck in a loop i guess. After that I need to restart Mach4
How do I get the mcode to stop or get out of the loop when something goes wrong? if possible at all.

Thanks in advance.
Kind regards,

Jelle Bos

2
Mach4 General Discussion / Reading dro value in macro
« on: October 22, 2019, 05:40:36 AM »
Hello people,

I try to read a dro value from a custom screen inside a macro. I use this code: scr.GetProperty('buttonname', 'Value')

But my macro file crashes when i use this. When i make to line a comment the macro runs fine.
Could someone help me please.

Thanks in advance,
Jelle

3
Dear people,

I am programming some mach4 custom screen sets. But i want a button to set a variable High or low. So like some boolean to be true when the button is pressed and false when it is not pressed. I don't mean an output to be set high or low, but more like a variable to be true or false.

I also want to save a variable or value when i close mach4. I want to use that to let the machine know what tool is in the ATC spindle when i have closed mach4 and to let the machine know what tool is in the chuck when mach4 is opened the next day. like some eeprom or something.

Does someone know how to do this in lua and mach4?

Thanks in advance.
Kind regards,

Jelle

4
Mach4 General Discussion / Unpress screen button with other buton
« on: October 21, 2019, 12:58:18 PM »
Dear people,

Iam currentlyy building a custom function in a tab on screen to quickly do so programmed gcode. I have 3 different ''option'' buttons on screen. But only one can be pressed down and the other needs to be up.

How do I make the screen buttons go up when one of the other two is presses? I couldn't find it anywhere.

Could someone please help me? Thanks in advance.

Kind regards,
Jelle

5
Mach4 General Discussion / Lua Probe touchplate over movement
« on: October 09, 2019, 06:31:42 AM »
Hello people,

Iam currenlty programming my auto touchplate to measure tools automaticly by pressing a button. My sensor has an output which indicates if the zaxis traveled too far because it didn't recieve a signal that the probe was touched.

The problem I have now is that i don't know what to do when this output is activated. If I enable the estop the axis is stuck and I can't enable the drive. And when I use a gcode execute to make the zaxis go back to zero I get an error.

Could someone please help me?

Thanks in advance.

6
Mach4 General Discussion / Variable in PLC script and m6 toolchange
« on: September 05, 2019, 10:24:44 AM »
Dear people,

I want to use a variable in my m6 toolchange which tells my plc script to turn off a relay. I made a variable and tried to use this in the plc script but is does not seem to work.

The thing I want to achieve is: I programmed in my plc script that when tool 11 is selected it lowers the right spindle, with a relay attached to a pneumatic cilinder, but I want to make a statement that when a m6 toolchange is activated that it can't do that. So I wanted to make a variable ''Change'' which will be set 1 when the tool change is activated and set 0 when it is deactivated.

The problem now is that it seems that I can't use variables from m6 in the plc script?

Could someone help me please?
Thanks in advance.

Kind regards,
Jelle

7
Mach4 General Discussion / Pause Lua script mach4
« on: August 20, 2019, 10:27:23 AM »
Hello People,

I am trying to figure out how to make a script pause/ wait before it continues. I don't want to stop the whole script but only the function where the timer is in. So the other functions will continue.

Does someone know how to achieve this in Lua? I want it the program to wait before a piston moves.

Thanks in advance.
Kind regards,

Jelle

8
Mach4 General Discussion / Retrofit masterwood Y coordinates problem
« on: August 13, 2019, 04:15:59 AM »
Dear people,

I am retrofitting an old masterwood project 309 with mach4 and a CSMIO-ip/a. I am at the stage that I can test the machine. I now havea porblem with milling somehting. I use fusion360 to generate the gcode. Below you can see a screenshot of my sketch. The problem I have is that the upper y value between stock edge and the inner rectangle is 100.5mm and the lower value between the edge and rectangle is 99.5. The distance between the inneredges of the rectangle are perfect. It looks like the program takes the whole  rectangle and places is 0,5mm lower on the y axis. The stock dimensions are 2310mm x 875mm

When I try to run a other op like a slot the dimensions are perfect and the problem does not occur. Is this maybe a porblem with arc mode or distance mode of some sort? or maybe in my cam skills because they are not great.

I am really desperate because I can't seem to find the problem. I really hope someone could help me with this problem.

9
Mach4 General Discussion / Mach4 y coordinates are wrong when machining
« on: August 07, 2019, 09:26:02 AM »
Dear people,

Iam trying to mill a large pocket in a piece of wood which need to be the same distance between the upper outside stock and the lower outisde stock. The gcode is correct in fusion360 but when I machined the part the lower dimension is 9,5cm and the upper is 10,5 mm. When I try a smaller part with the same feature it is correct. So looks like mach4 shifts the y coordinates when it starts the program. The x values are the same as my drawing but the Y value is shifted.

It is strange because when I try a smaller part, with the same feature and adjust the feature dimensions to the stock size, the problem does not occure

I use g54 to define my work coordinates. Could someone please help me. Iam really lost what it could be

10
Mach4 General Discussion / Mach4 automatic ways oiler
« on: July 22, 2019, 07:03:44 AM »
Dear people,

I am using mach4 to retrofit an machine. There is an oiling system on the machine to oil the ways where the axis ride on. I want to turn on the oiler for a set time when the machine reaches an certain total run time.

The only problem is that I am unsure what variable I need to use from the mach4 API. I am also unsure how to program a counter in Lua.
If someone knows or has some ideas, feel free to reply

Thanks in advance

Pages: 1 2 »