CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Mach Mill



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-08-2009, 05:04 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road
what does mach output?

i got some answers from my last post, but still have more questions... (sorry...)

lets say I only have 1 axis for siplicity sake (X axis we'll say) and it's hooked up to pins 2 for both direction and steps, also pin 10 for data input so mach knows how many steps have been taken in actuality.

lets say the're 32 steps pr revolution, and 1 rev = 1 mm (unit)

and here is the motor tuneing:

32steps 3000velocity 21 accel 5us steppulse 2dir pulse

ok, here are the actual questions :

1) to move the motor 'forward' one revolution:
output: 5usec (on) ??usec (off) looped 32 times. (on pin2)
correct? wrong? kinda?

2) to move the motor backwards would it:
output once(on) for 2usec then continue like the forward pulses?
or would it do 2usec(on), ??usec(off) looped till amount of steps desired.
first one right? second one right? none of them right?


3) data being sent to mach, is it:
a) when pin10 is on it counts one pulse till it's off.
b) distinguish direction between 5 usec to move cw, and a 2usec pule = ccw?
c) something else?



p.s. question #2 was sorta answerd in a previus post, but reading the manual i 'think' the answer i got from the thread and the manual contradict each other... so i just want confirmination...

cheers!

Nick_B
Reply With Quote

  #2  
Old 08-08-2009, 07:52 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Nick_Black View Post
i got some answers from my last post, but still have more questions... (sorry...)

lets say I only have 1 axis for siplicity sake (X axis we'll say) and it's hooked up to pins 2 for both direction and steps, also pin 10 for data input so mach knows how many steps have been taken in actuality.
Mach can't count steps on an input pin. It can read data from an encoder and display it on the screen, but it can't do anything with it.



lets say the're 32 steps pr revolution, and 1 rev = 1 mm (unit)

and here is the motor tuneing:

32steps 3000velocity 21 accel 5us steppulse 2dir pulse

ok, here are the actual questions :

1) to move the motor 'forward' one revolution:
output: 5usec (on) ??usec (off) looped 32 times. (on pin2)
correct? wrong? kinda?
Command a 1mm move with a G0 or G1. Depending on the feedrate, Mach has to accelerate, possibly move at the feedrate (if it can be reached in that short of a distance), then decelerate. Pulses are spaced accordingly to accommodate the accel and decel. They will most likely all be spaced differently. It's far more complicated than you're thinking, I think.


2) to move the motor backwards would it:
output once(on) for 2usec then continue like the forward pulses?
or would it do 2usec(on), ??usec(off) looped till amount of steps desired.
first one right? second one right? none of them right?
Exact same thing as the other direction, with the direction pin the opposite. The direction pin puts out a constant 5V in one direction, and 0V in the other direction. The direction pulse width only comes into play during rapid direction changes


3) data being sent to mach, is it:
a) when pin10 is on it counts one pulse till it's off.
b) distinguish direction between 5 usec to move cw, and a 2usec pule = ccw?
c) something else?
None of the above. It can't do it.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 08-08-2009, 09:09 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road

1: unfortunate, but at least that way i can see if it missed steps (or added them)

2: yes, the distance between pulses i assumed to be variable depending on the speed. but also, yes i agree it is probably more complex then i think, hence why I'm trying to figure it out
btw, now I'm starting to think mach assumes the motor controller fills up missed steps in case drilling into the object being molded slows down the accel rate?

3:there is no way to control the servo in both directions on one pin? (there for making it impossible to a 5 or 6 axis with one port?)

4: unfortunate, but ok

Edit: can mach 3 use pins 1, 14, 16, 17 ?

thanks for all your help so far if you could explain it in total a bit better that would be much appreciated XD i keep designing circuits and then figuring out i need to change them because of limitations of mach.... (and I want to get it right before i start building)

thanks again XD

Last edited by Nick_Black; 08-08-2009 at 10:13 PM.
Reply With Quote

  #4  
Old 08-08-2009, 10:21 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Nick_Black View Post
btw, now I'm starting to think mach assumes the motor controller fills up missed steps in case drilling into the object being molded slows down the accel rate?
Mach send out the exact steps it needs to move to where it's commanded to move. That's all it does. It makes no assumptions, and has no idea what the drive is doing. It has no idea if the motor stalls or misses steps.



3:there is no way to control the servo in both directions on one pin? (there for making it impossible to a 5 or 6 axis with one port?)
One step pin and one direction pin per axis. There are 12 output pins per port, so you may be able to drive 6 motors, but I'm not positive.


If you could explain it in total a bit better that would be much appreciated XD i keep designing circuits and then figuring out i need to change them because of limitations of mach.... (and I want to get it right before i start building)
What exactly are you doing? Designing a drive?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5   Ban this user!
Old 08-08-2009, 10:23 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road

Originally Posted by ger21 View Post
What exactly are you doing? Designing a drive?
yes, in essence

btw, i think you missed my edit (but kinda answerd it also..)
can mach 3 use pins 1, 14, 16, 17 ?

(since you said 12 output pins, i assume that is a yes)

and thank you sooooo much for putting up with me XD
Reply With Quote

Sponsored Links
  #6  
Old 08-08-2009, 10:27 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

I believe so, but I'm not positive.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Freemill output to Mach 3? teamtexas General CAM Discussion 5 09-25-2009 06:33 AM
Will Mach Output Quadrature ? epineh Mach Software (ArtSoft software) 0 03-10-2008 05:17 AM
Does Mach support Phase output? Jcadwell Mach Mill 1 01-30-2007 05:39 PM
0-10V output control with Mach 3? fatal-exception Mach Mill 3 01-11-2007 12:39 PM
catia NC output with mach 2 cnc? hpghost General CNC (Mill and Lathe) Control Software (NC) 5 09-02-2006 12:22 AM




All times are GMT -5. The time now is 02:17 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361