Hello Guest it is March 28, 2024, 04:30:33 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 encryption Macro Mxx.mcs
« on: March 05, 2023, 03:12:59 AM »
Hi,
when you write a macro it is saved as *********.mcs ie Mach Source, then it gets compiled to *********.mcc, ie Mach Compiled.

Compiled code is what actually runs but is not human readable.

If you want to secure a macro, write and save it per normal. Once its compiled and running then remove the *********.mcs and whatever ********* backup files
there are. That would mean there is no user readable code left on the PC.

Craig

Thank you, MR. Craig
I try your answer, open mach4 --> open edit script --> go profile folder macro then check in folder have m6.mcs and m6.mcc.

Then I try remove m6.mcs  only.
I try ENABLE Mach4 and type in MDI
T6 M6
T7 M6

My machine not do anything .

I go restore M6.mcs file and try type same MDI , My machine can Toolchange.

What I'm wrong process ?

Thank you,
Asis

2
Mach4 General Discussion / How to encryption Macro Mxx.mcs
« on: February 26, 2023, 09:05:34 AM »
Hi
I want encryption some Macro How to ?
normally macro  Mxx.mcs  how to encryption it's and mach4 can call to use it's

Thank you.
Asis

3
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

4
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.

5
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

6
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 ?

7
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 ?

8
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

9
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

10
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.

Pages: 1 2 »