stepper 1063 strange velocity/acceleration

Supporting Max/MSP versions 6 and up
pelang56
Phidgetsian
Posts: 9
Joined: Sun Jun 27, 2010 5:46 am
Contact:

stepper 1063 strange velocity/acceleration

Postby pelang56 » Fri Jul 16, 2010 5:44 am

hi

I using the 1063 driver with max 4.6.3 in osx 10.4.11

if i open the help patch things are fine. as soon i tweek the velocity or acceleration i losing stepps and the motor start behaving strange

the same help-patch works perfekt with the 1062 drive !

Is there a specific help patch for the 1063 driver ?

thanks, pe

User avatar
Patrick
Lead Developer
Posts: 3064
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: stepper 1063 strange velocity/acceleration

Postby Patrick » Fri Jul 16, 2010 8:39 am

Sounds like you may need to set the current limit.

-Patrick

pelang56
Phidgetsian
Posts: 9
Joined: Sun Jun 27, 2010 5:46 am
Contact:

Re: stepper 1063 strange velocity/acceleration

Postby pelang56 » Fri Jul 16, 2010 12:09 pm

hi Patrick,

Thanks, but even if i set the current quit high its still strange.

as example, some values play quite well togehter:

setAcceleration 0 91664
setVelocity 0 7684

guess that are not the correct ranges but it works.

what is the min max values of those parameters, also of the current limit ?
i guess there are not the same lile the 1062 (which work fine with the help patch)

best ,pe

pelang56
Phidgetsian
Posts: 9
Joined: Sun Jun 27, 2010 5:46 am
Contact:

Re: stepper 1063 strange velocity/acceleration

Postby pelang56 » Fri Jul 16, 2010 12:25 pm

it's just because the 1062 is working perfect. i even did some cnc cutting for houres without any problems.

for me it looks llike that the help patchen have not the right values on the sliders.

i need to make more test to say more..

thanks, pe

Robert

Re: stepper 1063 strange velocity/acceleration

Postby Robert » Fri Jul 16, 2010 12:45 pm

Can you elaborate on how the motor is losing steps exactly? Does the motor stop moving? Does the motor jump around randomly (possibly reversing direction)? What kind of motor is it? 4 wire bipolar, 6 wire bipolar, etc.

User avatar
Patrick
Lead Developer
Posts: 3064
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: stepper 1063 strange velocity/acceleration

Postby Patrick » Fri Jul 16, 2010 12:45 pm

Yes, you'll definitely want to set the values to your application - the .help patch is just an example, and it's tuned to a 1062. If acceleration is too high your stepper will stall/skip steps. Also make sure the current limit is right, too high or too low can cause skipping. You can find the min/max values for current limit, acceleration and velocity in the product manual.

-Patrick

pelang56
Phidgetsian
Posts: 9
Joined: Sun Jun 27, 2010 5:46 am
Contact:

Re: stepper 1063 strange velocity/acceleration

Postby pelang56 » Sat Jul 17, 2010 2:50 pm

hi Patrick,

Thanks for your help !

I track down the problem: you was right, it was a current problem. didn't know that if the setting is to high it can couse problems as well.

btw: would you go for usb2 to drive 8 1063 ?

in case: here is a help patch for the 1063 driver

thanks, pe


max v2;
#N vpatcher 318 60 988 624;
#P origin 2 -15;
#P window setfont "Sans Serif" 9.;
#P number 456 295 75 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 454 175 52 9 0 32768 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 456 236 52 9 4000 1020000 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 499 410 51 9 0.0542 2.592 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 116 367 71 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 499 432 106 196617 setCurrentLimit 0 \$1;
#P comment 188 370 82 196617 Current sense;
#P number 16 380 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 17 435 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 17 408 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 16 351 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 16 309 76 196617 unpack 0 1 2 3;
#P user hslider 478 361 18 128 20000 1 -10000 0;
#P message 478 385 119 196617 setCurrentPosition 0 \$1;
#P number 116 309 71 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 116 347 71 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 116 328 71 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 310 355 15 0;
#P number 33 201 71 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 310 385 83 196617 setEngaged 0 \$1;
#P user hslider 308 294 18 128 20000 1 -10000 0;
#P message 308 323 84 196617 setPosition 0 \$1;
#P user hslider 309 235 18 128 1020000 1 4000 0;
#P user hslider 308 174 18 128 32768 1 0 0;
#P message 309 265 100 196617 setAcceleration 0 \$1;
#P message 308 204 85 196617 setVelocity 0 \$1;
#P number 355 115 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 355 136 95 196617 setSampleRate \$1;
#P message 391 83 26 196617 stop;
#P message 356 83 33 196617 start;
#P message 183 80 30 196617 read;
#P window linecount 3;
#P comment 218 63 117 196617 Read once using read \, or at a set rate with start/stop and setSampleRate;
#P window linecount 1;
#P comment 348 64 112 196617 Default rate is 100ms;
#P comment 396 116 36 196617 in ms;
#P window linecount 3;
#P comment 221 112 109 196617 sample rate = -1 will update the outputs only when they change;
#P window setfont "Sans Serif" 18.;
#P window linecount 1;
#P comment 10 12 224 196626 PhidgetStepper 1063;
#B frgb 21 56 9;
#P window setfont "Sans Serif" 9.;
#P comment 11 39 292 196617 Controls a Phidget Stepper Controller 1063;
#P user panel 1 4 643 53;
#X brgb 255 247 207;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P message 27 145 52 196617 getStatus;
#P message 36 164 50 196617 getSerial;
#P message 18 126 55 196617 getVersion;
#P newex 66 245 211 196617 route input velocity position stopped current;
#P newex 121 206 78 196617 PhidgetStepper;
#P comment 188 312 82 196617 Velocities;
#P comment 188 350 82 196617 Stopped Status;
#P comment 188 331 82 196617 Positions;
#P window linecount 2;
#P comment 17 457 59 196617 Digital Inputs;
#P window linecount 3;
#P comment 479 320 134 196617 Setting current position changes the position value without moving the motor;
#P comment 5 486 100 196617 Some stepper controllers do not have digital inputs.;
#P fasten 7 0 37 0 71 287 21 287;
#P connect 37 0 38 0;
#P fasten 37 1 41 0 43 336 58 336 58 373 21 373;
#P fasten 37 2 39 0 65 402 22 402;
#P fasten 37 3 40 0 87 429 22 429;
#P fasten 7 5 30 0 271 277 18 277 18 196 38 196;
#P fasten 6 0 7 0 126 234 71 234;
#P fasten 7 1 34 0 111 304 121 304;
#P fasten 7 2 32 0 151 267 111 267 111 326 121 326;
#P fasten 7 3 33 0 191 267 111 267 111 345 121 345;
#P fasten 7 4 44 0 231 267 111 267 111 364 121 364;
#P fasten 24 0 6 0 314 290 286 290 286 195 126 195;
#P fasten 23 0 6 0 313 229 286 229 286 195 126 195;
#P fasten 8 0 6 0 23 186 126 186;
#P fasten 10 0 6 0 32 186 126 186;
#P fasten 9 0 6 0 41 186 126 186;
#P fasten 21 0 6 0 360 157 126 157;
#P fasten 19 0 6 0 361 109 341 109 341 157 126 157;
#P fasten 20 0 6 0 396 109 341 109 341 157 126 157;
#P fasten 18 0 6 0 188 157 126 157;
#P fasten 27 0 6 0 313 344 286 344 286 195 126 195;
#P fasten 29 0 6 0 315 418 286 418 286 195 126 195;
#P fasten 35 0 6 0 483 427 286 427 286 195 126 195;
#P fasten 43 0 6 0 504 453 286 453 286 195 126 195;
#P connect 25 0 23 0;
#P connect 28 0 27 0;
#P connect 26 0 24 0;
#P connect 31 0 29 0;
#P connect 22 0 21 0;
#P fasten 25 0 47 0 313 199 539 199 539 165 459 165;
#P fasten 26 0 46 0 314 257 538 257 538 227 461 227;
#P fasten 28 0 48 0 314 313 314 314 540 314 540 284 461 284;
#P connect 36 0 35 0;
#P connect 45 0 43 0;
#P pop;


Return to “Max/MSP”

Who is online

Users browsing this forum: No registered users and 1 guest