|
|
Glossary
Safety Integrated
Effective, according to EU Directive >>89/392/EEC<<, >> Safety class 3<<according to
EN-954-1 (in this standard, classes B. 1-4 classes are defined) for the safety of operators and
machines, integrated in the control system for safe installation and testing.
Failure safety is guaranteed. This safety function is also effective during individual faults.
Scaling
Component of a -> frame through which axis-specific changes are made.
Set
All files that are required for the programming and execution of a program are denoted as sets.
A section of a -> part program which ends with "LineFeed" (line break). A distinction is made
between -> main blocks and -> subblocks.
Setting data
Data that supplies information on the features of the machine to the control system; the method
is defined in the system software. Unlike -> machine data, setting data can be modified by the
user.
Softkey
A key whose name is displayed in one part of the screen. The selection of the softkeys that are
displayed is adjusted automatically to the relevant operating state. The freely programmable
function keys (softkeys) are assigned to certain functions that are defined via the software.
Software limit switch
The limits of the traversing range of an axis is defined with software limit switches and this
prevents the carriage from coming in contact with the hardware limit switches. Two pairs of
values can be assigned per axis, and these can be activated separately via the -> PLC.
Speed limitation
Maximum/minimum (spindle) speed: The maximum spindle speed is limited by the values that
are specified either in the machine data by the-> PLC or the -> setting data.
Spindles
The spindle functionality is a construct with two levels:
Spindles: Speed or position-controlled spindle drives, analog digital (SINUMERIK 840D sl)
Auxiliary spindles: Speed-controlled spindle drives without encoder, e.g. for power tools.
ISO Turning
Programming Manual, 06/2019, A5E47432465B AA
191
Glossary
Spline interpolation
The control system can generate a smooth curve with spline interpolation, for which a small
number of interpolation points are necessary along a programmed contour.
Standard cycles
Standard cycles are used to program DO operations that are repeated frequently:
● For drilling/milling
● For measuring tools and workpiece
The available cycles are listed in the "Cycle support" menu in the "Program" operating area.
The required parameters for the assignment of the values are displayed in plain text after the
desired execution cycle has been selected.
Station number
The station number represents the "contact address" of a -> CPU or a -> programming device
or any other intelligent I/O module if these communicate with each other via a -> network. The
station number is assigned to the CPU or the programming device with the S7 tool
-> "S7 configuration".
Subblock
Block preceded by "N" containing information about a machining step, e.g. a position
specification.
Subprogram
A sequence of instructions of a -> part program which can be called multiple times with various
output parameters. Subprograms are always called from the main programs. Subroutines can
be locked against unauthorized export and unauthorized viewing. -> Cycles are subprograms
from the type perspective.
Synchronization
Instructions in -> part programs for coordinating working cycles in different -> channels at
certain machining points.
Synchronized actions
● Auxiliary function output
Technological functions ( -> auxiliary functions) can be output by the CNC program to the
PLC during the machining of a workpiece. These auxiliary functions can, for instance, be
used to control ancillary equipment on the machine (quill, gripper, chuck etc.).
● Fast auxiliary function output
The acknowledgement times of -> auxiliary functions can be reduced and unnecessary
machining process for executing less critical switching functions can be avoided.
ISO Turning
192
Programming Manual, 06/2019, A5E47432465B AA
Glossary
Synchronized actions can be combined to build programs (technology cycles). Axis programs
can be started in the same IPO cycle, e.g. by scanning digital inputs.
Synchronized axes
Synchronized axes require the same time to traverse the path as -> geometry axes.
Synchronous spindle
Accurate synchronism of an angle between a master spindle and one or more slave spindles.
This way, the flying transfer of a workpiece from Spindle 1 to Spindle 2 is possible in turning
machines.
In addition to speed synchronism, relative angle positions of the spindles can also be
programmed, e.g. "floating" or the position-oriented transfer of inclined workpieces.
Several pairs of synchronous spindles can be implemented.
System variables
A variable that exists even though it was not programmed by -> part program programmers. It
is defined by the data type and the variable name with the sign $. See also -> User-defined
variable.
Teach-in
Teach-in is a means of creating and correcting part programs. The individual program blocks
can be input via the keyboard and executed immediately. The positions approached with the
direction keys or the handwheel can also be stored. Additional information such as G functions,
feedrates or M functions can be entered in the same block.
Tool
A tool that is used to shape a workpiece. Tools are, e.g. turning tools, milling cutters, twist drills,
laser beams, grinding wheels, etc.
Tool offset
A tool is selected by programming a T function (5 digits, integer) in the block. Every T number
can be assigned up to 9 cutting edges (D addresses). The number of tools that are managed
in the control system can be parameterized.
The tool length compensation is selected by programming D numbers.
Tool radius compensation
A contour is programmed on the basis of the assumption that a tool is used with a tool tip. As
this is not always the case in practice, the radius of curvature of the used tool is specified so that
an allowance is considered by the tool. The center of curvature is guided to the contour which
is equidistant with an offset that corresponds to the radius of curvature.
ISO Turning
Programming Manual, 06/2019, A5E47432465B AA
193
Glossary
Transformation
If programming is done in one Cartesian coordinate system and execution is done in another
non-Cartesian coordinate system (e.g. with machine axis as rotary axis); then inclined axes and
5-axis transformation are used in connection with transmit.
Transmit
This function can be used to mill outside contours on rotating parts, e.g. four-sided parts (linear
axis with rotary axis).
3D interpolation with two linear axes and one rotary axis is also possible. The advantages of
Transmit simplify programming and improves the efficacy of the machine through complete
machining: Turning and milling can be executed on the same machine without rechucking.
Traversing range
The maximum possible traversing range for linear axes is ± 9 decades. The absolute value
depends on the selected resolution for the data input and position control, and on the used unit
of measurement (inch or metric).
User interface
The user interface (UI) is the human machine interface (HMI) of a CNC. It appears on the
screen and has eight horizontal and eight vertical softkeys.
User memory
All programs and data, such as part programs, subprograms, comments, tool offsets, work
offsets/frames, as well as channel and program user data, can be stored in the shared CNC
user memory.
User-defined variables
Users have the option of defining variables for their own purposes in the -> part program or in
a data block (global user data). The variable definition contains the specification of the data type
and the variable name. See also -> System variable.
Variable definition
A variable is defined by specifying a data type and a variable name. The variable name can be
used to access the value of the variable.
Velocity control
The control system can execute a look-ahead evaluation over several blocks (-> LookAhead)
to achieve an acceptable traversing speed during movements that require only very small
adjustments of position in a block.
ISO Turning
194
Programming Manual, 06/2019, A5E47432465B AA
Glossary
Vocabulary words
Words with a certain notation and a defined meaning in the programming language for -> part
programs.
Work memory
The work memory is a memory offering free access (RAM or Random Access Memory) in the
-> CPU which the processor accesses while executing the application program.
Work offset
Specification of a new reference point for a coordinate system by referring to an existing zero
point and a -> Frame.
1. Settable
SINUMERIK 840D sl: There is a parameterizable number of adjustable work offsets for each
CNC axis. Each work offset can be selected via G functions; the selection is exclusive.
2. External
All movements that define the position of the workpiece zero can be superimposed by an
external work offset, which
is either defined by a handwheel (DRF movement) or
the PLC.
3. Programmable
The TRANS instruction can be used to program work offsets for all path and positioning axes.
Working area
Three-dimensional zone in which the tool tip can be moved due to the physical design of the
machine. See also -> Protection zone.
Workpiece
The part that is produced/machined on the machine tool.
Workpiece contour
Programmed contour of the -> workpiece to be made/machined.
Workpiece coordinate system
The origin of the workpiece coordinate system is the -> workpiece zero. For working cycles that
are programmed in the workpiece coordinate system, the dimensions and directions refer to
this system.
Workpiece zero
The workpiece zero is the origin of the -> workpiece coordinate system. It is determined based
on its distance from the machine zero point.
ISO Turning
Programming Manual, 06/2019, A5E47432465B AA
195
Preface
Fundamental safety
1
instructions
2
Introduction
SINUMERIK
Coordinate systems
3
SINUMERIK 840D sl
SINUMERIK Run MyRobot /Direct
4
Programming
Control
Measuring cycles
5
Programming Manual
6
Examples
Service & support
A
Valid for
Control
SINUMERIK 840D sl
Software
version
NCU system software for 840D sl
4.8 SP3
12/2018
A5E45237742B AB
Introduction
2
2.1
Programming 6-axis robots
This manual supports you when programming a 6-axis robot with a SINUMERIK 840D sl.
Specific know-how is required when it comes to programming 6-axis robots. This know-how is
summarized in this manual.
This manual does not discuss any general know-how regarding programming with SINUMERIK
840 sl. You can find additional notes relating to references in Chapter Overview of the manuals
for SINUMERIK 840D sl and Run MyRobot /Direct Control (Page 18).
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
17
Introduction
2.2 Overview of the manuals for SINUMERIK 840D sl and Run MyRobot /Direct Control
2.2
Overview of the manuals for SINUMERIK 840D sl and Run MyRobot /
Direct Control
You can find additional information in the following manuals.
References
● Function description of the ROBX transformation (included in folder…/rmrdc/robx_ar/doc)
● Function description of AXCO (included in folder axco/doc)
● Programming Manual SINUMERIK 840D sl / 828D Fundamentals
● Programming Manual SINUMERIK 840D sl / 828D Job Planning
● Programming Manual SINUMERIK 840D sl / 828D Measuring Cycles
● Programming Manual SINUMERIK 840D sl / 828D ISO Milling
● Function Manual SINUMERIK 840D sl / 828D Expansion Functions
SINUMERIK Run MyRobot /Direct Control
18
Programming Manual, 12/2018, A5E45237742B AB
Coordinate systems
3
3.1
Overview
The term frame in the context of ROBX transformation will be explained in this chapter.
Frame
One coordinate system can be transitioned into another one using a frame. In so doing, a
distinction is made between translation and rotation. Whereas the translation causes only an
offset, the rotation turns the coordinate system with regard to the reference system. The X, Y
and Z coordinates are used to describe the translation. They are defined to produce a right-
hand coordinate system. In this case, the translation is performed prior to the rotation.
Translation
Translation always refers to the coordinate directions of the initial system. The directions are
assigned to machine data as follows:
● X direction: …_POS[0]
● Y direction: …_POS[1]
● Z direction: …_POS[2]
Rotation
The RPY angles A, B and C (RPY = Roll Pitch Yaw) are used for rotation. The positive direction
of rotation is defined using the right-hand rule. When the thumb on the right hand is pointing in
the direction of the axis of rotation, then the remaining fingers are pointing in the positive
angular direction. In this respect, please note that A and C are defined at intervals [-180; +180]
and B at intervals [-90; +90]. The RPY angles are specified as follows:
● Angle A: 1. Rotation around the Z axis of the initial system
● Angle B: 2. Rotation around the rotated Y' axis
● Angle C: 3. Rotation around the X'' axis that has been rotated twice
The RPY angles are assigned to machine data as follows:
● Angle A: ..._RPY[0]
● Angle B: ..._RPY[1]
● Angle C: ..._RPY[2]
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
19
Coordinate systems
3.1 Overview
Example
The initial coordinate system X1, Y1, Z1 is rotated around the RPY angles as follows:
● Through angle A around the Z1 axis
● Through angle B around the Y2' axis
● Through angle C around the X3'' axis
$
%
&
Z1
Z'2
Y1
Y4
X1
Y'
Z4
2
Y''3
X'2
Z''3
X''3
X4
Figure 3-1
Example of rotation through the RPY angles
SINUMERIK Run MyRobot /Direct Control
20
Programming Manual, 12/2018, A5E45237742B AB
Coordinate systems
3.2 Basic coordinate system
3.2
Basic coordinate system
In the default setting, the basic coordinate system lies at the foot point of the robot (dark red
coordinate system in the following diagram). Consequently, this produces an offset in the Z axis
compared with the internal robot coordinate system. The data is an example for a 6-axis
industrial robot.
Depending on the system specification, using the following machine data, you can shift and
rotate the basic coordinate system with respect to the internal robot coordinate system as
required. The basic coordinate system does not need to lie at the foot point of the robot.
Note
The internal robot coordinate system (yellow coordinate system in the following diagram) is
fixed.
ZIRO
YIRO
XIRO
ZRO
0&B52%;B7,5252B326> @
YRO
XRO
Figure 3-2
Basic coordinate system
Machine data
Value
Dimension
N62912 $MC_ROBX_TIRORO_POS[0]
0
mm
N62912 $MC_ROBX_TIRORO_POS[1]
0
mm
N62912 $MC_ROBX_TIRORO_POS[2]
675
mm
N62913 $MC_ROBX_TIRORO_RPY[0]
0
Degrees
N62913 $MC_ROBX_TIRORO_RPY[1]
0
Degrees
N62913 $MC_ROBX_TIRORO_RPY[2]
0
Degrees
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
21
Coordinate systems
3.2 Basic coordinate system
References
A detailed description of the ROBX robot transformation is available in the separate "ROBX
transformation function description" documentation.
SINUMERIK Run MyRobot /Direct Control
22
Programming Manual, 12/2018, A5E45237742B AB
Coordinate systems
3.3 Flange coordinate system
3.3
Flange coordinate system
3.3.1
Flange coordinate system
In the default setting, the orientation of the flange coordinate system is aligned in N62911
$MC_ROBX_TFLWP_RPY[0-2].
The offset between the manual axis and the flange is set using machine data
$MC_ROBX_TFLWP_POS[0-2].
XFL
YFL
YHP
ZHP
ZFL
XHP
XFL
YFL
ZFL
Figure 3-3
Flange coordinate system
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
23
Coordinate systems
3.3 Flange coordinate system
Machine data
Value
Dimension
N62910 $MC_ROBX_TFLWP_POS[0]
0
mm
N62910 $MC_ROBX_TFLWP_POS[1]
0
mm
N62910 $MC_ROBX_TFLWP_POS[2]
240
mm
N62911 $MC_ROBX_TFLWP_RPY[0]
180
Degrees
N62911 $MC_ROBX_TFLWP_RPY[1]
0
Degrees
N62911 $MC_ROBX_TFLWP_RPY[2]
180
Degrees
See also
Single part tools according to the NC convention (Page 24)
Single part tools according to the Robot convention (Page 25)
Multipart tools according to the NC convention (Page 27)
Multipart tools according to the Robot convention (Page 28)
3.3.2
Flange coordinate system for single part tools
For single part tools, the reference point for the tool lengths (L1, L2, L3) and the tool rotations
of the flange coordinate system are defined as in Chapter Flange coordinate system
(Page 23) .
The parameterization for a gripper tool is explained in the following as example. A distinction is
made between single part tools according to the NC convention and the Robot convention.
3.3.2.1
Single part tools according to the NC convention
XFL
XTCS
YFL
YTCS
ZFL
ZTCS
7&3
/
Figure 3-4
Parameterization of a single part tool using a gripper tool as example
SINUMERIK Run MyRobot /Direct Control
24
Programming Manual, 12/2018, A5E45237742B AB
Coordinate systems
3.3 Flange coordinate system
Machine data
Value
Dimension
N62965 $MC_ROBX_TTCFL_POS[0]
0
mm
N62965 $MC_ROBX_TTCFL_POS[1]
0
mm
N62965 $MC_ROBX_TTCFL_POS[2]
0
mm
N62966 $MC_ROBX_TTCFL_RPY[0]
0
Degrees
N62966 $MC_ROBX_TTCFL_RPY[1]
0
Degrees
N62966 $MC_ROBX_TTCFL_RPY[2]
0
Degrees
N62949 ROBX_TOOL_DIR
1
$TC_DP3[1,1 ] (Z) length L1 (for G17)
250
mm
$TC_DP4[1,1 ] (Y) length L2 (for G17)
0
mm
$TC_DP5[1,1 ] (X) length L3 (for G17)
0
mm
$TC_DPC1[1,1] 1st angle (rotation around Z)
0
°
$TC_DPC2[1,1] 2nd angle (rotation around Y)
0
°
$TC_DPC3[1,1] 3rd angle (rotation around X)
0
°
Note
With the setting ROBX_TOOL_DIR = 1, you define the tool direction according to the NC
convention, this means positive tool lengths are taken into account in the negative X, Y, Z axes.
See also
Flange coordinate system (Page 23)
Flange coordinate system (Page 23)
3.3.2.2
Single part tools according to the Robot convention
XFL
XTCS
YFL
YTCS
ZFL
ZTCS
7&3
/
Figure 3-5
Parameterization of a single part tool using a gripper tool as example
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
25
Coordinate systems
3.3 Flange coordinate system
Machine data
Value
Dimension
N62965 $MC_ROBX_TTCFL_POS[0]
0
mm
N62965 $MC_ROBX_TTCFL_POS[1]
0
mm
N62965 $MC_ROBX_TTCFL_POS[2]
0
mm
N62966 $MC_ROBX_TTCFL_RPY[0]
0
Degrees
N62966 $MC_ROBX_TTCFL_RPY[1]
180
Degrees
N62966 $MC_ROBX_TTCFL_RPY[2]
0
Degrees
N62949 $MC_ROBX_TOOL_DIR
0
$TC_DP3[1,1 ] (Z) length L1 (for G17)
250
mm
$TC_DP4[1,1 ] (Y) length L2 (for G17)
0
mm
$TC_DP5[1,1 ] (X) length L3 (for G17)
0
mm
$TC_DPC1[1,1] 1st angle (rotation around Z)
0
°
$TC_DPC2[1,1] 2nd angle (rotation around Y)
0
°
$TC_DPC3[1,1] 3rd angle (rotation around X)
0
°
Note
With the setting ROBX_TOOL_DIR = 0, you define the tool direction according to the robot
convention, this means positive tool lengths are taken into account in the positive X, Y, Z axes.
See also
Flange coordinate system (Page 23)
3.3.3
Flange coordinate systems for multipart tools
For multipart tools, the tool carrier (e.g. milling spindle) must be parameterized separately in the
ROBX robot transformation. Using corresponding machine data, you can shift or rotate the tool
acceptance point with respect to the flange coordinate system. You can thus define the end
effector with reference to the flange coordinate system.
The rotation of the tool carrier coordinate system with respect to the flange coordinate system
is entered in N62966 $MC_ROBX_TCLWP_RPY[0-2].
The reference point for programming the milling tool is the tool acceptance point.
The tool is defined with the tool lengths L1, L2 and L3.
A tool rotation can be programmed using $TC_DPC1-3[1,1].
The values correspond to RPY angles A, B and C, through which the tool is rotated with respect
to the flange coordinate system. In this case, the shift is first realized across the tool lengths,
and then the rotation in the TCP.
With the setting ROBX_TOOL_DIR = 1, you define the tool direction ($TC_DP[x,x] variables)
according to the NC convention, this means positive tool lengths are taken into account in the
negative X, Y, Z axes.
SINUMERIK Run MyRobot /Direct Control
26
Programming Manual, 12/2018, A5E45237742B AB
Coordinate systems
3.3 Flange coordinate system
The following shows the parametrization of a multipart tool using the example of a milling
spindle. A distinction is made between multipart tools according to the NC convention and the
Robot convention.
See also
Multipart tools according to the NC convention (Page 27)
Multipart tools according to the Robot convention (Page 28)
3.3.3.1
Multipart tools according to the NC convention
XFL
YFL
ZFL
ZTC
YTC
XTC
ZTCS
YTCS
7&3
XTCS
Figure 3-6
Parameterizing a multipart tool using a milling spindle as example
Machine data
Value
Dimension
N62965 $MC_ROBX_TTCFL_POS[0]
-200
mm
N62965 $MC_ROBX_TTCFL_POS[1]
0
mm
N62965 $MC_ROBX_TTCFL_POS[2]
-150
mm
N62966 $MC_ROBX_TTCFL_RPY[0]
0
Degrees
N62966 $MC_ROBX_TTCFL_RPY[1]
90
Degrees
N62966 $MC_ROBX_TTCFL_RPY[2]
0
Degrees
N62949 $MC_ROBX_TOOL_DIR
1
$TC_DP3[1,1 ] (Z) length L1 (for G17)
125
mm
$TC_DP4[1,1 ] (Y) length L2 (for G17)
0
mm
$TC_DP5[1,1 ] (X) length L3 (for G17)
0
mm
$TC_DPC1[1,1] 1st angle (rotation around Z)
0
°
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
27
Coordinate systems
3.3 Flange coordinate system
Machine data
Value
Dimension
$TC_DPC2[1,1] 2nd angle (rotation around Y)
0
°
$TC_DPC3[1,1] 3rd angle (rotation around X)
0
°
Note
With the setting ROBX_TOOL_DIR = 1, you define the tool direction according to the NC
convention, this means positive tool lengths are taken into account in the negative X, Y, Z axes.
This setting requires the following sequence of axis rotations, which is activated with the
programming command ORIVIRT1:
$MA_ORIAX_TURN_TAB_1[0]=1
$MA_ORIAX_TURN_TAB_1[1]=2
$MA_ORIAX_TURN_TAB_1[2]=3
References
Additional information on orientation tool orientation data is provided in the function description
of the ROBX transformation.
3.3.3.2
Multipart tools according to the Robot convention
XFL
YFL
ZFL
YTC
XTC
ZTC
7&3
YTCS
XTCS
ZTCS
Figure 3-7
Parameterizing a multipart tool using a milling spindle as example
SINUMERIK Run MyRobot /Direct Control
28
Programming Manual, 12/2018, A5E45237742B AB
Coordinate systems
3.3 Flange coordinate system
Machine data
Value
Dimension
N62965 $MC_ROBX_TTCFL_POS[0]
-200
mm
N62965 $MC_ROBX_TTCFL_POS[1]
0
mm
N62965 $MC_ROBX_TTCFL_POS[2]
-150
mm
N62966 $MC_ROBX_TTCFL_RPY[0]
0
Degrees
N62966 $MC_ROBX_TTCFL_RPY[1]
-90
Degrees
N62966 $MC_ROBX_TTCFL_RPY[2]
0
Degrees
N62949 $MC_ROBX_TOOL_DIR
0
$TC_DP3[1,1 ] (Z) length L1 (for G17)
125
mm
$TC_DP4[1,1 ] (Y) length L2 (for G17)
0
mm
$TC_DP5[1,1 ] (X) length L3 (for G17)
0
mm
$TC_DPC1[1,1] 1st angle (rotation around Z)
0
°
$TC_DPC2[1,1] 2nd angle (rotation around Y)
0
°
$TC_DPC3[1,1] 3rd angle (rotation around X)
0
°
Note
With the setting ROBX_TOOL_DIR = 0, you define the tool direction according to the robot
convention, this means positive tool lengths are taken into account in the positive X, Y, Z axes.
This setting requires the following sequence of axis rotations, which is activated with the
programming command ORIVIRT1:
$MA_ORIAX_TURN_TAB_1[0]=3
$MA_ORIAX_TURN_TAB_1[1]=2
$MA_ORIAX_TURN_TAB_1[2]=1
References
Additional information on orientation tool orientation data is provided in the function description
of the ROBX transformation.
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
29
Coordinate systems
3.3 Flange coordinate system
SINUMERIK Run MyRobot /Direct Control
30
Programming Manual, 12/2018, A5E45237742B AB
Programming
4
The most common methods for programming robots are described in the following.
References
Additional programming information, such as orientation programming with the A3, B3 and C3
vectors, are described in the SINUMERIK 840D sl / 828D Fundamentals programming manual.
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
31
Programming
4.1 Axial programming
4.1
Axial programming
For axial programming, you must deactivate transformation using the modal TRAFOOF
programming command. Then enter an axial position. The axial position refers to the machine
axes in the channel.
Example
N15 TRAFOOF
;N16 HOME ;HOME position
N17 G0 RA1=0.0000 RA2=-90.0000 RA3=110.0000 RA4=0.0000 RA5=-20.0000
RA6=0.0000
Figure 4-1
HOME position
SINUMERIK Run MyRobot /Direct Control
32
Programming Manual, 12/2018, A5E45237742B AB
Programming
4.2 Cartesian programming with virtual rotary axis angles
4.2
Cartesian programming with virtual rotary axis angles
For Cartesian programming, you must activate transformation using the modal TRAAORI
programming command. Then enter a Cartesian position X, Y, Z - and an orientation A, B, C.
Example
N15 TRAORI
N16 G0 X1336.4283 Y1016.1269 Z426.6311 A=136.0484 B=-32.2151
C=160.9643
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
33
Programming
4.3 Orientation programming
4.3
Orientation programming
4.3.1
Overview
The orientation is programmed via virtual rotary axis angles A, B, C. When doing this, the tool
coordinate system (TCS) is rotated with respect to the reference coordinate system. The
reference coordinate system can be either the machine coordinate system (MCS) or the
workpiece coordinate system (WCS).
4.3.2
ORIMKS/ORIWKS
You define which reference system is active for the orientation programming using the
programming commands ORIMKS and ORIWKS.
● ORIMKS: The reference system is the basic coordinate system
● ORIWKS: The workpiece coordinate system is the reference system
4.3.3
ORIVIRT1
You define the rotation sequence for interpreting orientation angles A, B, C in machine data
$MC_ORIAX_TURN_TAB_1[0-2]. The following table shows the "KARDAN" setting.
Machine data
Value
Unit
N21120 $MC_ORIAX_TURN_TAB_1[0]
1
First rotation around X (A turns around X)
N21120 $MC_ORIAX_TURN_TAB_1[1]
2
Second rotation around Y (B turns around Y')
N21120 $MC_ORIAX_TURN_TAB_1[2]
3
Third rotation around Z (C turns around Z'')
Using programming command ORIVIRT1, you activate the rotation sequence set in machine
data $MC_ORIAX_TURN_TAB_1[0-2].
Example, orientation programming (ORIMKS) without active tool
The following programming example shows the orientation programming in the machine
coordinate system (ORIMKS) without active tool.
N12 G500
N13 ORIMKS
N14 ORIVIRT1
N15 TRAORI
N16 G1 X1590 Y0 Z1784 A=0 B=-90 C=0 F2000
SINUMERIK Run MyRobot /Direct Control
34
Programming Manual, 12/2018, A5E45237742B AB
Programming
4.3 Orientation programming
$
%
&
Z
1
Z2
X3
X4
Y3
Y4
Y1
Y2
X1
X2
Z3
Z4
Figure 4-2
Example for programmed rotation A=0 B=-90 C=0 with ORIVIRT1
XFL
YFL
ZFL
ZMKS
YMKS
XMKS
Figure 4-3
Orientation programming (ORIMKS) without tool
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
35
Programming
4.3 Orientation programming
Actual value display in SINUMERIK Operate:
WCS actual value
MCS actual value
Example, orientation programming (ORIMKS) with active tool
The following programming example shows orientation programming in the workpiece
coordinate system (ORIWKS) with active tool (configuration see Chapter Multipart tools
according to the Robot convention (Page 28)).
;$P_UIFR[1]=CTRANS(X,1669,Y,0,Z,490):CROT(X,0,Y,0,Z,90)
N12 T=“T8MILLD20“ D1 ; $TC_DP3[1,1]=135
N13 ORIWKS
N14 ORIVIRT1
N15 TRAORI
N16 G54
N17 G1 X0 Y-71 Z959 A=0 B=0 C=-90 F2000
SINUMERIK Run MyRobot /Direct Control
36
Programming Manual, 12/2018, A5E45237742B AB
Programming
4.3 Orientation programming
ZW
X
W
YW
ZMKS
YMKS
XMKS
Figure 4-4
Orientation programming (ORIWKS)
Actual value display in SINUMERIK Operate:
WCS actual value
MCS actual value
References
Further types of orientation programming are included in the "SINUMERIK 840D sl / 828D
Fundamentals" and "SINUMERIK 840D sl / 828D Job Planning" programming manuals.
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
37
Programming
4.4 Cartesian PTP travel
4.4
Cartesian PTP travel
4.4.1
Function
Using this function, you can approach a Cartesian position with synchronous axis motion.
When an axis passes through a singularity, the feed velocity can either be reduced or the axis
is overloaded. Using the "PTP travel" function, you can bypass these problems by approaching
a Cartesian position with synchronous axis motion. You also have the possibility of changing
the joint position.
References
General Information about Cartesian PTP travel is included in the "SINUMERIK 840D sl / 828D
Expansion Functions" manual, Chapter "Cartesian PTP travel".
4.4.2
Activation
You activate this function using the PTP programming command. You deactivate this function
using the CP command. Both commands are contained in G group 49.
● PTP command: The programmed Cartesian position is approached with a synchronized
axis motion (PTP = point to point).
● CP command: The programmed Cartesian point is approached with a path motion (CP =
continuous path) - default setting
● PTPG0 command: The programmed Cartesian PTP motion is automatically executed with
each G0 block. Afterwards, CP is activated again.
SINUMERIK Run MyRobot /Direct Control
38
Programming Manual, 12/2018, A5E45237742B AB
Programming
4.5 Robot position STAT (status)
4.5
Robot position STAT (status)
A Cartesian position must be able to be converted uniquely into an axis angle. Enter the
position of the joints under the STAT address. The STAT address contains a bit for every
possible setting as a binary value. The following 3 positions are available for the ROBX robot
transformation:
● Bit 0: Shoulder left/right
● Bit 1: Elbow Up/Down
● Bit 2: Handflip/no Handflip
The following programming examples illustrate the use of the STAT command. The basis is the
configuration from Chapter Multipart tools according to the Robot convention (Page 28).
STAT = 0 ('B000')
Programming
Graphic
STAT = 0 ('B000')
Bit 0: 0 Shoulder right
Bit 1: 0 Elbow Down, A3 < 0°
Bit 2: 0 no Handflip, A5 > 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B000' F2000
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
39
Programming
4.5 Robot position STAT (status)
STAT = 1 ('B001')
Programming
Graphic
STAT = 1 ('B001')
Bit 0: 1 Shoulder left
Bit 1: 0 Elbow Down, A3 < 0°
Bit 2: 0 no Handflip, A5 > 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B001' F2000
STAT = 2 ('B010')
Programming
Graphic
STAT = 2 ('B010')
Bit 0: 0 Shoulder right
Bit 1: 1 Elbow Up, A3 ≥ 0°
Bit 2: 0 no Handflip, A5 > 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B010' F2000
SINUMERIK Run MyRobot /Direct Control
40
Programming Manual, 12/2018, A5E45237742B AB
Programming
4.5 Robot position STAT (status)
STAT = 3 ('B011')
Programming
Graphic
STAT = 3 ('B011')
Bit 0: 1 Shoulder left
Bit 1: 1 Elbow Up, A3 ≥ 0°
Bit 2: 0 no Handflip, A5 > 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B011' F2000
STAT = 4 ('B100')
Programming
Graphic
STAT = 4 ('B100')
Bit 0: 0 Shoulder right
Bit 1: 0 Elbow Down, A3 < 0°
Bit 2: 1 Handflip, A5 ≤ 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B100' F2000
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
41
Programming
4.5 Robot position STAT (status)
STAT = 5 ('B101')
Programming
Graphic
STAT = 5 ('B101')
Bit 0: 1 Shoulder left
Bit 1: 0 Elbow Down, A3 < 0°
Bit 2: 1 Handflip, A5 ≤ 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B101' F2000
STAT = 6 ('B110')
Programming
Graphic
STAT = 6 ('B110')
Bit 0: 0 Shoulder right
Bit 1: 1 Elbow Up, A3 ≥ 0°
Bit 2: 1 Handflip, A5 ≤ 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B110' F2000
SINUMERIK Run MyRobot /Direct Control
42
Programming Manual, 12/2018, A5E45237742B AB
Programming
4.5 Robot position STAT (status)
STAT = 7 ('B111')
Programming
Graphic
STAT = 7 ('B111')
Bit 0: 1 Shoulder left
Bit 1: 1 Elbow Up, A3 ≥ 0°
Bit 2: 1 Handflip, A5 ≤ 0°
Example:
N14 T="T8MILLD20" D1 ; $TC_DP3[1,1 ]=132.95
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT='B111' F2000
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
43
Programming
4.6 Axis angular position TU (turn)
4.6
Axis angular position TU (turn)
In order that you can uniquely approach an axis angle that is greater than ±180°, then you must
program this information under address TU (turn). Address TU represents the sign of the axis
angle. This allows an axis angle of |θ| < 360° to be uniquely approached without any ambiguity.
For each axis that is involved in the transformation, there is a bit in the TU variable. The
particular bit indicates the traversing direction.
● TU bit=0: 0° ≤ θ < 360°
● TU bit=1: -360° < θ < 0°
For linear axes, set the TU bit to 0. For axes with a traversing range >±360°, the axis always
moves along the shortest path as the axis position cannot be specified uniquely by the TU
information. If you do not program TU for a position, then the axis always moves along the
shortest path. In the following example, the shortest path is in the negative direction.
6WDUWLQJ SRVLWLRQ
3RVLWLYH GLUHFWLRQ
1HJDWLYH GLUHFWLRQ
$
r 78 ELW
$
r 78 ELW
7DUJHW SRVLWLRQ
Figure 4-5
Example - axis angular position TU
SINUMERIK Run MyRobot /Direct Control
44
Programming Manual, 12/2018, A5E45237742B AB
Measuring cycles
5
5.1
Information about the measuring cycles
●
Use the measuring cycles in conjunction with standard industrial robots with SINUMERIK
840Dsl - as described in the Programming Manual Measuring Cycles.
●
It is essential that you calibrate a robot in order to improve the accuracy of the measurement
results. This increases the absolute precision of the robot. Carefully note that kinematic
robot errors flow into the measurement result. As a consequence, this can result in
increased form and position tolerances/deviations of the programmed features. You must
recalibrate the probe each time that a robot has been recalibrated. Remeasure reference
point Z0 when calibrating the probe length.
●
Carefully note the specific secondary conditions for the kinematics:
- Before calling the measuring cycle, activate the robot transformation (TRAORI).
- If you are using a probe, calibrate this at the robot kinematics being used (radius of the
probe sphere/ball and probe length). Recalibrate the probe after each robot calibration.
- For all measurements that you perform, you must always align the probe orthogonally to
the workpiece. To do this use the "Align plane" measuring cycle or define your own
values.
Note
The correction values are not automatically traversed through, but added as offset to the
actual orientation angles (A, B, C). You must then manually traverse the axes through
the correction values (A=0 B=0 C=0). Ensure that you avoid any collisions.
- CYCLE800 is not available in combination with ROBX. Inclined planes in WCS, which
cannot be emulated using the standard G17, G18, G19 planes, must be programmed
using TOROT.
- The basic robot configuration that you use when making measurements (Shoulder left /
Shoulder right ; Elbow Up / Elbow Down; Handflip - programmable with PTP and STAT/
TU) should be identical for the subsequent technology-specific tasks. This is how you
avoid kinematic-specific inaccuracies.
References
You can find additional information about the measuring cycles in the Programming Manual,
Measuring Cycles:
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
45
Measuring cycles
5.1 Information about the measuring cycles
SINUMERIK Run MyRobot /Direct Control
46
Programming Manual, 12/2018, A5E45237742B AB
Examples
6
6.1
Program example - programming commands
The following part program illustrates the commands explained in Chapter Programming
(Page 31) as example:
N1 G90 ; activation of an absolute position
N2 T=“T8MILLD20“ D1 M6 ; activation of a tool
N3 TRAORI ; activation of ROBX transformation for Cartesian traversing
;$P_UIFR[1]=CTRANS(X,1500,Y,0,Z,400):CROT(X,0,Y,0,Z,-90); actual value of the work offset
G54
N4 G54 ; activation of the work offset
N5 M3 S20000 ; programming the main spindle
N6 ORIWKS ; activation of the orientation reference WCS
N7 ORIVIRT1 ; activation of the turning sequence from $MC_ORIAX_TURN_TAB_1[0-2]
N8 CYCLE832(0.01,_FINISH,1) ; activation of high-speed settings
;HOME ; defines the start position
N9 TRAFOOF ; deactivates the transformation
; traverse robot axes/channel axes with rapid traverse
N10 G0 RA1=0.0000 RA2=-90.0000 RA3=110.0000 RA4=0.0000 RA5=-20.0000 RA6=0.0000
N11 TRAORI
N12 G54
; traverse PTP block with explicit STAT/TU data. STAT and TU are only taken into account
when PTP travel is active.
N13 G0 PTP X1369.2426 Y956.7528 Z502.5517 A=135.5761 B=-33.2223 C=161.1435 STAT=’B010’
TU=’B001011’
N14 G0 X1355.1242 Y1014.9394 Z424.9695 A=135.8491 B=-33.1439 C=160.9941 STAT=’B010’
TU=’B001011’
; traverse CP block (linear motion)
N15 G1 CP X1354.8361 Y1016.1269 Z423.3862 A=136.0635 B=-33.0819 C=160.8770 F1000
N16 G1 X1336.4283 Y1016.1269 Z426.6311 A=136.0484 B=-32.2151 C=160.9643 F2000
N17 G1 X1317.9831 Y1016.1269 Z429.6730 A=136.0175 B=-31.3394 C=161.0655
;HOME
N18 TRAFOOF
N19 G0 RA1=0.0000 RA2=-90.0000 RA3=110.0000 RA4=0.0000 RA5=-20.0000 RA6=0.0000
N20 M30; end of program
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
47
Examples
6.2 Program example - measuring cycles
6.2
Program example - measuring cycles
The program example shows how to use measuring cycles corresponding to the scene shown
in the diagram.
<
;
;
*
<
*
Figure 6-1
Robot scene for program example - measuring cycles
SINUMERIK Run MyRobot /Direct Control
48
Programming Manual, 12/2018, A5E45237742B AB
Examples
6.2 Program example - measuring cycles
Program example
; home ;defined start position
N1 G0 RA1=0 RA2=-90 RA3=110 RA4=0 RA5=-20 RA6=0
N2 TRAORI ;activation of ROBX transformation for Cartesian traversing
; $P_UIFR[1]=CTRANS(X,(1767),Y,(197),Z,907):CROT(X,0,Y,0,Z,-52)
; actual value of the work offset G54 (X0,G54 ; Y0,G54)
N3 G54 ;activation of the work offset
N4 G0 A0 B0 C0
; alignment of the orientation axes orthogonally to the X,Y,Z axes of the work offset
activated in G54
N5 G0 X20 Y20 ; starting point in X,Y (pole) for measuring cycle 961
N6 G0 Z-10 ; starting point in Z for measuring cycle 961
N7 CYCLE961(30106,10001,1,134,28,-28,10,20,20,,,0,0,-52.131723,,1,10,100,1,,1,)
; determination of the zero in X,Y and the rotation of the workpiece around the Z axis
N8 G0 Z50 ; safety clearance for repositioning
N9 G0 A0 B0 C0
; alignment of the orientation axes orthogonally to the X,Y,Z axes of the work offset
activated in G54
N10 G0 X-70 Y60 ; starting point in X,Y (pole) for measuring cycle 978
N11 G0 Z20 ; starting point in Z for measuring cycle 978
N12 CYCLE978(100,10001,,1,0,30,100,3,2,1,"",,0,1.01,1.01,-1.01,0.34,1,0,,1,1)
; determination of the zero in Z
N13 G0 Z50 ; safety clearance for repositioning
N14 G0 A0 B0 C0
; alignment of the orientation axes orthogonally to the X,Y,Z axes of the work offset
activated in G54
N15 G0 X-107 Y-117 ; starting point in X,Y (pole) for measuring cycle 998
N16 G0 Z20 ; starting point in Z for measuring cycle 998
N17 CYCLE998(100106,1,,1,1,0,0,30,100,,,,103,,40,115,1,,1,)
;determination of the rotation around the X,Y axis of the workpiece with reference to MCS
N18 G0 Z50 ; safety clearance for repositioning
N19 G0 A0 B0 C0
; alignment of the orientation axes orthogonally to the X,Y,Z axes of the work offset
activated in G54
N20 G0 X-70 Y-60 ; starting point in X,Y (pole) for measuring cycle 978
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
49
Examples
6.2 Program example - measuring cycles
N21 G0 Z20 ; starting point in Z for measuring cycle 978
N22 CYCLE978(100,10001,,1,0,30,100,3,2,1,"",,0,1.01,1.01,-1.01,0.34,1,0,,1,1)
; determination of the zero in Z
N23 G0 Z50 ; safety clearance for repositioning
N24 G0 A0 B0 C0
; alignment of the orientation axes orthogonally to the X,Y,Z axes of the work offset
activated in G54
N25 G0 X20 Y20 ; starting point in X,Y (pole) for measuring cycle 961
N26 G0 Z-10 ; starting point in Z for measuring cycle 961
N27 CYCLE961(30106,10001,1,134,28,-28,10,20,20,,,0,0,-52.131723,,1,10,100,1,,1,)
; determination of the zero in X,Y and the rotation of the workpiece around the Z axis
N28 G0 Z50 ; safety clearance for repositioning
; home ;defined start position
N29 G0 RA1=0 RA2=-90 RA3=110 RA4=0 RA5=-20 RA6=0
N30 M30; end of program
Notes relating to the program example
● Block number N4 - N13: These are used to measure the workpiece the first time. You can
omit these, if the workpiece position is known.
● Block number N17: You must use measuring cycle 998 "Align plane" in order to avoid
measurement inaccuracies. With this cycle, the probe measuring ball is aligned
orthogonally to the workpiece. You can only correctly measure the zeros in the X, Y, Z axes
of the workpiece once the plane has been aligned.
See also
Measuring cycles (Page 45)
SINUMERIK Run MyRobot /Direct Control
50
Programming Manual, 12/2018, A5E45237742B AB
Service & support
A unique and complete range of services over the entire life cycle
Irrespective whether you are a machine manufacturer, solution provider or plant operator: The
service offering from Siemens Industry Automation and Drive Technologies includes
comprehensive services for a wide range of different users in all sectors of the manufacturing
and process industry.
To accompany our products and systems, we offer integrated and structured services that
provide valuable support in every phase of the life cycle of your machine or plant - from
planning and implementation through commissioning to maintenance and modernization.
Our Service & Support accompanies you worldwide in all matters concerning automation and
drives from Siemens. We provide direct on-site support in more than 100 countries through all
phases of the life cycle of your machines and plants.
An experienced team of specialists provides you with active support and bundled know-how.
Regular training courses and intensive contact among our employees - even across continents
- ensure reliable service in the most diverse areas
Technical consulting
Support with the planning and design of your project: From detailed analysis of the current
situation and definition of objectives through advice on products and systems through to
designing the automation solution.
Service & support
Technical Support
Competent advice for technical questions with a broad spectrum of carefully tailored services
for all our products and systems. The technical support can be found at the following Internet
address.
Training
Extend your market lead - with practice-oriented know-how directly from the manufacturer.
Your local SIEMENS office will provide you with information about the training courses that are
available.
Engineering support
Support with project engineering and development with services tailored to requirements from
configuration through to implementation of an automation project.
Field service
Our field service offers you services for commissioning and maintenance to ensure that your
machines and plants are always available.
Spare parts
In every sector worldwide, plants and systems are required to operate with ever increasing
availability. We will provide you with the support you need to prevent a standstill from occurring
in the first place: with a worldwide network and optimum logistics chains.
Repairs
Downtimes cause problems in the plant as well as unnecessary costs. We can help you to
reduce both to a minimum - with our worldwide repair facilities.
Tuning
Over the operating life of machines or plants, considerable potential arises for increasing
productivity or saving costs. In order to track these down for you, we offer you a whole range
of services for optimization.
Modernization
You can also rely on our support when it comes to modernization - with comprehensive
services from the planning phase all the way to commissioning.
Service programs
Our service programs are selected service packages for an automation and drives system or
product group. The individual services are coordinated with each other to ensure smooth
coverage of the entire life cycle, and support optimum use of your products and systems.
SINUMERIK Run MyRobot /Direct Control
52
Programming Manual, 12/2018, A5E45237742B AB
Service & support
The services of a service program can be flexibly adapted at any time and used independently
of each other.
Examples of service programs:
● Service contracts
● Plant IT Security Services
● Life Cycle Services for Drive Engineering
● SIMATIC PCS 7 Life Cycle Services
● SINUMERIK Manufacturing Excellence
● SIMATIC Remote Support Services
The advantages at a glance:
● Minimized downtimes for increased productivity
● Optimized maintenance costs due to a tailored scope of services
● Costs that can be calculated and therefore planned
● Service reliability thanks to guaranteed response times and spare part delivery times
● Customer service personnel supported and relieved of additional tasks
● Comprehensive service from a single source, fewer interfaces and improved know-how
Contact persons
For you on-site, worldwide: Partner for consulting, sales, training, service, support, spare parts,
etc. for the complete offering from Industry Automation and Drive Technologies. You can find
your personal contact in our contact database in the Internet.
SINUMERIK Run MyRobot /Direct Control
Programming Manual, 12/2018, A5E45237742B AB
53
|