In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rmayhew wrote: First off when simulating RD.0 needs to be toggled on to avoid jumping to the serial in. Second is to reduce the speed(in a simulation a 1 would be good) The motors are located at H8000 a home position. A full circle is 62832 (radians would be 2 PI or 6.2832) and a max length is 62832 for a full circle. example: a start angle of PI in a standard coordinate would be 180 degrees and a length of 62832 (2 PI = 360 degrees) would rotate about an XY cordinate 2 PI radians (360 degrees) which is a full circle. The radius is circle size. Load the desired values into the sDataVarB90 variables ( program shows the order ) Last fill in the ASCII code for the type of move in the 0 byte of sDataVarB90 and the 13 byte sDataVarB90, run it. Play with the interupt to get the best simulation, takes time. A linear move is the easiest. when the microcontroller finishes a move it transmits a move complete (Handshake). 38400 is the serial and a MAX232 5 volt is the converter. I've got the Z axis off revamping the mechanics. How fast will it go? 1920 pulses = inch ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=223702#m224075 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)