Hello Guest it is April 26, 2024, 07:52:34 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
11
Mach4 General Discussion / Mach4 Gcode running or not running
« on: July 16, 2019, 09:23:13 AM »
Hello People,

I am trying to change the states of some ouputs when mach4 is running an gcode and when it is done/''standby''. I looked in the API file for some variables to set the trigger.

I can't seem to find anything which I can use to see if mach4 is running an gcode or when it is not. Does someone know one? I want to turn 2 outputs on when it is not running an gcode and turn them back off when it is done or when I first turn the machine on.

Thanks in advance.

12
Mach4 General Discussion / Changing G54 inside script
« on: June 19, 2019, 09:01:23 AM »
Hello, I am retrofitting an machine with multiple tools on the head with mach4. The machine has an head which is mounted to a Z axis. I need to give an offset to each tool on the head. I think the best way is to change the G54 according to the position on the tool on the head. We use g54 standard because our work origin is fixed on the table but it is not directly under the machine zero.  So let's say our x in G54 is 150mm and the tool on the head is -50 in relation to the primairy tool. So I would make the G54 x coordinate 200mm.

Is this possible to do it this way within a script. Or does someone have a better idea on how to achieve the correct x an y offset when a different tool is selected?

Thanks in advance.

Jelle


13
Mach4 General Discussion / Need help with tool offset
« on: May 27, 2019, 10:46:44 AM »
Hello, I am retrofitting an old masterwood project 309 and I am currently trying to set the tool offsets. My machine has an machine head with alot of tools on it. These tools have a fixed postion so they would need an offset in relation to the master tool. I am using mach4 and an csmio controller.

Could someone help me how to define those x and y offsets in relation to the master tool? If it is even possible.

Thanks in advance.

14
Hello,

I am currenlty retrofitting an old masterwood project 309 from 1993. I am retrofitting it with an CSMIO-ip/a. The machine is made for furniture buidling so it has an vacuum bed to fix the material. In the upperleft corner are pistons to set the workpiece in a fixed zero position. I am trying to make a function where I can fill in the workpiece dimensions to give the machine the workpiece position. I do not need probing because the material is always in the same position on the bed.

But the problem is that I am unsure in which value to put it and where to program it. Could someone help with my problem?

Thanks in advance.

Jelle

15
CS-Lab / Custom script CSMIO/IP-A Mach4
« on: May 20, 2019, 08:18:25 AM »
Hello, Iam currently retrofitting an old Masterwood project 309 with Mach4 and the csmio/ip-a controller. I am at the phase to write custom scripts to make the machine function as it should.

The problem is that I cant seem to find a manual on how to use lua with this controller( and no good manual for lua itself). So I am unsure on how to set an output high.
I wanted to try and set an output high with an m-code to get familiar with the language. This is the code I wrote:
function m126 ()
local inst = mc.mcGetInstance();
io = mc.mcIoGetHandle(inst,"CSMIO-IP/out.3");
mc.mcIoSetState(io,1);
end


I am an novice at programming with lua but i have experience with c an c++

Thanks in advance

Pages: « 1 2