11-24-2010 06:07 AM
I forgot to mention that I was using RS-422, and the address for the Compax3 was 2.
11-24-2010 06:52 AM
Thanks for helping me work through this Brian. With your help I got it working the way I wanted to this morning.
12-17-2010 12:29 AM
I have run into similar problems while trying to command a compax3 controller from the serial port. I can read and write objects, but I haven't been able to get the motor to turn. The motor runs properly form within the parker supplied sofware. How did you do it?
12-17-2010 06:38 AM
You use the command word to get it to turn. The command word is "O1100.3=$xxxx" where xxxx is the value of the command word. For mine I used the 2nd command (ex: array for my motion profile and therefore used the value 6203 (O 1100.3=$6203) to move the motor.
So my whole series of commands looks like this:
"O 1100.3=1" (To activate the drive axis)
"O 1902.2=X" (X= velocity)
"O 1901.2=X" (X= Position)
"O 1100.3=$6203" (Sets the appropriate bits to move the axis)
All commands are to be followed by CR.
12-17-2010 08:20 AM
Thank you for replying. I tried the commands exactly as you suggested, but the controller does not even energize the motor. Starting up the parker program gets the motor to move still. Any other detail that I am leaving out?
Thanks,
James
12-17-2010 09:07 AM
What controller do you have? If you have the T30 you need to configure it as the T11 I12 to use the serial commands. Reread through all the threads above and the links Brian Beal posted to see if you can find the issue.
12-17-2010 09:51 AM
I have a T40, but thanks to your last reply, it is now an I12 T11. The command 'O 1100.3=$400B' will cause the motor to jog slowly. This is a great step forward thank you. I am still having trouble commanding usable motions. This is what I am trying: I expect them to send the motor to 0. Do you see any errors in these commands? Thanks for your help thus far.
'O 1100.3=0'
'O 1100.3=1'
'O 1901.5=0' % pos
'O 1902.5=500' % vel
'O 1905.5=500' % mode
'o1906.5=200');% Accel
'o1907.5=500' % Decel
'o1908.5=10000' % Jerk
'o1904.5=$32'
'O 1100.3=$6503'
12-17-2010 10:21 AM
I'd have to look back at the manual, but I don't think the mode is valid. I got rid of the accel, decel, and jerk commands in mine and the $32 (because I didn't care to save it), try simplifying to the example I showed previously to see what you get. Did you download the T11I12 manual from Parker? You can look through that for some clues too.
12-17-2010 10:30 AM
Thanks so much. Seeing the mode error fixed it! Changing that to 1 was the solution!!!
04-01-2012 12:30 AM
Dear Gomez/Brian,
I'm presently confused on how to send the commands to modify objects (as in from where). Can you help me with how to begin?!