Hello Guest it is April 19, 2024, 12:00:14 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.


Topics - Tony Bullard

Pages: « 1 2 3 4
31
VB and the development of wizards / GoTo Statment?
« on: June 27, 2011, 08:42:23 AM »
I’m trying to set up a branching statement in a Macropump. I’m testing the following code in the VB Script Editor. I get this error message when executed: “Error on line 7- Label not defined” If I put the Label before the GoTo statement it will branch.

Dim torch As String
torch = isoutputactive(output1)
If torch = "true" Then
MsgBox "   Back to manual control "
   
   GoTo test
   
End If
Print torch
test:
Print "Ended"   

The following from VB-Script-commands.pdf.

"Cypress Enable has complete process control functionality.  The
control structures available are Do loops, While loops, For loops,
Select Case, If Then , and If Then Else.  In addition, Cypress Enable
has one branching statement:  GoTo. The Goto Statement branches to
the label specified in the Goto Statement.
 
Goto label1
  .
  .
  .
 
label1:
 
The program execution jumps to the part of the program that begins
with the label "Label1:". "

Also is using Subs good practice in a Macropump.
I would appreciate a copy on someone’s macropump code that has Lables and Subs in it.
Thanks for any help in advance.
Tony


32

In Ports and Pins / Output Signals I’ve got Output #1 enabled on port 1, pin 16 and have tried both Active Low and High.

I’ve run the following code from the VB Script Editor and a macro with the same results. The spindle LED lights and Output1 lights on the Diagnostic page. I can never get IsActive(OUTPUT1) to change state. It is always returns inactive or false. Any suggestions would be appreciated. Thanks, Tony

ActivateSignal(OUTPUT1)
Test = IsActive(OUTPUT1)
If IsActive(OUTPUT1) Then
 Message "OUTPUT #1 input is active"
Else
 Message "OUTPUT #1 input is inactive"
End If
Print Test

33
VB and the development of wizards / VB in Mach3 version 3.043.036?
« on: June 12, 2011, 04:04:03 PM »
In the Change Log (May 2-2011) a lot of VB script changes were made. "Lots opf VB tools added for managing scripts (Check VB doc for added calls)". Is the VB doc in reference the "VBScript Command Reference" file in the Download Documents? Is Poppa Bear's doc "UPDATE to Mach Specific VB routines:" completely compatible with this change? I can't seem to get his "CodeSingle()" to work.

Thanks for any help.
Tony

34
General Mach Discussion / Bug in Version Update?
« on: April 14, 2011, 08:43:43 AM »

I’m testing and comparing angular and rotary G-Code in Mach3 Version R3.042.029 and the newest, ? , R3.043.022. In the later the Program Run Time Estimates are exactly twice that of the earlier version and that calculated. Here are the Criteria. 5” diameter work piece calculated to be about 15.7” in circumference. Feed rate = 15.7” per minute. Command = G01 A 360. I understand that to be one full turn. The new version estimates that command to take 2.00 minutes. I calculate it to take one. I believe the new version is using the A Diameter DRO as a radius in its calculations. Attached are screen shots of my settings from both versions. Am I misunderstanding things or is there an error? Thanks for any input.

Tony

35
General Mach Discussion / New program for pipe coping
« on: January 08, 2011, 11:07:55 AM »
I am writing a VB stand alone program to write g code to cope or notch pipes with a rotary axis plasma machine. I've attached a file (I think) to explain how it works. I don't have a machine up and running yet for this application and would like to try it on some Ginny pigs like you guys-- LOL. If you would send me the parameters for your jobs I will send you a g code file to try. After reading the attachment I'd appreciate any suggestions or comments on how I can make this better. Once I get it working I'd like to make a Mach wizard out of it.

Thanks,
Tony

36
General Mach Discussion / Relay for TTL signals?
« on: October 24, 2010, 10:08:47 AM »
I’m switching my plasma machine software to Mach3. I have a stand alone torch height controller that sends 5V TTL step and direction pulses to my driver while the torch is active. I’m using a cheep Radio Shack double pole double through relay to switch the Z signals between software and height controller. It appears to be working fine. Is there a better relay for TTL switching or is some kind of solid state switching better? And if so could you send me the info. Thanks for any help.

Tony


37
I’d like to have a button (switch) attached to an I-PA C keyboard emulator initiate an OEM trigger to call a macro. How do I use the OEM code 301 to call the macro? Any help or an example would be greatly appreciated. Thanks, Tony

38
General Mach Discussion / Jog while in feed hold?
« on: January 24, 2009, 01:11:03 PM »
In the users guide for Mach3Mill (Mach3Mill_1.84.pdf) it states I should be able to, after a feed hold command in a running program, jog to a position to change a broken tool etc. and when Cycle Start is hit the machine should return to the stopped position and restart. My software will not allow these moves. I get a Message “Note: Cycle pause in effect. No Jogging or reverse!!” Do I have something set up wrong?

Thanks for any help.
Tony


Pages: « 1 2 3 4