Hello Guest it is October 28, 2020, 01:45:35 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 - spencoid

Pages: 1
Mach SDK plugin questions and answers. / Parallax HB Motor Controller ??
« on: February 02, 2011, 02:18:31 AM »
Does anyone have a plugin to control the Parallax HB 25 motor controller for use as a spindle controller? I requires a timed pulse of from 1 (full reverse) to 2 ms (full forward) and a 1.5 ms pulse to stop.

Any other way to fake it using the PWM control with the right base frequency?

VB and the development of wizards / Re: M code macros for IO control
« on: August 14, 2007, 11:51:17 PM »
duh thanks. didn't know what the while moving did so i left it out. works fine now but there is a problem with the board config. i can get pins 2-9 to work but not the "outputs" pins 14 16 and 17. really doesn't matter because i can just use the ones that work. i am a very logical person but i can not make sense out of the PMDX manual. i could chart out the hints in the three sections that refer to configuration of the output pins and maybe it would make sense. is Steve Stallings the make of the Practical Micro Design Inc stuff? The boards that I have work fine for my mill  but this one (122)really has confusing documentation.

VB and the development of wizards / Re: M code macros for IO control
« on: August 14, 2007, 09:19:38 PM »
I started with mach3 and could not get it to work so I tried mach2 since I am more familiar with it. I switched back to mach3 and can not get it to work. Below are two macros that I have tested with. 333 works fine so I know that macros are working. Movement does not progress until I close switch 1.  222 does not change the state of output 1 no matter what I do. Even if the breakout board is not configured properly (the manual is very confusing but I have tried every combination of jumpers) output 1 should toggle in the diag mode but it doesn't. I have output 1 enabled in the pins config screen and have tried both active high and low.

'M222. this doesn't work to operate output 1
code "G00 X1 Y1"
ActivateSignal(OUTPUT1) 'Turn on relay1
code "G4 P4"            'Pause value P is seconds
DeActivateSignal(OUTPUT1) 'Turn off relay1
code "G00 X2 Y2"

'M333. this works fine
SystemWaitFor(INPUT1)       'Wait for "clear" input
code "G00 X1 Y1"

VB and the development of wizards / Re: M code macros for IO control
« on: August 14, 2007, 04:55:51 AM »
I can't figure out how to reply to the previous message so I am replying to myself.

I can not get the outputs to work. I have tried everything and have used the diag screen to see what is happening. I am running Mach2. I have the macro in the right place and have added some code to verify that the macro is running. It is running but the external outputs are not working. There is some confusion of terms in the setup screens and the documentation etc. Output is used in one place and external activation in another. I am using a PMDX-122 for testing. The outputs enabled LED is light but the jumper settings are very confusing in the instruction manual. If the syntax is correct for output control in mach2 then maybe this is not a question for the VB forum

VB and the development of wizards / Re: M code macros for IO control
« on: August 13, 2007, 11:11:05 PM »
thanks, that is pretty much what i thought was necessary but have never done this so it is great to have it from someone who knows this stuff.

VB and the development of wizards / M code macros for IO control
« on: August 13, 2007, 02:13:20 PM »
I have read everything I can find and can probably struggle for a day or two to write what I need myself but am doing this as a favor for a friend and want to shorten the process as much as possible. I need to control a simple machine that moves the x and y steppers and operates a relay or two from M codes in a G code file. Specifically I need to move to a position, turn the relay on, wait (sleep) for a period, turn it off and check the state of a switch on the machine to see if it is clear before executing the next G code. From the examples I have seen, this looks possible. I would like a macro that I can just drop in and use. If I see something that works, I can edit it as I have computer programming experience and can figure out things that I see in code. Just don't have the time to figure it all out myself.

Pages: 1