1) I need to make the user Interface part i.e. the front pannel so that
when the user clicks a button (lets call it "Ceck Status
"X"" for motor X and "Check Status "Y"" for motor Y) the message "01OS" will will be sent to the motor "X" and message
"02OS" will be sent to the motor "Y" when those buttoms are clicked. On the reply we would recieve the message
"01#
0000000000" and "02#
0000000000" respectivelly. If however one of
the bytes in red happen to be high i.e."1" then the command "01RS" or "02RS" (depending which motor it is "X" or "Y")
would be sent automaticakky, and that would reset the motors back to default, because if any of those bytes are high then
this means that the motors are busy or there is some sort of an error in them, hence cannot be moved.
2) After the first point is done the second part of the header should then be sent automatically, i.e. the command "01SB300"
should be sent first, then "01SV6000" for motor X, and "02SB300" should be sent first then "02SV6000" for motor Y
(depending which button was clicked by the user at the beginning. If everything has gone smoothly on the above points,
there should be a "green light" for each motors i.e. for X and Y and if
this initialization wasn't done properly there should be
a "red light" for both motors, indicating that something has gone wrong depending which motor was used.
Below is an attachement of the program that communicates with the hardware called PM341, which WMassey built it for me.
This
program only works when i sent the actuall commands i.e. when I select
device address 1 and send the command "RS" I recieve a reply "01#OK"
because I am actually sending "01RS" (which means I am talking to the
"X" motor) and when I select device address 2 and send the same
command, then I recieve "02#OK" (which means that I am taslking to the
"Y" motor).
If more details are required please let mwe know.
The first and the second points are much more importent, btw I use LabView version 7.1.
thanks in advanced.