Hello Guest it is April 25, 2024, 09:09:58 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 - KatzYaakov

231
Mach4 General Discussion / Re: External button "Enable"
« on: May 24, 2021, 09:39:47 PM »
Why no any help from mach team?
I also sent to mach support but same
There advice use pmm
But i need use scripts
You provide script i follow your instructions,mach crash why can't get support???

232
Mach4 General Discussion / Re: External button "Enable"
« on: May 24, 2021, 02:09:53 PM »
no,because mach crash immediately when i press the external button
i try delete all the event  script
remind only:
[mc.ISIG_INPUT0] = function (state)--external buton on
   if( state == 1) then              
                      
      local inst = mc.mcGetInstance()
      
       mc.mcCntlEnable(inst,1)
         
   end
end ,
and also the first external button press ,mach crash

233
Mach4 General Discussion / Re: External button "Enable"
« on: May 24, 2021, 01:56:17 PM »
we had good days her in forum while steeve real help ,now its look like become as past that this forum have useless?
i think i post about 5-6 post with bugs here on last month not even one got real answer
can some one please try explain me why so simple script cause mach to crash?


234
Mach4 General Discussion / External button "Enable"
« on: May 24, 2021, 12:49:20 AM »
i add an external button to enable mach4 after pc turn on

[mc.ISIG_INPUT0] = function (state)--external button on
   if( state == 1) then              
                      
      local inst = mc.mcGetInstance()
       mc.mcCntlSetLastError(inst, "but enable ");   
       mc.mcCntlEnable(inst,1)
           local Zbrake = mc.OSIG_OUTPUT9 
       local hsig1 = mc.mcSignalGetHandle(0, Zbrake)  ------servo on
        mc.mcSignalSetState(hsig1, 1)
        mc.mcCntlSetLastError(0, "servo on");
       local zb= mc.OSIG_OUTPUT1
       local zb11 = mc.mcSignalGetHandle(0, zb)  ------z brake
        mc.mcSignalSetState(zb11, 1)   
   end
end ,

i use the attach  even handler (quit simple i think)
but strange behaviour
1. if i try first time by button  mach4 crash
2. if i enable from mach interface first time ,then disable ,then by button work good
     even many times ,disable enable....ets its ok ,but s mention first time must be from mach, why?
thanks
yaakov





235
Mach4 General Discussion / XHG mpg
« on: May 09, 2021, 06:57:32 AM »
i got today the new xhg and i test them with the new plugin its work perfect
thanks
 steve
one question please,i saw in old video that there option that when program run ,the mpg act as speed control ,instead of press the buttons
feed+  feed -
do we have that option?
thanks
yaakov

236
Mach4 General Discussion / Re: Reference all axiss from M function
« on: May 06, 2021, 03:47:10 PM »
Yes exactly i want set the position
As i mentioned i found solution ,its ...
I made event ,and in screen load i care this event snd do the ref there,there bug about motor revers,if its mark then home in position randomly put value in minus

237
Mach4 General Discussion / Re: Reference all axiss from M function
« on: May 06, 2021, 02:29:07 PM »
Ill explain my self batter
I want use absolute encoder
When i turn on mach ,or even press star ,each time i check the value from encoder, cheack if its same as shuld be and run
So all yours suggest with shift not available
Why can't use the api as its wrote in manual?

238
Mach4 General Discussion / Re: set machine cordinate
« on: May 04, 2021, 05:47:12 AM »
Now im far from computer but at night ill send you what i did,and its work fine, only that bug i told you,so if motor in reverse need change on driver

239
Mach4 General Discussion / Re: set machine cordinate
« on: May 04, 2021, 05:33:43 AM »
Sure
I define "home in place"
Then i made script that read the encoder value and put it in home offset
Then i make event that this script rise
In panel load i get the event and each time its rise( mean lua update the position) its make "all home reference"
Its sound crazy but this only way its work
But there bug
If one of the motor cofig as reverse,then some times value can be minus some times plus randomly without any rules
Thks

240
Mach4 General Discussion / Re: set machine cordinate
« on: May 04, 2021, 05:04:11 AM »
Its can't done by G because its should be something not done by user
I already find away( very complex but...)but there api that should do this ,but its not work,so i think maybe some one from mach can see and tell why its not work