Hello Guest it is April 23, 2024, 08:36:57 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 - arhimedoffs

Pages: « 1 2 3 4 »
21
Mach4 General Discussion / Re: Mach4 MQTT Client
« on: March 15, 2018, 08:13:42 AM »
Hi, Its not a problem. You PLC code part not long, there is not blocking network functions (just check MQTT.Utility.socket_receive for shure). PLC script executes, by default, at 50 ms intervals. There is no critical functionality for machine, just some UI background and support checks. If 50 ms is not enough for MQTT - then try increase it.

22
Mach4 General Discussion / Re: Debugging Lua code...
« on: March 13, 2018, 01:21:59 PM »
Final problem description:

* Open "Operator -> Open Script Editor" and open script
* run or debug any simple script
* mc.mcGetInstance return 2304
* any other function return mc.MERROR_API_INIT

23
Mach4 General Discussion / Re: Debugging Lua code...
« on: March 13, 2018, 12:51:16 PM »
I understand this, but now I have MERROR_API_INIT as result code. Debugging was fine with mcLuaEditor, but with ZeroBrainStudio from latest releases - something wrong.

24
Mach4 General Discussion / Re: Debugging Lua code...
« on: March 13, 2018, 12:43:21 PM »
When I try "Operator -> Open Script Editor" and open script, then inst return non 0 (2304), but other functions still return -17

25
Mach4 General Discussion / Re: Debugging Lua code...
« on: March 13, 2018, 11:58:52 AM »
Integration ZeroBrain is great job!
But now I have some trouble with debugging. I start "Edit/Debug script" from menu and open M6.mcs from demo profile. But when I try to debug script, or just run it, this part of code return strange result

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

print

0
-17
-17

Whats mean of -17 result code, and what I do wrong?

26
Mach4 General Discussion / Re: Jog steps
« on: March 11, 2018, 11:43:21 AM »
And about builds. Latest build from site 3481, but on ftp much more fresh. What about stability and practical usage of newer builds, any experience?

27
Mach4 General Discussion / Re: Jog steps
« on: March 11, 2018, 11:37:46 AM »
Thanks, good resource for some reading.

28
Mach4 General Discussion / Re: Jog steps
« on: March 10, 2018, 11:44:26 AM »
Great thanks for trick! It work and I will use it. (One more variant - call G21 via MDI execute from same script, but it slower).

29
Mach4 General Discussion / Re: Jog steps
« on: March 10, 2018, 09:43:09 AM »
There is nothing about mcJogSetUnitsMode. And some other functions not described, but exists in Lua interface.

30
Mach4 General Discussion / Re: Jog steps
« on: March 10, 2018, 09:20:25 AM »
As I found, my code change SetDefaultUnitsOnStart from 1 to 0. What can cause this change?

Pages: « 1 2 3 4 »