Hello Guest it is April 17, 2024, 08:35:36 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 - Frostyybeer

Pages: 1
1
VB and the development of wizards / Re: SystemWaitFor(1005) ignored
« on: January 17, 2018, 01:04:44 AM »
Fixed it!

Code: [Select]
DoOEMButton(1005)
SystemWaitFor(1005)
While ismoving()
Wend


Cheers,
Nate

2
For the moment, I simply created subroutine,

Code: [Select]
G91
G1 X2 A-2
G1 X2 A2
M99

then call it with M98 and loop it until I get to my desired position.
This however, limited me to only straight line movement in X/Y/Z position.


Nate

3
VB and the development of wizards / SystemWaitFor(1005) ignored
« on: January 16, 2018, 06:02:22 AM »
Regarding this post https://www.machsupport.com/forum/index.php/topic,2630.0.html I am
trying to do something similar where in the beginning of my VB-script it will
1. Get current positions
2. Wait for Resume button to be pressed, once finished manual jog
3. Record NEW current positions
4. Resume the rest of code

Example
Code: [Select]
  'Get current positions
  X1 = Round (GetDRO (0), 4)
  Y1 = Round (GetDRO (1), 4)
  Z1 = Round (GetDRO (2), 4)
 
  'Wait for user to press Resume button once finished manual jog
  SystemWaitFor(1005)
  While IsMoving
  Wend

  'Get new current positions
  X2 = Round (GetDRO (0), 4)
  Y2 = Round (GetDRO (1), 4)
  Z2 = Round (GetDRO (2), 4)

  'The rest of code
   .......
   .......

However, when running this code seem to ignor the SystemWaitFor(1005).
I have created two buttons on my custom wizard screen
Button 1. Start my Script
Button 2. Is assigned to OEM 1005 (for resume)

Could it be that I am using SystemWaitFor() incorrectly?


Thank you,
Nate

4
Hello,

First off, thank you for taking your valuable time to look at my post. I am in a process of building a CNC welding machine with teach mode (simple jog to Gcode) option.
I found the solution on how to create VB script for the jog-to-Gcode part (http://www.machsupport.com/forum/index.php/topic,9972.0.html) However, after many hours of researching and trying to create my own VB script I could not figure out how to simultaneously move A-axis back-and-forth to create weave patterns along my welding path.

Something like this would be very useful in my situation:
Code: [Select]
Mnnn                    //macro to turn on "ZIG-ZAG" motion on A-axis
G1 Xx Yy Zz Ff         //Gcode created by jog-to-gcode option
Mnnn                   //another macro to turn off "ZIG-ZAG" motion on A-axis

Has anyone come across this topic or discussion posts? If you could guide me in the right direction I would greatly appreciate it. Please send help.


Bests,
NATE 

Pages: 1