No preview if the code is in a sub
- ROBERTOBAG
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
29 Mar 2023 11:42 #267794
by ROBERTOBAG
No preview if the code is in a sub was created by ROBERTOBAG
I noticed that if I insert a sub in the G-code it is not considered in the preview.
example:
o<fresa4> call
;this piece of code is visible
G00 X-450.42 Y240.56
G00 Z -10.00
....
...
..
o<fresa4> sub
;this part of the code is not visible
M6T2
G55
M114
M3S18000
F3000
G40
G00 X-450.42 Y240.56
G00 Z -10.00
G02 X-446.44 Y211.42 R20.80
G02 X-475.58 Y207.44 R20.80
G00 Z 0.00
G40
M5
G54
o<fresa4> endsub
example:
o<fresa4> call
;this piece of code is visible
G00 X-450.42 Y240.56
G00 Z -10.00
....
...
..
o<fresa4> sub
;this part of the code is not visible
M6T2
G55
M114
M3S18000
F3000
G40
G00 X-450.42 Y240.56
G00 Z -10.00
G02 X-446.44 Y211.42 R20.80
G02 X-475.58 Y207.44 R20.80
G00 Z 0.00
G40
M5
G54
o<fresa4> endsub
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
Less
More
- Posts: 1201
- Thank you received: 103
31 Mar 2023 08:30 #267956
by bkt
Replied by bkt on topic No preview if the code is in a sub
Ciao Roberto .... normalissimo, se intendi che non vedi il codice dentro la sub a macchina ferma ... se vuoi vederlo devi scrivere la sub nello stesso file del programma generale .... che però potrebbe essere molto scomodo .... se lo esegui però, anche su dryrun, dovresti vederlo ..... se usi i parametri... non è detto che accada .... Lcnc non è Fanuc
ciao
ciao
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds