Skip to main content

15. RL Commands

15.1 Variable Type
15.1.1 Int

image.png

15.1.2 Double 

image.png

15.1.3 Bool

image.png

15.1.4 String 

image.png

image.png

15.1.5 Array 

image.png

15.1.6 byte

image.png

15.1.7 clock

image.png

image.png

15.1.8 Implicit type conversion

image.png

15.1.9 Confdata

image.png

image.png

15.1.10 jointtarget

image.png

15.1.11 load

image.png

image.png

image.png

image.png

15.1.12 orient

image.png

15.1.13 pos

image.png

15.1.14 pose

image.png

image.png

15.1.15 robtarget

image.png

15.1.16 signalxx

image.png

image.png

15.1.17 speed

image.png

image.png

image.png

The system predefines some common speed variables, as shown in the following table.

image.png

15.1.18 tool

image.png

image.png

image.png

image.png

15.1.19 trigdata

image.png

15.1.20 wobj

image.png

image.png

15.1.21 zone

image.png

image.png

image.png

image.png

15.1.22 torqueinfo

image.png

15.1.23 SocketServer

image.png

15.1.24 SocketConn

image.png

image.png

15.1.25 FCBoxVol

image.png

image.png

15.1.26 FCSphereVol

image.png

15.1.27 FCXYZNum

image.png

15.1.28 FCCartNum

image.png

15.2 Basic variable and structure
All variable types supported by the RL command. The indivisible types, including int, double, bool, and string are basic variables (also known as primary variables), which are the foundation of all variable types. Combined by certain rules, the variable types are called structures.
15.2.1 Composition of structure
The combination rules for structures generally combine data with physical significance abstractly.
Example:
⚫ The structure pos combines three doubles into a position (xyz) in three-dimensional space.
⚫ The structure orient combines four doubles into a quaternion that describes the orientation.
⚫ The structure pose combines position (pos) and orientation (orient) into a pose parameter that describes the robot position.
15.2.2 Use of structure
Structures, serving as parameters for commands, can be performed in finer ways based on the scenarios. Its data can be modified directly via the specified RL commands.
Example 1:
Robtarget structure consists of: space position (pos), orientation (orient), configuration data (confdata), and external axes (double array). Their names are trans (pos), rot (orient), conf (confdata), extax (double), and users can access the structure members directly in the RL function via their names.
robtarget rob1 = ... // variable list or user-customized Cartesian variable
rob1.trans.x + = 20 // add the x of point position to 20
// In the structure definition of trans (pos), it contains three variables of x, y, and z
// The x of the last visit to rob is therefore rob1.trans.x
print (rob1.trans) // print the position data only

Example 2:
The following is available for the wobj frame:
// Taking default wobj0 as an example
wobj0.robhold // work object handheld (bool).
wobj0.ufprog // user frame programmed (bool, rarely used).
wobj0.ufmec // user frame mechanical unit usually for plating lines and tracking (string).
wobj0.oframe // work object frame pose
wobj0.oframe.x // work object frame pose x
wobj0.oframe.y // work object frame pose y
wobj0.oframe.z // work object frame pose z
wobj0.q1 // work object frame pose quaternion
wobj0.uframe_id// work object-related user frame id
Other complex structures can also refer to this method for structure access.
15.3 Function