Sign In
Upload
Manuals
Brands
Allen-Bradley Manuals
Cables and connectors
Ultra5000
Allen-Bradley Ultra5000 Manuals
Manuals and User Guides for Allen-Bradley Ultra5000. We have
2
Allen-Bradley Ultra5000 manuals available for free PDF download: Programming Manual, Installation Instructions
Allen-Bradley Ultra5000 Programming Manual (114 pages)
C Programming using the Motion Library
Brand:
Allen-Bradley
| Category:
Servo Drives
| Size: 1.78 MB
Table of Contents
Table of Contents
3
Introduction
9
Preface
9
Who Should Use this Manual
9
Where to Find Help
9
Contents of this Manual
10
Conventions Used in this Manual
10
Related Documentation
10
Allen-Bradley Support
11
Local Product Support
11
Technical Product Assistance
11
Using Online Help
11
Chapter 1
13
Before You Begin
13
Creating a Basic Motion Program
13
Creating and Running a Program
14
Example 1 - a Basic Motion Program
14
Example 1 Explained
16
Variables, Loops, and Constants
17
Example 2.1 - a Motion Program Using Variables
17
Example 2.1 Explained
18
Example 2.2 - Varying the Program Using Variables
20
Example 2.2 Explained
20
Example 2.3 - Another Variance of the Program Using Variables
22
Example 2.3 Explained
22
Introduction
13
Programming Motion Control in C
13
User Defined Functions
23
Example 3 - Nested Functions in a Motion Program
23
Example 3 Explained
24
Program Stop
25
Example 4 - a Jog Program
26
Example 5 - a Gear Program
27
Homing with Latch Functions
28
Example 6 - a Homing Program
28
Non-Volatile Storage
28
Example 7 - a Non-Volatile Array Program
29
Types, Operators, and Expressions
30
Variable Names and Data Types/Sizes
30
Declarations
31
Arithmetic Operators
31
Conditional Expressions
33
Relational and Logical Operators
33
Operator Precedence
34
Control Flow
35
Statements and Blocks
35
Example 8 - Grouping Statements
35
If-Else
36
Else-If
36
Switch
38
While, for and Do-While Loops
38
Break and Continue
39
Referencing the Motion Library
41
Chapter 2 Referencing the Motion Library Control Setting Functions
42
Axis Attributes
44
Long Axisdefinepos(Long Position)
44
Float Axisgetcommandcur(Void)
44
Long Axisgetcommandpos(Void)
44
Float Axisgetcommandvel(Void)
44
Long Axisgetfeedbackoffset(Void)
44
Long Axisgetfeedbackpos(Void)
44
Float Axisgetfeedbackvel(Void)
45
Float Axisgetfgain(Void)
45
Float Axisgetigain(Void)
45
Float Axisgetkff(Void)
45
Float Axisgetkp(Void)
45
Float Axisgetlowercurlimit(Void)
45
Float Axisgetpgain(Void)
45
Long Axisgetposerror(Void)
45
Float Axisgetuppercurlimit(Void)
45
Float Axisgetvelerror(Void)
46
Long Axissetfeedbackoffset(Long Offset)
46
Long Axissetfgain(Float Fgain)
46
Long Axissetigain(Float Igain)
46
Long Axissetkff(Float Kff)
46
Long Axissetkp(Float Kp)
46
Long Axissetlowercurlimit(Float Limit)
46
Long Axissetpgain(Float
46
Long Axissetuppercurlimit(Float Limit)
47
Axis Services
48
Long Axisdisable(Void)
48
Long Axisenable(Void)
48
Long Axisresetposlimit(Void)
48
Long Axissoftlimitdisable(Void)
48
Long Axissoftlimitenable(Void)
48
Axis Status
49
Long Axisisenabled(Void)
49
Long Axisisready(Void)
49
Long Axisposlimitgetstatus (Void)
49
Long Axisposlimitistriggered (Void)
49
Control Attributes
50
Long Controlgetfault(Void)
50
Long Encodergetfaultstate(Long Channel)
51
Long Encodergetoutput(Long Channel)
51
Long Encodergetpos(Long Channel)
51
Float Ratchetgetvel(Void)
51
Control Services
52
Long Controlclearfault(Void)
52
Long Encoderdisablefault(Long Channel)
52
Long Encoderenablefault(Long Channel)
52
Long Encodersetpolarity(Long Channel, Long Polarity)
53
Long Ratchetsetmode(Long Mode)
53
Long Sequenceraddnode(Long Frame, Void* Fptr, Void* Dptr)
54
Long Sequencerremovenodes(Void* Dptr)
54
Program Services
55
Long Initmotionlibrary(Void)
55
Long Programkill(Char* Name)
55
Long Programrun(Char* Name)
55
Long Programstop(Char* Name)
55
Long Sleep(Long Ms)
55
Program Status
56
Long Programisrunning(Char* Name)
56
Long Stoprequested(Void)
56
Serial Services
56
Long Serialclose(Void)
56
Char Serialgetchar(Void)
56
Long Serialopen(Long Baudrate)
56
Char Serialputchar(Char Character)
56
Long Serialputstring(Const Char *String)
57
Serial Status
57
Long Serialcleartosend(Void)
57
Long Serialdataready(Void)
57
Long Serialreceiverfull(Void)
57
Long Serialtransmitterempty(Void)
57
Timer Services
57
Long Timeraccumulated(Long Channel)
57
Long Timerenable(Long Channel, Long Preset)
57
Timer Status
58
Long Timerdone(Long Channel)
58
Control Setting Functions
42
Motion Functions
59
Cam Attributes
62
Long Camgetcyclecount(Void)
62
Long Camgetcyclelimit(Void)
62
Long Camgetfreesegments(Void)
62
Long Camsetcyclelimit(Long Limit)
63
Cam Services
63
Long Camclosetable(Void)
63
Long Camconstantvelocity(Long Master_Position, Long Follower_Position)
63
Long Camcycloidal(Long Master_Position, Long Follower_Position)
64
Long Camcycloidalharmonic(Long Master_Position, Long Follower_Position)
65
Long Camdisable(Void)
66
Long Camdwell(Long Master_Position)
66
Long Camenable(Void)
66
Long Camharmonic(Long Master_Position,Long Follower_Position)
67
Long Camharmoniccycloidal(Long Master_Position, Long Follower_Position)
68
Long Camload(Char* Name)
69
Long Camloadtable(Long Table_Number,Char *Name)
69
Long Cammodifiedsinusoidal(Long Master_Position,Long Follower_Position)
70
Long Cammodifiedtrapezoidal(Long Master_Position,Long Follower_Position)
71
Long Camopentable(Long Table_Number,Long Size,Long Order)
72
Long Camphaseabort(Void)
72
Long Camphaseadvance(Long Distance,Float Time)
72
Long Camphaseretard(Long Distance,Float Time)
72
Long Camqueuereset(Void)
73
Long Camqueuetable(Long Table_Number,Long Cycle_Limit)
73
Long Camsavetable(Long Table_Number,Char *Name)
74
Long Camspline(Long Master_Position,Long Follower_Position,Float Initial_Ratio,Float Final_Ratio)
74
Long Camunloadtable(Long Table_Number)
74
Cam Status
75
Long Camisenabled(Void)
75
Long Camphaseinprogress(Void)
75
Long Camqueuefull(Void)
75
Gear Attributes
76
Float Geargetvel(Void)
76
Long Gearsetratio(Float Ratio)
76
Long Gearslewsetacc(Float Acc)
76
Long Gearslewsetdec(Float Dec)
76
Gear Services
76
Long Geardisable(Void)
76
Long Gearenable(Void)
76
Long Gearslewdisable(Void)
77
Long Gearslewenable(Void)
77
Gear Status
77
Long Gearatspeed(Void)
77
Long Gearinprogress(Void)
77
Long Gearisenabled(Void)
77
Jog Attributes
77
Long Jogsetacc(Float Acc)
77
Long Jogsetdec(Float Dec)
78
Long Jogsetvel(Float Vel)
78
Jog Services
78
Long Jogabort(Void)
78
Long Jogforward(Void)
78
Long Jogreverse(Void)
78
Long Jogstop(Void)
79
Jog Status
79
Long Jogatspeed(Void)
79
Long Joggetmode(Void)
79
Long Joggetstate(Void)
79
Long Joginprogress(Void)
80
Move Attributes
80
Long Movesetacc(Float Acc)
80
Long Movesetdec(Float Dec)
80
Long Movesetpos(Long Position)
80
Long Movesetvel(Float Vel)
80
Move Services
81
Long Moveabort(Void)
81
Long Moveabsolute(Long Position)
81
Long Moveclosebuffer(Void)
81
Long Movecorrect(Long Distance)
81
Long Movecorrectabs(Long Position)
82
Long Movecorrectinc(Long Distance)
82
Long Movedistance(Long Distance)
82
Long Movedv(Long Distance, Float Vel)
83
Long Movedvs(Long Distance, Float Vel)
83
Long Movedvt(Long Distance, Float Vel, Float Time)
83
Long Movedwell(Float Time)
84
Long Movegetfreesegments(Void)
84
Long Moveincremental(Long Distance)
84
Long Moveopenbuffer(Long Size, Long Rotary)
84
Long Moveposition(Long Position)
85
Long Movestart(Void)
85
Long Movestop(Void)
85
Move Status
86
Long Moveatspeed(Void)
86
Long Movebufferfull(Void)
86
Long Moveinprogress(Void)
86
Digital and Analog I/O Functions
87
Analog Input Attributes
87
Float Analoginputgetvoltage(Long Channel)
87
Analog Output Attributes
88
Long Analogoutputsetvoltage(Long Channel, Float Voltage)
88
Digital Input Status
88
Long Inputgetall(Void)
88
Long Inputgetstate(Long Channel);
89
Digital Output Services
90
Long Outputsetalloff(Void)
90
Long Outputsetallon(Void)
90
Long Outputtoggle(Long Channel)
90
Digital Output Status
91
Long Outputgetall(Void)
91
Long Outputgetstate(Long Channel)
91
Latch Functions
92
Latch Attributes
92
Long Latchgetautomode(Long Channel)
92
Long Latchgetcount(Long Channel)
93
Long Latchgetoutput(Long Channel)
93
Latch Services
94
Long Latchonindex(Long Channel, Long Encoder, Long Rising)
94
Long Latchoninput(Long Channel, Long Input, Long Rising)
95
Long Latchreset(Long Channel)
95
Long Latchsetautomode(Long Channel, Long Mode)
96
Latch Status
96
Long Latchtriggered(Long Channel)
96
Non-Volatile Array Functions
97
Non-Volatile Array Attributes
97
Float Floatarraygetelement(Long Element)
97
Long Floatarraysetelement(Long Element, Float Data)
97
Long Longarraygetelement(Long Element)
97
Long Longarraysetelement(Long Element, Long Data)
98
Non-Volatile Array Services
98
Long Floatarrayselect(Char* Name)
98
Long Longarrayselect(Char* Name)
98
Appendix A
99
Updates to the Motion Library for Ultraware Release 1.3
99
Updates to the Motion Library for Ultraware Release 1.4
99
Updates to the Motion Library for Ultraware Release 1.5
99
Advertisement
Allen-Bradley Ultra5000 Installation Instructions (2 pages)
Connector Kit, Wiring the CN1A and CN1B I/O Connectors
Brand:
Allen-Bradley
| Category:
Cables and connectors
| Size: 0.52 MB
Advertisement
Related Products
Allen-Bradley Ultra1500 2092-DA1
Allen-Bradley ULTRA 100 Series
Allen-Bradley Ultra3000
Allen-Bradley Ultra1500 2092-DA2
Allen-Bradley Ultra1500 2092-DA3
Allen-Bradley Ultra1500 2092-DA4
Allen-Bradley Ultra1500 2092-DA5
Allen-Bradley 1747-DPS1
Allen-Bradley 1747-DPS2
Allen-Bradley 1769-CLL1
Allen-Bradley Categories
Control Unit
Controller
I/O Systems
Power Supply
Switch
More Allen-Bradley Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL