Hello Guest it is January 26, 2021, 07:25:40 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 - arhimedoffs

Pages: 1 2 3 4 »
1
Mach4 General Discussion / Re: Toolpath drawing style
« on: March 25, 2018, 01:47:50 AM »
Thank you! I will try.

2
Mach4 General Discussion / Re: Notify on close
« on: March 25, 2018, 01:47:19 AM »
Thanks!

3
Mach4 General Discussion / Re: Lua file operations
« on: March 24, 2018, 10:24:23 AM »
Just correct
Code: [Select]
inst = mc.mcGetInstance()
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)

local stuff="--one,two,three"

local filetoget=path .. "\\testfile.csv"

io.output(io.open(filetoget,"a+"))

io.write(stuff)
io.close()

* local not requied, but recommended, instead global variable created

4
Mach4 General Discussion / Toolpath drawing style
« on: March 24, 2018, 07:03:07 AM »
Any information, how I can configure line width on toolpath object? My problem - line too thin and mostly invisible even white on black.

5
Mach4 General Discussion / Notify on close
« on: March 24, 2018, 07:00:27 AM »
There is dialog window on Mach4 close, which ask confirmation. All great, but one person check option "Do not notify again". How I can reset this option?

6
I also simple edit XML file in *.set archive. And all if fine. I think this feature has not demand. Main problem - in standard sets there is binding to tab number )

7
Mach4 General Discussion / Re: Lua interpreters
« on: March 20, 2018, 02:42:02 PM »
This is very strange. I use script
Code: [Select]
function m101()
    if not ew.isMachineInSpotMode() then
        ew.onIncorrectCommand()
        return
    end
    ew.sigVars['tbToUp'] = 1
    repeat
        wx.wxMilliSleep(100)
    until (ew.sigVars['tbIsUp'] == 1) or not ew.isWorking()
end

if (mc.mcInEditor() == 1) then
    m101()
end
This script turn on table up valve and wait upper position responce. And it work! No freeze UI and it realy wait table upper position or machine stopped. If I disconnect position switch it wait infinitely, and UI responce OK.

8
Mach4 General Discussion / Re: Lua interpreters
« on: March 20, 2018, 01:55:22 PM »
Quote
yes there are two Lua chunks at runtime, of course only one can run at a time.
- why only one at a time? Does this mean that M command execution freeze PLC script? As I assume this two interpreters run in separate threads, one - for UI and PLC staff, other - machine interpreter (MDI or File).

9
Mach4 General Discussion / Re: Enabling motor from script
« on: March 20, 2018, 05:14:24 AM »
Ok, I will try it

10
Mach4 General Discussion / Re: Machine Enabled state
« on: March 20, 2018, 12:31:06 AM »
Thank you!

Pages: 1 2 3 4 »