Hello Guest it is April 28, 2024, 12:16:16 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 - Bill_O

161
If the one you want to use worked then yes just copy it.

162
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 14, 2021, 08:47:16 AM »
 "mcInEditor"
that section lets you run the code while in editor
it is for macros

 "mc.mcCntlSetPoundVar (inst, mc.SV_HEAD_SHIFT_Y, YShift)"
this one thing added in Mach4
it lets you use multiple heads
it shifts the home position

163
Mach4 General Discussion / Re: mach4 m6 macros
« on: October 13, 2021, 10:32:49 AM »
What is M998?

164
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 13, 2021, 10:26:22 AM »
This is the only part that is the code.

  function m # ()
      your code
  end
  if (mc.mcInEditor () == 1) then
       m # ()
  end

165
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 08, 2021, 10:29:42 AM »
Who put it in?
Who it putting in the code?

If you are doing it this might help some.
Use the one from 6_22_2020 part way down.
https://www.machsupport.com/forum/index.php?topic=43260.msg279695#msg279695

166
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 08, 2021, 07:16:21 AM »
Really?
You take out the button that moves things and it doesnt work any more?

Look, you have an error in the code.
Take out the button and see if the error goes away.
Then we can work on getting the button back in correctly.

167
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 07, 2021, 10:33:29 AM »
Delete the button and see if you get the same error.

168
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 06, 2021, 05:49:04 PM »
I do not think the error is from the button.
It looks like it is saying the problem is at line 239.
The script you posted does not have 239 lines.
I do not know what the problem is.

169
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 06, 2021, 05:14:45 PM »
you might need to put "10" or '10'
mc.mcCntlSetPoundVar(inst, mc.SV_HEAD_SHIFT_Y, "10")
mc.mcCntlSetPoundVar(inst, mc.SV_HEAD_SHIFT_Y, '10')

or just change this mc.mcCntlSetPoundVar(inst, mc.SV_HEAD_SHIFT_Y, 10)
to this
YShift = 10
mc.mcCntlSetPoundVar(inst, mc.SV_HEAD_SHIFT_Y, YShift)

170
Mach4 General Discussion / Re: How to use USB camera with Mach4
« on: October 06, 2021, 08:58:45 AM »
Use the head shift feature

You will need to write some code.
This is for the Y axis;
mc.mcCntlSetPoundVar(inst, mc.SV_HEAD_SHIFT_Y, TKOSftYVal)
TKOSftYVal is just a variable.