Summary of the invention
The objective of the invention is, be to provide a kind of opened obot control method and system thereof, can simplify open robot's control and programming based on table prgraming, and the performance of manipulating that can improve the open robot.
Technical scheme of the present invention is as follows:
A kind of opened obot control method based on table prgraming may further comprise the steps:
A, in control interface establishment table procedure, the athletic posture of described robot is described, write down the movement locus of described robot;
B, the described table procedure data of conversion are checked described robot motion's process, and the kinematic parameter of described robot is set simultaneously;
C, according to described table procedure data, read and carry out the athletic performance of setting by described robot.
Described opened obot control method, wherein, the process of establishment table procedure is the operation of a teach programming in the described steps A, is included in the operation of finishing described teach programming after the repetition following steps:
Each moves to desired location A11, the described robot of manual adjustment, and notes each joint motions angle of described robot of this moment;
A12, calculate the right angle spatial value of this desired location automatically, and record shows in the rectangular coordinate form in the joint coordinate system form;
The beginning or end of A13, input trajectory mark, and the port numbers and the state of a control of input control.
Described opened obot control method, wherein, the process of establishment table procedure is the operation of joint coordinates programming in the described steps A, is included in the operation of finishing described joint coordinates programming after the repetition following steps:
A21, the correspondence position in the joint coordinate system form are filled in the absolute motion angle in each joint of described robot;
The beginning or end of A22, input trajectory mark, and the port numbers and the state of a control of input control;
The track security of A23, the described joint of robot of self-verifying, and the right angle spatial value that calculates described robot automatically.
Described opened obot control method, wherein, the process of establishment table procedure is the operation of rectangular coordinate programming in the described steps A, is included in the operation of finishing described rectangular coordinate programming after the repetition following steps:
A31, the correspondence position in the world coordinate system form are filled in the right angle volume coordinate and the terminal attitude angle of described robot;
A32, when movement locus is a bowlder input motion radius, and the right angle volume coordinate of setting input is a home position;
A33, track sign kind is set, the beginning or end of input trajectory mark, and the port numbers and the state of a control of input control;
The track security of the set point of A34, the described robot of self-verifying.
Described opened obot control method, wherein, the process of the described table procedure data of conversion among the described step B, the operation for changing mutually between rectangular coordinate program and joint coordinates program comprises following step:
B11, generate a new coordinate program form, and read the first line data code in the former coordinate program;
B12, the movement locus safety whether of judging described robot are then to enter step B13, otherwise enter step B15;
The data code of B13, the described former coordinate program of conversion, and write into described new coordinate program;
B14, read the next line data in the described former coordinate program, change step B12 over to, data code of the last row in being transformed into described former coordinate program, and enter step B16 after writing described new coordinate program finishing;
B15, stop track conversion, give the track tabulation row that makes mistake prompting, enter step B17;
B16, with described new coordinate program display data, and finish the operation of conversion;
B17, according to the prompting of misdata row, the track of deletion error tabulation line data in described new coordinate program, and finish the operation of conversion.
Described opened obot control method wherein, reads and carries out the athletic performance process of setting among the described step C, adopt the operation of a joint coordinate system form, set kinematic parameter, and, carry out following steps from first line data of described joint coordinate system form:
C11, read each joint angles value, Trajectories Toggle, output terminal slogan and the output state thereof of described robot;
C12, carry out 6 moving interpolation according to described joint angles value and Trajectories Toggle;
C13, according to described output terminal slogan and output state thereof, control the corresponding port action;
C14, read the next line data of described joint coordinate system form, and repeat above-mentioned steps, until the data that read last column and execute above-mentioned operation.
Described opened obot control method, wherein, described step C reads and carries out the athletic performance process of setting, adopts the compile mode operation of world's coordinate system form, comprises the steps:
C21, setting kinematic parameter;
C22, world coordinates is compiled into the movement locus of described joint of robot coordinate, and record shows in a joint coordinate system form;
C23, according to the running order in the described joint coordinate system form, carry out corresponding athletic performance by described robot.
Described opened obot control method, wherein, described step C reads and carries out the athletic performance process of setting, adopt the interpretative system operation of world's coordinate system form, set kinematic parameter, and, carry out following steps from first line data of described world coordinate system form:
C31, read rectangular space coordinate value, Eulerian angle, track sign, Trajectories Toggle, output terminal slogan and output state thereof;
C32, described rectangular space coordinate is translated into joint coordinates, and carry out 6 moving interpolation according to described Eulerian angle and Trajectories Toggle;
C33, according to described output terminal slogan and output state thereof, control the corresponding port action;
C34, read the next line data of described world coordinate system form, repeat above-mentioned steps, until the data that read last column and execute above-mentioned operation.
A kind of open robot's control system based on table prgraming comprises a robot, an industrial control equipment and a multi-purpose computer, and described multi-purpose computer signal connects described industrial control equipment, the described robot of described industrial control equipment control linkage; Wherein, in the control interface of described multi-purpose computer, be provided with table procedure, be used to describe the athletic posture of the robot that obtains and write down its movement locus; Under the control of described industrial control equipment, the motion process of the described robot of data check by changing described table procedure; And described robot is used to read described table procedure data, the athletic performance that execution is set.
Described open robot's control system, wherein, described table procedure comprises a joint coordinate system form and world's coordinate system form; And described joint coordinate system form and world coordinate system form be on the nominated bank position in the form separately, be provided with described robot respectively import the action data of output point, wherein:
Described joint coordinate system form comprises, the end spaces rectangular coordinate of the X of described robot, Y, Z, and the absolute motion angle that comprises X angle, Y angle, Z angle, A angle, B angle and the C angle of described joint of robot;
Described world coordinate system form comprises, the rectangular space coordinate of the X of described robot, Y, Z, and the terminal attitude angle that comprises Eulerian angle Z, Eulerian angle Y and the Eulerian angle Zn of described robot.
A kind of opened obot control method and system thereof provided by the present invention based on table prgraming, owing to adopted the means of table procedure, and the data converting function by table procedure, finish inspection to robot motion's track; Simultaneously in programming, added kinematic parameter, on basis, realized open robot's operation control based on table prgraming; And, substituted complicated time-consuming special purpose robot's Programming with Pascal Language process by in form, filling in the programming mode of data, and directly simplified open robot's control and programming, significantly improved open robot's the performance of manipulating.
Embodiment
Below with reference to accompanying drawing, the specific embodiment of the present invention and embodiment are described in detail.
A kind of opened obot control method and system thereof of the present invention based on table prgraming, main core point is, by in form, filling in the programming mode of data, substituted complicated time-consuming special purpose robot's Programming with Pascal Language process, simplify ROBOT CONTROL and programming greatly, and improved the performance of manipulating of robot; Be well known to those skilled in the art as for technology such as teaching machine, open robot, industrial control equipment, Eulerian angle, joint, tracks, do not repeat them here.
A kind of opened obot control method of the present invention based on table prgraming, what adopt is open control system, write ROBOT CONTROL system and control interface by the VC6.0 development language, and as a kind of open robot's control system based on table prgraming of the present invention, wherein a kind of concrete embodiment, comprise a robot, an industrial control equipment and a multi-purpose computer, described multi-purpose computer signal connects described industrial control equipment, the described robot of described industrial control equipment control linkage; It is characterized in that, in the control interface of described multi-purpose computer, be provided with table procedure, be used to describe the athletic posture of the robot that obtains and write down its movement locus; Under the control of described industrial control equipment, the motion process of the described robot of data check by changing described table procedure; And described robot is used to read described table procedure data, the athletic performance that execution is set.Described table procedure comprises a joint coordinate system form and world's coordinate system form; And described joint coordinate system form and world coordinate system form be on the nominated bank position in the form separately, be provided with described robot respectively import the action data of output point, wherein:
Described joint coordinate system form, as shown in Figure 3, comprise X, the Y of described robot end locus, the rectangular coordinate form of Z, the absolute motion angle that also comprises X angle, Y angle, Z angle, A angle, B angle and the C angle in 6 joints of described robot, and comprise that content can self-defining Trajectories Toggle, be used to write down the state of current track and be used for the output port of record controls port numbers and be used to write down the output state record of corresponding output port action.
Described world coordinate system form as shown in Figure 4, comprises X, the Y of described robot end locus, the rectangular coordinate form of Z, also comprises the terminal attitude angle of Eulerian angle Z, Eulerian angle Y and the Eulerian angle Zn of described robot; And the orbital radius that comprises the robot curve motion, can identify by self-defining track with content, be used to identify the type of curve, as circle, circular arc or SPL etc., with the output port that is used for the record controls port numbers be used to write down the output state record of corresponding output port action.
And a kind of opened obot control method based on table prgraming of the present invention comprises following three parts generally successively:
The first step, in control interface establishment table procedure, the athletic posture of described robot is described, write down the movement locus of described robot;
Second step, the described table procedure data of conversion are checked described robot motion's process, and the kinematic parameter of described robot is set simultaneously;
The 3rd the step, according to described table procedure data, read and carry out the athletic performance of setting by described robot.
At first, in the first step in control interface establishment table procedure, in the concrete process of implementing, can segment following three kinds of programming modes again:
1, teach programming
As shown in Figure 5, in the form of described joint coordinate system, adopt following steps:
(for mouse) step S501a, press mouse;
(for keyboard) step S501b, press keyboard shortcut;
(for mouse) step S502a, mouse response code section;
(for keyboard) step S502b, keyboard shortcut response code section;
Step S503, single shaft motion response code segment;
(for mouse) step S504, judge whether to arrive assigned address, be then to enter step S505, otherwise change step S504a over to;
(for keyboard shortcut) step S504, judge whether to arrive assigned address, be then to enter step S505, otherwise change step S504b over to;
Step S505, further judge whether the executive logging function, be then to enter step S506, otherwise change step S507 over to;
Step S506, operation joint position, the code segment of record each joint motions angle this moment;
Afterwards, calculate the right angle spatial value of this desired location automatically, and record shows in the rectangular coordinate form in the joint coordinate system form;
Step S507, judge whether to set movement mark, be then to enter step S508, otherwise change step S509 over to;
Trajectories Toggle when step S508, input motion, input " 1 " during starting point, input " 2 " during terminal point, intermediate point need not be imported;
Step S509, judge whether to set I/O action, be then to enter step S510, otherwise finish input operation;
Step S510, setting I/O port-action, i.e. input needs the port numbers of control, and input control port state, opens to be " 1 ", close to be " 0 ", and the end input operation;
Afterwards, repeat the aforesaid operations step, can finish processing technology of components.
2, joint coordinates programming
When determining the movement locus in each joint, specifically can adopt following programming step:
1) correspondence position in the joint coordinate system form is filled in the absolute motion angle in each joint;
2) Trajectories Toggle input: input " 1 " during starting point, input " 2 " during terminal point, intermediate point need not be imported;
3) input needs the port numbers of control;
4) input control port state is opened and is " 1 ", closes to be " 0 ";
5) joint trajectories security self-verifying;
6) calculate the right angle volume coordinate of robot automatically;
7) repeat above-mentioned action, promptly finish the programming of robot.
3, rectangular coordinate programming
Switch to " world coordinate system " state, adopt following programming step:
(1) input X, Y, Z right angle volume coordinate;
(2) the terminal attitude angle of input;
(3) when being that bowlder needs the input motion radius for track, XYZ coordinate is a home position;
(4) " track sign " is provided with: can identify " circle ", " circular arc ", " SPL " etc.;
(5) Trajectories Toggle input: input " 1 " during starting point, input " 2 " during terminal point, intermediate point need not be imported;
(6) input needs the port numbers of control;
(7) input control port state is opened and is " 1 ", closes to be " 0 ";
(8) set point track security self-verifying;
(9) repeat aforesaid operations, can finish the processing technology programming.
Secondly, the process at the described table procedure data of conversion in second step specifically comprises the process of rectangular coordinate to the joint coordinates conversion, as shown in Figure 6; And joint coordinates is to the process of rectangular coordinate conversion, as shown in Figure 7; In fact, rectangular coordinate is two kinds of different expression forms of robot trajectory with joint coordinates, the robotary that rectangular coordinate and pose are represented is directly perceived, be convenient to the track inspection, and joint coordinates can be determined each operation angle of robot, the data of two groups of forms are changed mutually, are convenient to the inspection of technology and the judgement of each Spindle Status of robot.
Shown in accompanying drawing 6 and 7, the concrete steps of its table procedure data-switching comprise:
Step S601 (or S701), the former coordinate program of definition are changed to new coordinate program;
Step S602 (or S702), the new coordinate program form of generation;
Step S603 (or S703), read the line data of former coordinate program, as the first line data code;
Step S604 (or S704), read machine people's movement locus safety is judged code;
Step S605 (or S705), and the movement locus of judging described robot safety whether are then to enter step S606 (or S706), otherwise change step S610 (or S710) over to;
Step S606 (or S706), by the new mutually coordinate program translation data code of former coordinate program;
Step S607 (or S707), transformation result or track are write new coordinate program;
Whether step S608 (or S708), determining program data-switching finish, and are then to enter step S612 (or S712), otherwise change step S608 (or S708) over to;
Step S608 (or S708), the current line number in the former coordinate program is added 1, enter step S603 (or S703), the data code of last column in being transformed into described former coordinate program;
Step S610 (or S710), stop track conversion, give the track tabulation row that makes mistake prompting;
Step S611 (or S711), according to the prompting of misdata row, the track of deletion error tabulation line data in described new coordinate program, and finish the operation of conversion;
Step S612 (or S712), with described new coordinate program display data, and finish the operation of conversion.
In accompanying drawing 6, in brief, be that the rectangular coordinate in the world coordinate system is converted to joint coordinates; After the rectangular coordinate in the given world coordinate system surpasses the robot movement scope, stop the track conversion automatically, and give the track tabulation row prompting that makes mistake.The data that generate write in the newly-generated joint coordinates form automatically.
In accompanying drawing 7, in brief, be that joint coordinates is converted to rectangular coordinate, so that the technology audit.The data that generate write in the newly-generated rectangular coordinate form automatically, when the track mistake occurring, point out the data line of makeing mistakes in the joint coordinates automatically.
In addition, after finishing table prgraming, also kinematic parameter to be set in the kinematic parameter table: as shown in Figure 8, comprise: go back to mode parameter region 810, the limited number of time operational factor zone 820 and 830 of starting point, specifically the parameter that can be provided with comprises: single cycle time delay, returned action after point mode, number of run, the end, paw time-delay etc.
At last, at the 3rd step, described robot reads the table procedure data and carries out the athletic performance of setting, and the difference of program implementation Yin Biaoge comprises three kinds of modes:
1, joint coordinate system forms mode
Described robot sets kinematic parameter since the data of first row, and adopts the mode of carrying out line by line:
1) reads each joint angles value, Trajectories Toggle, output terminal slogan, output state;
2) carry out 6 moving interpolations according to Trajectories Toggle and joint angles;
3) according to output terminal slogan, the action of output state control related port;
4) read the next line data, repeat aforesaid operations.
2, the compile mode of world coordinate system form
Set kinematic parameter, program is according to rectangular space coordinate value XYZ and Eulerian angle ZYZn, and world coordinates is compiled into the movement locus of joint coordinates, carries out relevant action by the running order in the form of above-mentioned joint then.
3, the interpretative system of world coordinate system form
Described robot sets kinematic parameter since the data of first row, and adopts the mode of carrying out line by line:
(1) reads rectangular space coordinate value XYZ, Eulerian angle ZYZn, track sign, Trajectories Toggle, output terminal slogan, output state;
(2) rectangular coordinate is translated into joint coordinates;
(3) carry out 6 moving interpolations according to Trajectories Toggle and joint angles;
(4) according to output terminal slogan, the action of output state control related port;
(5) read the next line data, repeat aforesaid operations.
In a word, fill in the joint of robot data in the joint coordinate system form, robot moves each line data one by one according to the data in the form.Fill in robot end's coordinate and attitude in right angle space coordinates form, robot generates the movement angle in each joint automatically when moving.Two kinds of forms all can be in each the I/O point action of nominated bank's set positions.After the selected delegation input data, the may command robot moves to select row automatically, with the correctness of checking joint coordinates input.Simultaneously, robot is carried out teaching, in the joint trajectories record sheet, the operator makes amendment to each joint data of the robot in the form, to obtain desirable program with the joint data recording that obtains.
This shows, adopt the form operation not need to use special programming language, directly in form, fill in numeral and can finish robotic programming, can reduce the complicacy of robot manipulation and programming, shorten the robotic programming time, reduce the technical threshold that robot uses.The teaching of joint coordinate system form shows teaching joint trajectories point in real time, can revise synchronously; Adopt directly perceived and general form programming, directly carry out filling in of digital form, simple, intuitive; The motion of robot is freely set by kinematic parameter; The joint teaching, the rectangular coordinate programming, the joint coordinates programming, three kinds of programming modes can be used in combination as required and increase flexibility of programming.
In the above preferred embodiment, can adopt existing various possible schemes according to practical application, be well known to those skilled in the art, also repeat no more at this based on the open robot's of table prgraming the control and the technology of operation.
The specific embodiment of the present invention described a kind of opened obot control method and system thereof based on table prgraming, owing to adopted the means of table procedure, and the data converting function by table procedure, finish inspection to robot motion's track; Simultaneously in programming, added kinematic parameter, on basis, realized open robot's operation control based on table prgraming; And, substituted complicated time-consuming special purpose robot's Programming with Pascal Language process by in form, filling in the programming mode of data, and directly simplified open robot's control and programming, significantly improved open robot's the performance of manipulating.
Should be understood that; for those of ordinary skills; can be improved according to the above description or conversion; for example according to any key element in environment increase and decrease world coordinate system or the joint coordinate system; and in a disguised form on some complicated electromechanical controlling devices, implement etc., and all these improvement and conversion all should belong to the protection domain of claims of the present invention.