Hello Guest it is April 26, 2024, 08:45:47 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 - dude1

791
Mach4 General Discussion / Re: Lua Signal Table
« on: May 18, 2015, 03:45:51 PM »
yep found that the call not working now

if (SignalTable[001] ~= nil) then
SignalTable[001](on_off)
end

it cant find the table

792
Mach4 General Discussion / Re: Mach4 & ESS Setup Problems -
« on: May 18, 2015, 03:43:38 PM »
change your speed table to 0 15000, 15000,20000, 20000,24000 if you have it like that what happens when you call M3 S 15000 or M3 S20000 or M3 S25000

793
Mach4 General Discussion / Re: Lua Signal Table
« on: May 18, 2015, 06:04:21 AM »

changed to this seems to work
SignalTable = {001,    --sig table number goes here I think
     [mc.ISIG_INPUT0] = function (on_off)
        if (on_off == 1) then
            mc.mcCntlCycleStart(inst)
        end
    end

then for this bit
if (SignalTable[001] ~= nil) then
SignalTable[001](on_off)
end

it cant find the input

also the editing is a bit out in the manual

795
Mach4 General Discussion / Lua Signal Table
« on: May 18, 2015, 02:55:20 AM »
I have run into a problem with signal tables from the scripting manual in it it has the sig table like this

SignalTable = { -------sig table number goes here I think without {
     [mc.ISIG_INPUT0] = function (on_off)
        if (on_off == 1) then
            mc.mcCntlCycleStart(inst)
        end
    end

I keep get a error this

Compilation error on line number: 54
Lua: Syntax error during pre-compilation
[string "C:\Users\Daniel\AppData\Local\Temp\le6115.mcc..."]:54: unexpected symbol near '['



I have searched but cant find anything to help I used this and it work`s

if (sig == mc.ISIG_INPUT1) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end

796
Mach4 Videos / Re: Mach4 - Arduino and Touchscreen
« on: May 17, 2015, 06:32:37 PM »
the M4 scripting manual is under manuals in the web site

797
Mach4 Videos / Re: Mach4 - Arduino and Touchscreen
« on: May 17, 2015, 07:19:56 AM »
Well done. Both the interface and the video.

The first time I had occasion to mess with the keyboard plugin was in the current 2441 release and it is broken  :(     however, I read that the plug-in from the prev version can be brought forward and it works. Have not tried that yet, yes you can Daz sent me copy from the last version it fixes the problem its in the last place we spoke

but I have noted that the pre-defined jog entries on the setup screen do not include an explicit JogOFF command, so it must be built in to a macro that is actually what the plug-in is calling.
that was talked about in the mach yahoo page


That might explain a user report that MACH4 will imitate a jog while disabled, but the jog does not stop. That would be a nasty bug indeed. Are you experiencing this?
the M4 scripting manual has the correct code to stop that happening with a external button with a small change when I have it bang on I will post it I don't get my machines computer back to the end of the week Daz have you worked it out save me re-posting

798
yep thank whats in the manual is for a external switch not keyboard should of checked before I posted

799
the answer is in the Mach4 scripting manual

800
Mach4 General Discussion / Re: X-axis reverse not working
« on: May 17, 2015, 03:57:05 AM »
in all plugins what are available you set the high and low in them in M4 you don't set any high or low states you just map a input, output and motor what means a tick and a number or a tick and what it is.

look to dazthegas, art and hoss on youtube for how to set up a machine in M4 different controllers yes but the way things are set up are the same when it comes to M4 and most things in the controller plugins are called the same thing.

https://www.youtube.com/channel/UCOy_xGRn5Uq3-u_LgNFzNNw

https://www.youtube.com/channel/UCzuCa2eJKWliRthn908bHaA

https://www.youtube.com/user/hossmachine/videos