Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate with Compax3 via RS232

Solved!
Go to solution

I forgot to mention that I was using RS-422, and the address for the Compax3 was 2.

0 Kudos
Message 11 of 88
(4,726 Views)

Thanks for helping me work through this Brian. With your help I got it working the way I wanted to this morning.

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 12 of 88
(4,725 Views)

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?

0 Kudos
Message 13 of 88
(4,682 Views)

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.

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 14 of 88
(4,673 Views)

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

0 Kudos
Message 15 of 88
(4,671 Views)

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.

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 16 of 88
(4,667 Views)

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'

0 Kudos
Message 17 of 88
(4,663 Views)

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.

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
Message 18 of 88
(4,653 Views)

Thanks so much.  Seeing the mode error fixed it!  Changing that to 1 was the solution!!!

0 Kudos
Message 19 of 88
(4,649 Views)

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?!

-Regards,
Vijay,
Application Engineer,
Parker Hannifin.
0 Kudos
Message 20 of 88
(4,099 Views)