Equivalent of L-x for motor 2?

9 views
Skip to first unread message

cmus...@gmail.com

unread,
Feb 20, 2015, 6:49:25 PM2/20/15
to velmex-...@googlegroups.com
Hello,

I have a pair of BiSlides with VXM motors that I'm trying to program to perform a raster scan. The program I wrote is as follows (with user inputs indicated in parentheses):

F,C,S1M600,S2M600,I1M-0,IA1M-0,I2M-0,IA2M-0,I2M(# of steps to initial position),I1M(# of steps to initial position),LM0,I2M(# of steps/interval),P30,L(# of motor 2 intervals),I1M(# of steps/interval),L-(# of motor 1 intervals),I1M-0,I2M-0,R

The issue seems to be that I want motor 2 to be the one that reverses direction after each increment of motor 1 but according to the documentation, the command L-x loops to the marker and alternates the direction of motor 1 indices. Is there a command that does the same for motor 2?

Second question:
Eventually, instead of the 3 second pause (P30), I would like to replace this part of the program with code that will take a measurement then continue with the scan. The measurement would be an instrument on another serial port, and I would want the scan to wait for an "ok" from the other serial port to continue. Can you suggest the best way to do this?

Thanks so much!
Chris

Mitchel Evans

unread,
Feb 21, 2015, 8:42:54 AM2/21/15
to velmex-...@googlegroups.com
Chris,

If you have a computer attached to the VXM all the time you would be better off to run the VXM in a direct mode using a BASIC program or whatever program language you are most proficient at.

By direct mode I mean a one move run instead of all the moves stored in the VXM like you are doing.
For example:
C,I2M800,R
(wait for "^" from VXM)
(wait for done signal from measurement instrument)
C,I1M1000,R
(wait for "^" from VXM)
(repeat above # times for loop)



Best Regards,

Mitch Evans
Velmex, Inc.
"Positioning Systems for Science and Industry"





--
You received this message because you are subscribed to the Google Groups "Velmex Controls" group.
To unsubscribe from this group and stop receiving emails from it, send an email to velmex-contro...@googlegroups.com.
To post to this group, send email to velmex-...@googlegroups.com.
Visit this group at http://groups.google.com/group/velmex-controls.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages