




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!





























































































ABB Robotics Products AB DPT / MT S-72168 VÄSTERÅS SWEDEN Telephone: (0) 21 344000 Telefax: (0) 21 132592
The information in this document is subject to change without notice and should not be construed as a commit- ment by ABB Robotics Products AB. ABB Robotics Products AB assumes no responsibility for any errors that may appear in this document.
In no event shall ABB Robotics Products AB be liable for incidental or consequential damages arising from use of this document or of the software and hardware described in this document.
This document and parts thereof must not be reproduced or copied without ABB Robotics Products AB´s written permission, and contents thereof must not be imparted to a third party nor be used for any unauthorized purpose. Contravention will be prosecuted.
Additional copies of this document may be obtained from ABB Robotics Products AB at its then current charge.
© ABB Robotics Products AB
Article number: 3HAC 0966- Issue: For BaseWare OS 3.
ABB Robotics Products AB S-721 68 Västerås Sweden
System DataTypes and Routines 1-
bool Logical values byte Decimal values 0 - 255 clock Time measurement confdata Robot configuration data dionum Digital values 0 - 1 errnum Error number extjoint Position of external joints intnum Interrupt identity iodev Serial channels and files jointtarget Joint position data loaddata Load data mecunit Mechanical unit motsetdata Motion settings data num Numeric values (registers) orient Orientation o_jointtarget Original joint position data o_robtarget Original position data pos Positions (only X, Y and Z) pose Coordinate transformations progdisp Program displacement robjoint Joint position of robot axes robtarget Position data shapedata World zone shape data signalxx Digital and analog signals speeddata Speed data string Strings symnum Symbolic number tooldata Tool data tpnum Teach Pendant Window number triggdata Positioning events - trigg tunetype Servo tune type wobjdata Work object data wzstationary Stationary world zone data wztemporary Temporary world zone data zonedata Zone data System Data
System DataTypes and Routines 1-bool-
Bool is used for logical values (true/false).
The value of data of the type bool can be either TRUE or FALSE.
flag1 := TRUE;
flag is assigned the value TRUE.
VAR bool highvalue; VAR num reg1; . highvalue := reg1 > 100;
highvalue is assigned the value TRUE if reg1 is greater than 100 ; otherwise, FALSE is assigned.
IF highvalue Set do1;
The do1 signal is set if highvalue is TRUE.
highvalue := reg1 > 100; mediumvalue := reg1 > 20 AND NOT highvalue;
mediumvalue is assigned the value TRUE if reg1 is between 20 and 100.
Described in: Logical expressions Basic Characteristics - Expressions Operations using logical values Basic Characteristics - Expressions
1-bool-2 System DataTypes and Routines
1-byte-2 System DataTypes and Routines
System DataTypes and Routines 1-clock-
Clock is used for time measurement. A clock functions like a stopwatch used for tim- ing.
Data of the type clock stores a time measurement in seconds and has a resolution of 0.01 seconds.
VAR clock clock1;
ClkReset clock1;
The clock, clock1 , is declared and reset. Before using ClkReset , ClkStart , ClkStop and ClkRead , you must declare a variable of data type clock in your program.
The maximum time that can be stored in a clock variable is approximately 49 days (4,294,967 seconds). The instructions ClkStart , ClkStop and ClkRead report clock overflows in the very unlikely event that one occurs.
A clock must be declared as a VAR variable type, not as a persistent variable type.
Clock is a non-value data type and cannot be used in value-oriented operations.
Described in: Summary of Time and Date Instructions RAPID Summary - System & Time Non-value data type characteristics Basic Characteristics - Data Types
System DataTypes and Routines 1-confdata-
Confdata is used to define the axis configurations of the robot.
All positions of the robot are defined and stored using rectangular coordinates. When calculating the corresponding axis positions, there will often be two or more possible solutions. This means that the robot is able to achieve the same position, i.e. the tool is in the same position and with the same orientation, with several different positions or configurations of the robots axes.
To unambiguously denote one of these possible configurations, the robot configuration is specified using four axis values. These values define the current quadrant of four robot axes. The quadrants are numbered 0, 1, 2, etc. (they can also be negative). The quadrant number is connected to the current joint angle of the axis. For each axis,
position; quadrant 1 is the next revolution, 90 to 180°, etc. Quadrant -1 is the revolution 0° to (-90°), etc. (see Figure 1).
Figure 1 The configuration quadrants for axis 6.
Only the configuration parameter cf6 is used.
Only the three configuration parameters cf1, cf4 and cf6 are used.
1-confdata-2 System DataTypes and Routines
All four configuration parameters are used. cf1, cf4, cf6 for joints 1, 4, and 6 respectively and cfx for joint 5.
The IRB 6400C requires a slightly different way of unambiguously denoting one robot configuration. The difference lies in the interpretation of the confdata cf.
cf1 is used to select one of two possible main axes (axis 1, 2 and 3) configurations:
Figure 2 shows an example of a forward configuration and a backward configuration giving the same position and orientation.
Figure 2 Same position and orientation with two different main axes configurations.
The forward configuration is the front part of the robot’s working area with the arm directed forward. The backward configuration is the service part of the working area with the arm directed backwards.
cf1 Data type: num
The current quadrant of axis 1, expressed as a positive or negative integer.
cf1 = 1.
cf1 = 0
1-confdata-4 System DataTypes and Routines
System DataTypes and Routines 1-dionum-
Dionum (digital input output numeric) is used for digital values (0 or 1).
This data type is used in conjunction with instructions and functions that handle digital input or output signals.
Data of the type dionum represents a digital value 0 or 1.
CONST dionum close := 1;
Definition of a constant close with a value equal to 1.
SetDO grip1, close;
The signal grip1 is set to close , i.e. 1.
If an argument of the type dionum has a value that is neither equal to 0 nor 1, an error is returned on program execution.
Dionum is an alias data type for num and consequently inherits its characteristics.
Described in: Summary input/output instructions RAPID Summary - Input and Output Signals Configuration of I/O User’s Guide - System Parameters Alias data types Basic Characteristics- Data Types
System DataTypes and Routines 1-errnum-
Errnum is used to describe all recoverable (non fatal) errors that occur during program execution, such as division by zero.
If the robot detects an error during program execution, this can be dealt with in the error handler of the routine. Examples of such errors are values that are too high and division by zero. The system variable ERRNO , of type errnum , is thus assigned different values depending on the nature of an error. The error handler may be able to correct an error by reading this variable and then program execution can continue in the correct way.
An error can also be created from within the program using the RAISE instruction. This particular type of error can be detected in the error handler by specifying an error number (within the range 1-90 or booked with instruction BookErrNo ) as an argument to RAISE.
reg1 := reg2 / reg3; . ERROR IF ERRNO = ERR_DIVZERO THEN reg3 := 1; RETRY; ENDIF
If reg3 = 0, the robot detects an error when division is taking place. This error, however, can be detected and corrected by assigning reg3 the value 1. Following this, the division can be performed again and program execution can continue.
CONST errnum machine_error := 1; . IF di1=0 RAISE machine_error; . ERROR IF ERRNO=machine_error RAISE;
An error occurs in a machine (detected by means of the input signal di1 ). A jump is made to the error handler in the routine which, in turn, calls the error handler of the calling routine where the error may possibly be corrected. The constant, machine_error , is used to let the error handler know exactly what type of error has occurred.
1-errnum-2 System DataTypes and Routines
The system variable ERRNO can be used to read the latest error that occurred. A number of predefined constants can be used to determine the type of error that has occurred.
Name Cause of error ERR_ALRDYCNT The interrupt variable is already connected to a TRAP routine ERR_ARGDUPCND More than one present conditional argument for the same parameter ERR_ARGNAME Argument is expression, not present or of type switch when executing ArgName ERR_ARGNOTPER Argument is not a persistent reference ERR_ARGNOTVAR Argument is not a variable reference ERR_AXIS_ACT Axis is not active ERR_AXIS_IND Axis is not independent ERR_AXIS_MOVING Axis is moving ERR_AXIS_PAR Parameter axis in instruction TestSign and SetCurrRef is wrong. ERR_CALLIO_INTER If an IOEnable or IODisable request is interrupted by another request to the same unit ERR_CALLPROC Procedure call error (not procedure) at runtime (late binding) ERR_CNTNOTVAR CONNECT target is not a variable reference
ERR_CNV_NOT_ACT The conveyor is not activated.
ERR_CNV_CONNECT The WaitWobj instruction is already active.
ERR_CNV_DROPPED The object that the instruction WaitWobj was waiting for has been dropped.
ERR_DEV_MAXTIME Timeout when executing a ReadBin, ReadNum or a ReadStr instruction ERR_DIVZERO Division by zero ERR_EXCRTYMAX Max. number of retries exceeded ERR_EXECPHR An attempt was made to execute an instruction using a place holder ERR_FILEACC A file is accessed incorrectly ERR_FILEOPEN A file cannot be opened ERR_FILNOTFND File not found ERR_FNCNORET No return value ERR_ILLDIM Incorrect array dimension ERR_ILLQUAT Attempt to use illegal orientation (quaternion) valve ERR_ILLRAISE Error number in RAISE out of range