Hello Guest it is April 19, 2024, 09:37:32 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 - rrc1962

11
Mach4 General Discussion / Stop CV on Angles?
« on: October 30, 2017, 04:19:19 PM »
Does Mach4 have anything similar to Stop CV On Angles like Mach3 had?

Thanks

12
Mach4 General Discussion / PLC Script and global variables
« on: June 28, 2017, 05:51:20 PM »
Here's what I'm trying to do...

CurrentPosX = mc.mcCntlGetDistToGo(inst, 0)
CurrentPosY = mc.mcCntlGetDistToGo(inst, 1)

if CurrentPosX > LastPosX and CurrentPosY > LastPosY then
   --Do something
end

LastPosX = CurrentPosX
LastPosY = CurrentPosY


So the question is...If I put global variables LastPosX and LastPosY in the screen load script, will they be visible to the PLC script?  Or...Will LastPosX and LastPosY retain their values from scan to scan?  For instance, if I set LastPosX to 4.123, will it be nil on the next PLC scan or will it still be 4.123.

Thanks



13
Mach4 General Discussion / Re: Execute function with key press
« on: June 01, 2017, 11:26:46 PM »
Never mind.  Stupid mistake.  You have to enable keyboard inputs for keyboard inputs to work. :)

14
Mach4 General Discussion / Execute function with key press
« on: June 01, 2017, 10:45:08 PM »
Here's what I've tried without much luck.  In the keyboard Inputs plugin, I created a new row as follows...

InputName: CycleStart
Key: Numpad 7[103]
Shift: X
Alt: X
Cntl: X
Lock Key: None
Function: None

Then in Mach4 setup, Input Signals, I enabled Input1, set the device to Keyboard and Input Name to CycleStart, which appears on the drop down list of input names.

When I press the assigned key, nothing happens.  I'm looking at the inputs in diagnostics to confirm.  I'm thinking I need to select a real function in keyboard inputs plugin.  How do you add a function so it appears on the list of functions?  All of the functions that appear seem to be al about jogging.  I need to add a custom function to the list...I think...Unless there is another way to get a key mapped to an input.

My plan was to map a key to an input then look for the input trigger in the Signal Script.

Thanks

15
Mach4 General Discussion / Re: Ethernet modbus via wifi
« on: May 27, 2017, 08:20:49 AM »
All of that considered though, is it possible?  Or does Ethernet modbus require a wired connection?

16
Mach4 General Discussion / Ethernet modbus via wifi
« on: May 26, 2017, 11:02:24 PM »
Has anyone tried connecting to Mach3/4 via modbus using wifi?  Technically, it should work just like wired connection.  Just wondering if there is something about it that would required a wired connection.

17
Mach4 General Discussion / Re: Mach3 upgrade to Mach4
« on: May 25, 2017, 11:49:42 AM »
None of the VB Script macros or button scripts in M3 will work in M4.  There are really no parallels between the two.  The ease of transition depends on how proficient you are with the Lua programming language.  All scripting in M4 is done in Lua.  You can take your VB Script code and re-write it in Lua.

On a positive note, the screenset building tools are much better in M4.

18
Mach4 General Discussion / Re: Reverse Run
« on: May 24, 2017, 08:39:10 AM »
No, reverse run like why was available;able in M3.  When activated, it runs the tool path in reverse.  Anyway, tech support says this feature is not available in M4.

19
Mach4 General Discussion / Jog Speed
« on: May 18, 2017, 09:51:29 PM »
Is there a way to slow the jog speed down on just one axis?  I need the rapid speed where it is on all axes, but jog speed on the Z axis needs to be 50%.  X and Y needs to stay at 100%. 

20
Mach4 General Discussion / Re: Multiple Probes
« on: May 18, 2017, 02:02:32 PM »
Daz...

You wouldn't happen to know anything about Reverse Run in M4 would you?