09-25-2014 04:38 PM
Here's the VB6 code I used to change speed:
format_speed = Format(Str(speed_value * 174 / 11), "####0.000000") 'Controls format of sent string, converts to deg per sec at motor
next_buffer = "o1902.1=" & format_speed
Call send
next_buffer = "o1100.3=16643" 'Sets start bit low
Call send
next_buffer = "o1100.3=24835" 'Sets start bit high.
Call send
So..load the next speed into the buffer, then flick the start bit low then high.
Hope this helps
Roy
09-25-2014 04:48 PM - edited 09-25-2014 04:53 PM
Thanks Roy!
That'll let me do some interesting things.
Have you measured the time it takes for the controller to respond to the messege?
You think it's around 10's of ms or 100's?
No probs if you don't know. Just wondering.
Thanks,
Dave
09-25-2014 05:19 PM
09-25-2014 05:23 PM
Thanks Davecyli....just to confirm what you just said, I have to:
First, command to set to MoveRel mode in Motion Table Row 2:
O1905.2=2
Then, command entry to set table (Pg. 296 in the C3I1T11 manual):
O1904.2=$32
and finally Set Bit code
O1100.3=$6203
correct? In case this does not work and I'm not in free mode, I do I enable the FREE mode in the Parker Integrated Engineering Tool. Do I do it through the C3manager software? Thanks!
09-25-2014 05:30 PM - edited 09-25-2014 05:36 PM
@Roy,
Yeah I'm running through windows as well.. but that delay should be fine. I'll post my results once I get it working.
@Mel,
That looks correct.
If your controller had a position feedback, you could also do O1905.2=1 for MoveAbs in place of O1905.2=2 for MoveRel.
I just said MoveRel because that worked for me when I didn't have position feedback.
Here is where you choose Free Assignment mode in Parker Integrated Engineering Tool:
And then download to controller.
Good Luck,
Dave
09-26-2014 06:56 AM
Mel, in the Parker configuration software (as shown by Dave) check the 'Motion Profile Table' and make sure you have a profile setup on SET#2. Without that, you're not going to move at all.
Regards,
Jason
09-26-2014 11:04 AM
@ Dave and Jason. I really do appreciate the help. What Dave said was right on...I can now move.
Now the next step is to track the position until the target position is reached. My motor has an encoder so if I put the following command sequence:
in a while loop and stop the loop when the current position is equal to the target position will that work? Or this should be done differently.
cheers!
09-26-2014 04:23 PM
I'm not sure, I haven't done any position tracking. Only velocity,as I'm using my motor in a dyno rig.
In my labview code, I have a separate thread that constantly reads the speed and updates a variable.
You can do the same for position with your first command. O680.5CR
09-29-2014 08:37 PM
Hello,
You guys know if the compax3 has an E-STOP command that will stop the motion in case of an emergency? Also is there a HOMING command? I don't know but the manual doesn't seem to be clear on those.
09-30-2014 01:25 PM
There's definitely a homing command. I've never used it though because, again no encoder.
The homing feature is shown in the status diagram on page 289.
As for the estop, I have a estop on my rig that i press that shuts power to everything.
The estop feature might be in PIET?
Sorry, I can't be of more help.
-Dave