Hello Guest it is April 19, 2024, 10:42:37 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 - KatzYaakov

441
Mach4 General Discussion / Re: Motion Device Grounding
« on: January 04, 2020, 05:59:48 PM »
i asked because i use to use cat7 and cat 7 already have also the ground ,so in this case its like the bridge of ground between devices that Steve advice to avoid


442
i check again all day for test i cant find any different between the files that run from api and the file that cant
only one different
the file cant run from api(i mean not run the m function only run the gcode movement) size is 17kb
the files that can run was much more smaller
is that can be that the API cant use well when i have that size files?(17Kb its not so big only 1120 lines)
thanks
yaakov

443
Mach4 General Discussion / Re: Motion Device Grounding
« on: January 04, 2020, 04:23:42 PM »
how did you connect the "PoKeys57E" i didn't see the Ethernet cable?

444
Mach4 General Discussion / Re: Motion Device Grounding
« on: January 03, 2020, 05:35:14 AM »
Tony
just interesting me why you use 57E and not the porelay cards?

445
Mach4 General Discussion / Gcode run from mach but cat run from Api c#
« on: January 02, 2020, 06:38:55 PM »
i use my interface to run mach4 from c# application by using the API
its work quit well ,until now i find one different ,from mach i can run files with Hebrew names ,but from Api must all files name only English
today i had very strange point ,one file that run without any problem from mach  ,when i try run it from Apii  ,run only the  movement
and skip over all M function
is some one had same problem?
thanks
yaakov

446
Mach4 General Discussion / real position
« on: January 01, 2020, 02:00:09 AM »
 even mach is step/dir that mean no real feedback position need from servopack
but all industrial machines  ,always show the real position ,and also check the following status
for example if driver in alarm and some one move by hand...etc..
is some one try implement that in mach?
 

447
Mach4 General Discussion / Re: Router with Dual Motor on X Axis
« on: December 31, 2019, 01:13:57 AM »
do you mean the machine not cut diagonal?
if so its not controller problem i think its noise problem
be sure shield of the servo connect directly to ground(not only 4th wire as chines do)
we even not use the gantry as master slave  ,can connect them together just one motor need change direction on servo pack


448
Mach4 General Discussion / Re: cant write to registry by Api C#
« on: December 29, 2019, 01:32:21 AM »
thanks a lot ,it work perfect

449
Mach4 General Discussion / Re: cant write to registry by Api C#
« on: December 28, 2019, 11:15:57 AM »
i try wit 3 argument  ,got same error

 [DllImport(@"C:\Mach4Hobby\Mach4IPC.dll", EntryPoint = "mcRegGetHandle")]
        public static extern int mcRegGetHandle(int mlnst, string regname,int hReg);

        private void manualloading(object sender, RoutedEventArgs e)
        {
            int hreg = 0;
             int debug= mcRegGetHandle(0, "gRegs0/auto",hreg);

        }

450
Mach4 General Discussion / cant write to registry by Api C#
« on: December 27, 2019, 08:21:35 AM »
i use the Api to control the mach by c# and its work ok
now want to improve and also write into the registry by the api
but i got error in c# while try to get the registry handle
the c# code:
[DllImport(@"C:\Mach4Hobby\Mach4IPC.dll", EntryPoint = "mcRegGetHandle")]
        public static extern int mcRegGetHandle(int mlnst, string regname);
        private void manualloading(object sender, RoutedEventArgs e)
        {   
             int debug= mcRegGetHandle(0, "iRegs0/auto");

        }
attach is the error from vs


System.AccessViolationException
  HResult=0x80004003
  Message=An attempt was made to read or write to protected memory. This condition usually indicates that another memory is defective.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>