Académique Documents
Professionnel Documents
Culture Documents
Function
The cycle is used during milling to swivel on any type of
surface so that it can be machined and/or measured. By
calling the appropriate NC functions, the cycle converts the
active workpiece zeroes and tool offsets to refer to the
inclined surface, taking account of the kinematic chain on
the machine, and positions the rotary axes (optional).
Swiveling can be implemented either axially, as a
projection angle or as a solid angle.
Before the rotary axes are positioned, the linear axes can
be retracted if desired.
Machine kinematics
1. Swivel-mounted toolholder (swivel head) type T
2. Swivel-mounted workholder (swivel table) type P
3. Mixed kinematics from 1 and 2 type M
Important
A tool (tool cutting edge D>0) and the zero offset (ZO) with
which the workpiece was scratched or measured must be
programmed before the swivel cycle is first called in the main
program. This zero offset is converted to the appropriate
machining plane in the swivel cycle. The ZO value remains
unchanged. Translational and rotational components are saved
in system frames (swivel frame), tool reference (TOOLFRAME),
toolholder (PARTFRAME) and workpiece reference
(WPFRAME) (see HMI parameters, active ZO).
Reference point
before rotation
Rotation
_FR (retraction)
Do not retract
Traverse axis Z
Traverse axis Z, XY (only when CYCLE800 is
active in the start-up menu).
The retraction positions can be entered in the start-up
menu display.
Note:
When programming with standard cycles and high settings for the
retraction plane and large swivel angles (through 90 degrees with
multiface machining), it is possible that the traversing area of the
machine may be too small (software end position violation), as the
order of approach is always the machining plane (for G17 X, Y)
first, followed by the infeed axis (Z). The retraction plane can be
reduced to optimize this behavior.
The following help displays relate to machining plane G17 (tool axis Z).
A, B, C (rotations)
Rotations (axial, projection angle)
3.16.3 Parameters
Programming
CYCLE800(_FR, _TC, _ST, _MODE, _XO, _YO, _ZO, _A, _B, _C, _X1, _Y1, _Z1, _DIR)
Parameters
Programming example 1
Set swivel plane ZERO
%_N_SWIVEL_0_SPF
;$PATH=/_N_WCS_DIR/_N_HAA_SWIVEL_WPD
G54
CYCLE800(1,,0,57,0,0,0,0,0,0,0,0,0,-1)
M2
Programming example 2
Scratching point G57 25
Face milling and milling a circular pocket on 15 grd
Swivel edge
a machining plane swiveled through 15 degrees
30 40
Y
X
%_N_SWIVEL_CIRCULARPOCKET_SPF
;$PATH=/_N_WCS_DIR/_N_HAA_SWIVEL_WPD
N12 T=MILL_26mm
N14 M6
N16 G57
N18 CYCLE800(1,,0,57,0,0,0,0,0,0,0,0,0,1)
N20 M3 S5000
N22 CYCLE71(50,2,2,0,0,0,80,60,0,4,15,5,0,2000,31,5) ;Face milling
N24 CYCLE800(1,,0,57,0,25,0,-15,0,0,0,0,0,-1)
N30 T=MILL_10mm
N32 M6
N34 M3 S5000
N36 POCKET4(50,0,1,-15,20,0,0,4,0.5,0.5,1000,1000,0,11,,,,,) ;Circular pocket
N38 POCKET4(50,0,1,-15,20,0,0,4,0,0,1000,1000,0,12,,,,,)
N40 M2
Access
Start-Up > Swivel
Softkey cycle
Only available if the IBN screen form is active.
Machine Data
To use the swiveling cycle, the machine data below must be set as
follows (minimum requirement):
Machine data with an exact value assignment (G)
is machine data that must not be changed
Machine data with a variable value assignment (V)
is machine data where the default value can be set
to a higher or lower value.
Setting Date
SD no. SD identifier Value Comment Modifiabl
e
42980 $SC_TOFRAME_MODE 1000 See note 2) V
1) For note on machine data, see this page and the next
Note on MD 30455
This allows the axis to traverse for G90 with DC (shortest
path); see user cycle TOOLCARR.spf
Save data
Soft key record
Current swivel data record is saved as the parts program.
The parts program corresponds to the name of the swivel
data record.
Delete data
;Soft key record
Current swivel data record is deleted.
You must set up a swivel data set for every swivel head, swivel
table or combination of both.
Swivel data records can be declared in several channels.
The number of swivel data records is limited by the following
machine data:
MD 18088: MM_NUM_TOOL_CARRIER or
MD: NUM_CHANNELS (Number of channels option)
MD 28085: MM_LINK_TOA_UNIT
The swivel data record is assigned to the tool data by parameters
$TC_CARR1[n] to $TC_CARR40[n].
Retraction/Retraction position
$TC_CARR38[n] X; $TC_CARR39[n] Y; $TC_CARR40[n]
Z
n No. of swivel data record
The start-up engineer determines whether the options
'Retract axis Z' and 'Retract axes Z,X,Y' are possible in the
input menu for the swivel cycle.
The mode of retraction can be modified in user cycle
TOOLCARR.spf (marker _M41, _M40) if necessary. If user
cycle TOOLCARR.spf is not modified, the retraction
position is approached as an absolute machine position.
Swivel head (type T) Swivel table (type P) Swivel head + swivel table (type M)
References:
Description of Functions 840D/840Di/810D
- /W1/ "Tool Offset"
- (3/2 axes inclined machining)
ISO 841-2001 or DIN 66217
Swivel head
I3 distance from the tool holder to the
pivot point of the 1st rotary axis
l2 distance from the pivot point of the 1st rotary axis
Pivot point of the 2nd rotary axis
I1 closure of the vector chain I1=-(I2+I3)
Swivel table
I2 distance from the tool holder to the
Pivot point of the 2nd rotary axis
I3 distance from the pivot point of 1st rotary axis to the
Pivot point of the 2nd rotary axis
I4 closure of the vector chain I4=-(I2+I3)
Display options
$TC_CARR37[n] (n swivel data record)
If the relevant display options are not set, the
value will not be displayed in the input screen
form (see subsection 3.16.1).
8 7 6 5 4 3 2 1 0 (Tens digits)
0: Axial
1: Axial + angle of projection
2: Axial + angle of projection + solid angle
Rotary axis 1
0: automatic
1: manual
Rotary axis 2
0: automatic
1: manual
Selection axis feed direction
0: no
1: Reference to rotary axis 1
2: Reference to rotary axis 2
Correct tool tip
0: no
1: yes
reserved
Retraction mode
0: Z axis
1: Z axis or ZXY axis
Automatic compensation with Hirth tooth system
0: no
1: 1st rotary axis
2: 2nd rotary axis
3: 1st and 2nd rotary axis
Swivel data record change / tool change 1)
0: no 2)
1: manual automatic
2: automatic automatic
3: no 2)
4: manual manual
5: automatic manual
1) Relevant for ShopMill/ShopTurn only.
2) If a swivel data record change has not been agreed, the setting
"Tool change automatic/manual" is not relevant.
Direction
Rotary axis 1
Rotary axis 2
no
When direction of travel is selected in the swivel cycle
interactive screen form, reference to rotary axis 1
or 2.
Because of the angular range of rotary axes of
machine kinematics, the NCU calculates 2 possible
solutions. One of these solutions is normally
appropriate technologically. The selection as to which
rotary axis the two solutions must refer to is made in
the start-up menu. The selection of the solution to be
applied is made in the interactive screen form for the
swivel cycle.
With "no", the direction parameter is not displayed in
the operating screen.
Correct tool
no
yes
"Correct tool" display in the swivel cycle interactive
screen form. The function correct tool requires the
option 5-axis transformation (TRAORI).
In the user cycle, query TOOLCARR.spf Variable
GUD7 _TC_N_WZ.
If the axes of the NCU are known, the same axis identifiers
of the relevant NC rotary axes must be selected (see
automatic mode).
If the axes of the NCU are unknown, you can use any axis
designations (up to 6 letters or numbers).
Mode
$TC_CARR37[n] see display options
Automatic
NC rotary axes are automatically moved to the
appropriate swivel angle
Manual
Rotary axes are moved manually by the operator
to the appropriate position, e.g. "very simple
machines" with manually adjustable rotary axes
(measuring system: steel gauge) The swivel angle
to be set is displayed in messages 62180/62181.
Semi-automatic
In "semi auto" mode, the messages 62180/62181
(display of the angles to be set) are not displayed.
Application: Manual rotary axes that are positioned at
the calculated angle by an appropriate mechanism.
For this purpose, the machine manufacturer can
modify user cycle TOOLCARR to pass the swivel
angle (local variable _A1, A2) to a subroutine
(markers _M21... for manual rotary axes).
Angular range
$TC_CARR30[n] .. $TC_CARR33[n]
A valid angular range must be assigned to each
rotary axis. This does not have to be the software
end position range of the particular rotary axis.
With modulo axes, enter a traversing range of
between 0 and 360 degrees.
Y
X
40
I2
C
I1
0,03
23
A
I3
L1 = 30
L1 corresponds to tool length
V2
V1
45 ?
172 I2
I1 Rotary axis 1
93.8
I3 Point on rotary
axis 1 Z
Point on rotary
axis 2 Y
Reference point of X
tool
Example 3 Table 2
Rotary axis vector V1: Rotary axis B rotates about Y
Rotary axis vector V2: Rotary axis C rotates about Y and about Z
Offset vector I2: Distance between machine reference point
and pivot point on rotary axis 1
Offset vector I3: distance between pivot point of the rotary axis 1
and pivot point on rotary axis 2
Offset vector I4: Closure of vector chain I4=-(I2+I3)
Reference point
of table
Rotary axis 2 Rotary axis 1
V2
160 I3
V1
45
I4
190
I2
Z 380 95
Reference point of
machine
Y
X
Example 4 MIXED 2
In this example, the reference points of the toolholder and
the tool are identical, as well as the reference points of the
table and the machine.
The following thus applies: I1=-I2 and I3=-I4
This results in a closed system.
The advantage of this method is that the position values do
not change in the unswiveled state, regardless of whether the
swivel head is selected.
Z
V1
Y
X Rotary axis of
swivel head
Point on rotary
100 I2 I1 axis of swivel
head
Y V2
I3
200 I4 Rotary axis of
table
Table
Y
X
300
Programming
CYCLE800(_MODE, _TC1, _A1, _A2, _TC2
Parameters
TOOLCARR.spf
Mark: _M01..._M11
E_TCARR.spf
(F_TCARR.spf)
Cycle end
Calculation Init:
of valid swivel Mark: _M40 Init Rewriting the vectors of the
data record kinematic chain is possible, for
example, temperature compen-
sation of the vectors or taking
Sviwel data record invalid W-axis into account in boring
machines.
Error messages
No rectraction
Mark:
_M20 Swivel rotary axes 1 and 2 automatically
- Calculating the rotary
axis angle
_M21 _M25 Swivel rotary axis 2 automatically,
- Displaying the angle values to rotary axis 1 manually
set (manual rotary axes) _M22 Swivel rotary axis 1 automatically
- Deactivating the 5-axis _M23 _M27 Swivel rotary axis 1 manually
transformation _M30 _M32 Swivel rotary axis 1 automatically,
rotary axis 2 manually
_M31 _M33 _M35 _M37 Swivel rotary axes 1, 2
No traversal of manually
rotary axes
End of cycle
no
no
no
no
no
no
End of cycle
Note on ShopMill/ShopTurn
In the user cycle TOOLCARR.spf,
cycle E_SWIV_H or F_SWIV_H is called under
ShopMill/ShopTurn (see markers _M2 to _M9).
Modification examples:
If the rotary axes (swivel head/table) are not to be
positioned for swivel data change/tool change, the
call of cycle E_SWIV_H can be commented out at
the relevant labels.
If the rotary axes are to move to a certain position,
an angle value can be transferred in parameters
Par 2, Par 3.
_M20:
IF (_TC_N_WZ==1) AND (NOT $P_SEARCH) ;Correct tool
AND (NOT $P_ISTEST) ;yes=1 no=0
TCARR=0
PAROTOF
TRAORI
N820 G0 G90
AX[AXNAME($TC_CARR35[_TC1])]=_A1
AX[AXNAME($TC_CARR36[ _TC1])]=_A2
TRAFOOF
TCARR=_TC1
ELSE ;No tool correction
N820 G0 G90
AX[AXNAME($TC_CARR35[_TC1])]=_A1
AX[AXNAME($TC_CARR36[ _TC1])]=_A2
ENDIF
GOTOF _MEND
Explanation
Alarm source CYCLE800
Alarm number Alarm text Explanation, remedy
61180 "No name assigned to swivel data No name assigned to swivel data record
record even though machine data even though several swivel data records
$MN_MM_NUM_TOOL_CARRIER > exist
1" ($MN_MM_NUM_TOOL_CARRIER>0) or
no swivel data record defined
($MN_MM_NUM_TOOL_CARRIER=0)
61181 "NCK software version too old (no TOOLCARRIER functionality as from
TOOLCARRIER functionality)" NCU 6.3xx
61182 "Name of swivel data record See Swivel cycle start-up CYCLE800
unknown" Kinematics Name (swivel data record)
61183 "Retraction mode GUD7 _TC_FR See Swivel cycle start-up CYCLE800
outside value range 0..2" Retraction;
1st transfer parameter CYCLE800(x,...) is
faulty >2
61184 "No solution can be found with current
angle inputs"
61185 "No or incorrect (min>max) angle Check start-up of swivel cycle
ranges declared for rotary axes" CYCLE800
61186 "Invalid rotary axis vectors" Start-up of swivel cycle
CYCLE800: missing or incorrect entry for
rotary axis vector V1 or V2
61187 "Block search computation end of Select block search with calculation
block not valid for SWIVEL" contour
61188 "No axis name Start-up of swivel cycle
1st rotary axis declared" CYCLE800: missing entry under rotary
axis 1 identifier
62180 "Set rotary axes x.x [deg]" Angles to be set for manual rotary axes
62181 "Set rotary axes x.x [deg]" Angle to be set for manual rotary axis
Typical display of the swivel angle to be set for a manual
rotary axis in CYCLE800
62180 "Set rotary axes B: 32.5 [deg]"