Hello Guest it is March 29, 2024, 04:38:24 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 - DazTheGas

261
Mach4 General Discussion / Re: Getting started with Mach 4
« on: February 24, 2017, 11:24:11 AM »
The spindle controller that comes with the SWM3D kit is exactly what it says not a VFD, it requires a pwm signal between 3.5-12V / 1K-10KHZ (12v giving you the full 12000 rpm)

DazTheGas

262
Mach4 General Discussion / Re: Simulate Probe Strike
« on: February 20, 2017, 04:58:29 PM »
You are missing the mc in front of ISIG_PROBE


Code: [Select]
local inst=mc.mcGetInstance()
local hSig=mc.mcSignalGetHandle(inst,mc.ISIG_PROBE)
       mc.mcSignalSetState(hSig,1)

DazTheGas

263
Mach4 General Discussion / Re: DEMO MODE - ISSUE WITH COUNTS PER UNIT
« on: February 20, 2017, 10:58:46 AM »
Not sure if your running lathe but this from steve might help.

http://www.machsupport.com/forum/index.php/topic,34274.msg237068.html#msg237068

DazTheGas

264
Mach4 General Discussion / Re: Change in Value Event
« on: February 16, 2017, 11:39:29 AM »
Possibly the simplest way

Code: [Select]
-- screen load script
inc = mc.mcJogGetInc(inst, 0) -- change to whatever axis

--PLC Script
if mc.mcJogGetInc(inst, 0) ~= inc then
-- Do something here when inc changed
inc = mc.mcJogGetInc(inst, 0) -- same axis as in screen load script
end

DazTheGas

265
Mach4 Videos / Mach4 Quicky #7 - Lua Script Error Finding
« on: February 13, 2017, 04:22:37 PM »
Just as it says, where do you look to find the Lua Compilation Errors

https://youtu.be/wlYsRPjdnig

DazTheGas

266
Not sure I understand what you mean, its sunday for me now ;-)

DazTheGas

267
Mach4 General Discussion / Re: Help setting up functions for keyboard.
« on: February 12, 2017, 02:32:16 AM »

268
Perhaps this will shed some light, an uncut forum answer video. ;-)

https://youtu.be/c3wUS4LjuCA

DazTheGas

269
Just had a quick look and your right, it appears that the screen load script has loaded and finished before the label is created, will have to go in plc, change the 2 to suit or just remove for the lbl to const update.

Code: [Select]
if testcount == 2 then
local cvMode = mc.mcProfileGetString(inst, 'CVFeedrate', 'CVMode', 'G64')
scr.SetProperty('lblCVMode', 'Label', cvMode)
end

DazTheGas

270
Actually in the screen editor its called static text.