
			SimpleSerial -- Freeware
			Written by: James Young
			Email: jimc495@yahoo.com
			Works with: Visual Basic, Access, Excel, Visual C++, etc...
			OS: Window 95, 98, NT, 2000, ME
				

This component (SimpleSerial.dll) will allow you to control the robotic arm from any COM
compliant language examples being Visual Basic, Access, Excel, Visual C++, etc...
You will be using a small component I wrote called SimpleSerial.dll to move the
robotic arm. I have sent an example written in Visual Basic on how to use component
to move the arm. With any microsoft program you can include the component by
adding it from the references in the menu and picking 'Simple Serial'. You may use the 
component for free with any application and please redistribute it to others for free.

**************************
Directions to try the example:
1. Run regRobot.bat by double clicking it, 
the file should be in the directory you unzipped everything from.

2. Open the Robo.vbp file and run the application.
**************************


----------------------------------------------------------------
These are all the functions you will need to control the robotic arm.

long OpenConnection(long port)
long CloseConnection
long SendCommand(long lSync, long lServo, long lPosition);
GoHome
ShowErrorMessages
-----------------------------------------------------------------

long OpenConnection(long port)
Description:  Opens a serial port, normally set to 1.
Return Value: 0 is success else the error number.

long CloseConnection
Description:  Closes serial port.
Return Value: 0 is success else the error number.

long SendCommand(long lSync, long lServo, long lPosition);
Description:  Moves the arm to a desired position
Parameters: sync --Byte is usually 255 more advanced users might need to use other numbers
	    lServo -- The servo you desire to move usually 0 - 4
	    lPosition -- The new position to move the servo to 0 - 255 can be greater. 	 	
Return Value: 0 is success else the error number.

GoHome
Description:  Moves the arm to the home position.

ShowErrorMessages
Description:  Set to true to help debug.  Otherwise set to false.

Speed is accomplished by looping, timers or some sleep methods. See my example.

If you have any trouble with the component, need more features, or a problem with 
the example please email me at jimc495@yahoo.com.
