Ultra 5000 C Programming

Leeroy

Member
Join Date
Oct 2012
Location
Canada
Posts
66
I have been trying to modify some existing code on an ultra 5000 drive. This drive also communicates to micro1500 LRP. All I'm trying to do is add some code to whenever the drive is in motion, so either in jog or doing a move command, to update the current position. This position will be displayed on a PanelView 600.

So, right now I'm trying to define a global variable (floating point) that gets the update, but I have a feeling that I don't have that setup right. Look at the following code:

#define Servo_Pos 10

How do I specify that 'Servo_Pos' is a floating point variable? I need that to be F8:10, but I feel liking I'm missing something.

Also, maybe its just the code that I want to update. So take a look at this:

FloatArraySetElement(Servo_Pos,AxisGetFeedbackPos());

Would that be correct? Right now I have that line of code in multiple places of the program, like when there is a move command or if its jogging forward/reverse. I'm thinking of putting in code like this:

if(MoveInProgress() || InputGetState(JOG_ENABLE))
{
FloatArraySetElement(Servo_Pos,AxisGetFeedbackPos());
}

That way it would update when either of those are true, but not sure how well that would work.

Any help would be appreciated.
 

Similar Topics

Problem with RSLogix 5000 homing of Sercos Ultra 3000 and soft overtravel limits Hello, I have Version 20 RSLogix 5000 successfully working with...
Replies
0
Views
3,030
Recently i have faced ultra 5000 drive failure. when i switch the power i got sparks coming from incoming side of the drive(without connecting...
Replies
0
Views
1,267
Hi ALl I got online to tye Ultra 5000 and uploaded the file. I would like to look at the programs, which is in a format of .exe. Do i need the...
Replies
5
Views
3,765
Hi all Can someone please tell me the cable Pin out to connect to an ultra 5000 And which port on the drive I connect to please. I have...
Replies
2
Views
2,040
Hi, I have a PA Industries servo feeder with an Allen Bradley MPL motor and Ultra5000 drive. I'm only using a single limit switch which rides on a...
Replies
2
Views
2,004
Back
Top Bottom