Professional Documents
Culture Documents
10
11
12
13
14
15
16
Becomes:
rotaxis1 = vecy #Zero
rotdir1 = -vecx #Direction
17
Secondary
Option 1
Secondary
Option 2
XY
XZ
YZ
XZ
XY
YZ
YZ
XY
XZ
Secondary Zero
Primary Zero
18
Output
+90
A90
-45
A-45
-90
A-315
+180
A135
+135
A270
-135
A-135
19
Output
+90
A90
-45
A45
-90
A315
+180
A135 direction?
+135
A270
-135
A135
20
#Set the type from the angle limit settings (ignore these)
21
#Set the type from the angle limit settings (ignore these)
22
23
24
25
:1
#Attempt to adjust the primary axis from secondary?
#Allows primary axis to flip 180 to satisfy secondary
#0 = Off
#1 = Use method when secondary is out of limit
#Use with pri_limtyp = one to keep secondary as controlling
#limit when limit tripped
#Use with pri_limtyp = two to allow 180 degree reposition
:0
:0
:0
:0
:0
:0
26
27
28
saxisz
: -100
: -100
29
30
The high feedrate is taken from question 38. or 1538. in the post.
38. Rapid feedrate? 300.0
1538. Rapid feedrate (metric)? 10000.0
:0
#Rapid rotary motion only feed options
#0 - convert to G0 rapid
#1 - apply rapid feedrate
:2
#0
#1
#2
#3
#Output feedrate
- programmed feedrate
- inverse feedrate
- inverse feedrate on 5 axis continuous
- inverse feedrate on motion with rotary
31
inv_fd_typ : 0
#0
#1
#2
#3
32
:0
33
:1
34
:3
#0
#1
#1
#2
#3
#4
35
36
37
use_stck_typ uses the values from job setup to fill the limit
variables when set to 1. When set to 2, the values are used as
they are set in the post.
38
39
:0
Find this section in the post to change the strings for the clamp
code.
# Primary axis lock/unlock
spunlock M79 # Unlock Rotary Table
splock M78 # Lock Rotary Table
# Secondary axis lock/unlock
ssunlock M11 # Unlock Rotary Table
sslock M10 # Lock Rotary Table
40
:
:
:
:
:
:
:
:
:
1
0
0
0
0
1
0
-1
0
41
42
43
44
mi2 = 1:
G0 G54
G43 H1
G1 G91
X.2272
45
46
:1
47
mi7 disables the post generated retract and approach from the
part. The moves should be disabled when the user has made
moves in the toolpath to clear the part at a rotary reposition or an
obstacle is present where the retract is occurring. The rotary axis
moves required to stay in the rotary limits are generated.
mi8 controls when the retract and approach are used relative to
the toolpath toolchanges and 5 axis chains. This is needed
because the post does not know if the user has made the retract
and approach part of the toolpath at toolchanges and the
beginning and end of 5 axis chains with multiple cuts.
48
49
50
T1 M6
G0 G54 G90 Y-.25 C0. B-90. S2139 M3
G45 D31 X.25
G43 H1 Z-1.375 M8
X.1
G1 X0. F6.42
51
Enter the value to be output with the MillPlus G74 home position
in the mpgen5x_millplus post.
52
53
:0
Look for the booleans and select the proper postlines based on
the setting of 'top_map'.
if top_map,
if not(top_map),
54
#Tool change
55
The end of file postblock, 'peof', is called to write the NC code for
the program end. This postblock calls 'pretract'.
peof
#End of file for non-zero tool
toolchng = one
!gcode #to see that this is the EOF in pretract
pretract
56
plinout
pcirout
p_safe_z
#Safe Z retract move with reposition, see mr6
if safe_z_ret,
[
gcode = zero
za = safe_z_ret
p_goto_pos
]
57
pcan1
pcan2
pcant_out
58
59
60
61
62
63
64
65
66
67
68