Hello Guest it is April 26, 2024, 03:21:34 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 - HeadyCS

Pages: « 1 2
11
Mach4 General Discussion / Re: Homing Speed v3481
« on: January 22, 2018, 11:51:28 AM »
Thank you for your information. I have the cslab IP-M controller. I will contact them.

12
Mach4 General Discussion / Homing Speed v3481
« on: January 21, 2018, 10:42:38 AM »
The Homing in Mach4 v3481 is unbecoming because the high Homing speed causes inaccurate Home positions. At low homing speed it takes forever until the axes are referenced.

The axes should drive with rapid traverse to the home switches. Then drive away from the switch a bit and drive at low measure speed to the switch and set the home positions.
   

13
I imagine the workflow as synonymous.

I tried a lot in Mach4, also coroutines. But it does not work either.

This is the M6 Lua macro of Mach4 v3481 in the Profile folder:

Code: [Select]
--[[function m6()

local inst = mc.mcGetInstance()
local selectedtool = mc.mcToolGetSelected(inst)
local currenttool = mc.mcToolGetCurrent(inst)

mc.mcCntlSetLastError(inst, "M06 Lua makro")

if selectedtool == currenttool then
mc.mcCntlSetLastError(inst, "Current tool == Selected tool so there is nothing to do")
else
--Remove this line if you would not like the Z axis to move
--mc.mcCntlGcodeExecute(inst, "G90 G53 G0 Z0.0");--Move the Z axis all the way up

--mc.mcCntlGcodeExecute(inst, "G59\nG00 Z0\nG00 X0 Y48");--Move the Z axis all the way up
--mc.mcCntlFeedHold(inst);


mc.mcCntlToolChangeManual(inst, true);
mc.mcCntlSetLastError(inst, "Current tool == " .. tostring(selectedtool) .. "   Previous Tool == " .. tostring(currenttool))
mc.mcToolSetCurrent(inst, selectedtool)
end
end

if (mc.mcInEditor() == 1) then
 m6()
end]]

As soon as mc.mcCntlToolChangeManual(inst, true); is called, Mach4 is in a waiting loop. Execute MDI or gcode do not work (not allowed).


I developed my own solution.
If M6 is called then M00 (program stop) is executed and Output 1 is set to on. Then i change the tool and press the Cycle Start Button. The Output 1 is set to off and gcode will be processed further.

Here is my M6 Macro Code:

Code: [Select]
function m6()

local inst = mc.mcGetInstance()
local selectedtool = mc.mcToolGetSelected(inst)
local currenttool = mc.mcToolGetCurrent(inst)

--if selectedtool == currenttool then
--mc.mcCntlSetLastError(inst, "Current tool == Selected tool so there is nothing to do")
--else
--Remove this line if you would not like the Z axis to move
--mc.mcCntlGcodeExecute(inst, "G90 G53 G0 Z0.0");--Move the Z axis all the way up

--mc.mcCntlSetLastError(inst, "m6()");

local signal = mc.OSIG_OUTPUT1;
--local signalToolchange = mc.OSIG_TOOL_CHANGE;

local hSig = mc.mcSignalGetHandle(inst, signal);
local state = mc.mcSignalGetState(hSig);

local stateToolchange = mc.mcSignalGetState(mc.mcSignalGetHandle(inst, mc.OSIG_TOOL_CHANGE));
mc.mcCntlSetLastError(inst, "m6(): mc.OSIG_OUTPUT1 state"..tostring(state));
mc.mcCntlSetLastError(inst, "m6(): mc.OSIG_TOOL_CHANGE state"..tostring(stateToolchange));
if state == 0 then
mc.mcCntlSetLastError(inst, "m6(): Tool change active");
mc.mcCntlGcodeExecute(inst, "M00");
mc.mcSignalSetState(hSig, true);

mc.mcCntlSetLastError(inst, "Current tool == " .. tostring(selectedtool) .. "   Previous Tool == " .. tostring(currenttool))
mc.mcToolSetCurrent(inst, selectedtool)
else
mc.mcSignalSetState(hSig, false);
mc.mcCntlSetLastError(inst, "m6(): Tool change inactive");
--mc.mcCntlSetLastError(inst, "m6(): mcCntlToolChangeManual");
--mc.mcCntlToolChangeManual(inst, true);
end;
--end
end

if (mc.mcInEditor() == 1) then
 m6()
end

There is still a problem. If press the Stop, Reset, etc. Button during the tool change (Output 1 on), the Output 1 will not be reseted. I will try to find a solution.




14
CS-Lab / Re: CSMIO/IPS MACH4 "Counts per unit"/DRO Problem
« on: September 09, 2017, 03:42:15 PM »
In Mach4 build 3481 is this problem solved.

But i have a new problem at home axes. At first the Z axis drive up to the home switch until the switch is reached. After that nothing happens.

CSMIO IP/M with v 3.02

15
CS-Lab / Re: CSMIO/IPS MACH4 "Counts per unit"/DRO Problem
« on: August 13, 2017, 06:05:42 AM »
Hello,

i have same problem. CSMIO IP-M Controller and Mach4. The Firmware v2.910 works only with Mach4 4.2.0.2803. With newer Mach4 versions, i get no connection to the controller. Then i tried the CSMIO v3.01 beta with Mach4 v4.2.0.3390 or v4.2.0.3418 but there is a other problem: when jogging in mm, the distance in mach4 does not coincide with the real. Changes of the steps per unit at Motor settings has no effect. The controller always outputs 1000 steps per mm.
The CSLAB support means it is a bug of Mach4.

Pages: « 1 2