Hello Guest it is May 16, 2021, 03:15:04 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 - abdulasis

Pages: 1 2 »
1
Mach4 General Discussion / Re: How to Post processor for Turn-Mill Mach4
« on: February 08, 2021, 09:13:33 AM »
I don’t know about fusion but you can simply make the c axis an axis. We don’t know or care what your doing with the motors. The issue is we do not have the tools to make a Cartesian coordinate system from the c and x axis. We know how to do it we just have not done it because not enough people need it.

I'm sad   :'( :'(

Thank you for answer, MR.Brian Barker

2
Mach4 General Discussion / Re: How to Post processor for Turn-Mill Mach4
« on: February 08, 2021, 09:10:47 AM »
You may be able to get away with using one of the fanuc post processors to utilize the milling capabilities.

Hi Cbyrdtopper
I found post FANUC but have only A-axis.
Give some  advise me please for choice post processor.
Thank you.

3
Mach4 General Discussion / How to Post processor for Turn-Mill Mach4
« on: February 07, 2021, 09:47:05 PM »
Hi
I have DIY CNC Lathe  now I use for lathe.
I use Fusion360 for post gcode.
and next step I want for create sub spindle and want to mill on C axis(on spindle) + X axis  but I don't know how to Post processor or setting .
I choice mach4 turning post processor on Fusion360  it's have error : Error: Milling toolpath is not supported by the post configuration.
how to creat for turn-mill for use X,Z+C axis ?

Asis

4
Mach4 General Discussion / Re: macro for Home Axis
« on: November 04, 2020, 10:03:24 PM »
I don't think you can use the API to home an axis in a macro. If you want to home an axis via gcode try 'G28.1  C1' in the MDI
Thank you bro.
I have question , How to script for click button on screen ? have ? or not have ?

5
Mach4 General Discussion / Re: macro for Home Axis
« on: November 04, 2020, 11:19:14 AM »
Hi,
do you have a motor assigned as number 5?

If you have no home switch assigned to an axis which is being homed it will 'home in place', ie not move. An axis will
move only when it is logically connected to a motor number and a home signal for that motor is enabled.

Craig

Hi MR. Craig
This my action

configure --> control --> active motor5 and set motor mapping motor5 on C axis
configure --> Plugins --> ESS V.260 --> Input Signals --> Motor 5 Home  set correct pin

I create new button on screen by copy from button Reffecrence Z  and change config and rename to C axis

Then
I try on screen click button Refference C   . Result  = Good, worked.

Then I try to create script macro ::::

Code: [Select]
function m108()

local inst = mc.mcGetInstance()
local rc = 0

rc = mc.mcAxisHome(inst, 5)
end

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

I try type in MDI  and click cycle Start Gcode
Result = nothing
When I spam click cycle Start Gcode  some time it's running for home!!! . I don't know script for check state , set state , before run it's ?
have any Idea for this my problem ?

6
Mach4 General Discussion / macro for Home Axis
« on: November 04, 2020, 12:01:32 AM »
Hi
I have create macro for Home Axis
but when  I type in MDI and click Start cycle  Click 5 time it's do 1 time or nothing anything.
why ?

Code: [Select]
function m108()

local inst = mc.mcGetInstance()
local rc = 0

rc = mc.mcAxisHome(inst, 5)
end

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

7
Hi
I want create macro for wait signal input for do next step.
But I don't know how to use about

mcSignalWait
and
mcSignalHandleWait

Asis

8
Mach4 General Discussion / Re: Macro start and wait signal for stop
« on: October 31, 2020, 03:44:32 AM »
Code: [Select]
function m100()

--local inst2 = mc.mcGetInstance()
--local hsig2 = mc.mcSignalGetHandle(inst, mc.ISIG_INPUT0)

local inst2, hSig2, rc2
inst2 = mc.mcGetInstance()



local inst = mc.mcGetInstance()
local hsig = mc.mcSignalGetHandle(inst, mc.ISIG_INPUT0)
local spinstate = mc.mcSignalGetState(hsig)



hSig2, rc2 = mc.mcSignalGetHandle(inst2, mc.OSIG_OUTPUT23) -- Get handle for output 1
   rc2 = mc.mcSignalSetState(hSig2, 1) --turn on output 1
if (rc2~= 0) then --Check our return call
mc.mcCntlSetLastError(inst, "There was an error")
end





if (spinstate == 0 ) then
mc.mcCntlSetLastError(inst, "5555566")
 --mc.mcSignalSetState(hsig, 0)
else
  mc.mcCntlSetLastError(inst, "123")
  --mc.mcSignalSetState(hsig, 1)
end
end
 
if (mc.mcInEditor() == 1) then
    m100()
end

this is my code.
now I can
- use OutputSignal23 for active
- Use If (spinstate == 0 ) then....

it'sworking.
I want change If (spinstate == 0 ) then   to  while signal Input0 active then Stop signal output23   how to code for while loop ?
Thank you.

9
Mach4 General Discussion / Re: Macro start and wait signal for stop
« on: October 31, 2020, 03:41:03 AM »
This might help.
The newest is the 3rd post from the bottom.

https://www.machsupport.com/forum/index.php?topic=43260.msg279695#msg279695


Bill

Thank you MR.Bill I read your PDF it's good for newbie.

10
Mach4 General Discussion / Macro start and wait signal for stop
« on: October 30, 2020, 06:07:38 AM »
Hi I'm Asis
I'm newbie use mach4.
I feel hard macro script for mach4 I ever use mach3.

Now I want for create  macro
Active Output1 for start motor ,
Then
Wait for Signal_Input2  for stop signal Output1

Please help me for explained step for create macro or example code .

Thank you.
Asis



function m100()

--active sigoutput1
--wait input2 time 10 second
--setstate sigoutput1 turn off

if (mc.mcInEditor() == 1) then
 m100()

end

Pages: 1 2 »