Shop OBEX P1 Docs P2 Docs Learn Events
I wish to send the following order since the PC: “! SC” C R pw.LOWBYTE, pw.HIGH — Parallax Forums

I wish to send the following order since the PC: “! SC” C R pw.LOWBYTE, pw.HIGH

stepschstepsch Posts: 5
edited 2007-03-18 22:56 in Robotics
Good evening,

Here my configuration: a chart PSC series connected on the port rs232 of my PC via a max232.

I wish to send the following order since the PC: “! SC” C R pw.LOWBYTE, pw.HIGHBYTE, $0D

I use one will xtras for director macromedia in order to make the commande and graphique·interface.

The function which will enable·me to send the data on the port series RS232 is as function :

commWrite ( object me, any Data )···
Writes the specified data to the connected device.···

Parameters :
object me : DirectCommunication Instance.···
Data : The data to write to the port.· This parameter may be a number or a string. If it is a string, the Xtra will send the specified string to the device. If it is a number, it can be in the range of 0-255, and the equivalent ASCII character \ HEX value \ bits will be sent to the device, for example, passing 65 will send the ASCII character "A", which is equivalent to the HEX value 41, which is equivalent to the bits 01000001. Passing 0 will send a NULL character.

Which is the code exact to send on the port rs232 in order to order a servo engine?

thank for advance. Stephane S.
Sign In or Register to comment.