Hello Guest it is April 25, 2024, 02:54:53 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 - Tony Bullard

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »
141
Thanks djc,
so your saying Isactive() only checks the the state of INPUT signals and not output or leds?

Tony

142

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

143
Thanks Tweakie, I was just playing with it and you are right.

Maybe Brian could add the "C" and "B". It makes for good switch sensing

144
Another way to insure the scribe is up before moving is to use a limit switch at the up stroke of the air cylinder wired as a probe.

Your code here to activate the solenoid
G91
G31 C2 f30      'G31 = straight probe move
   While ismoving()
                                      'Sleep 100
Wend
G90

This will wait until the switch makes and then return to the program.

Just checked this out. G31 only works with X, Y and Z

145
Another way to insure the scribe is up before moving is to use a limit switch at the up stroke of the air cylinder wired as a probe.

Your code here to activate the solenoid
G91
G31 C2 f30      'G31 = straight probe move
   While ismoving()
                                      'Sleep 100
Wend
G90

This will wait until the switch makes and then return to the program.

146
Just a crazy plane I haven’t tried. Set up an axis that you aren’t using and command a short move.

Instead of G04---
use something like
G91
G01 C .5 F10
G90
Then adjust the distance and feed rate to get your time.

Tony

147
Thanks Dave, I'm impressed with how well you answered my questions. You've done a great job with the Programmer's Reference too. The old one I had was from 8-22-2010. I've copied you sub to handle the "wait" problem. pretty clever.

Keep up the good work.

Tony

148
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

149
Thanks Hood. I was staring right at it for twenty minutes and never saw it.

Tony

150
Thanks Hood. Where can I find the option? I don't see it in general Logic Config or Ports and Pins or Motor Tuning.

Tony

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »