...M98 Pxxxx to call subprogram and use M99 at the end of subprogram. Read more about it on Page 57-59
https://www.machsupport.com/wp-conte...e%20Manual.pdf
Hi guys, I retrofitted my EMCO F1 CNC with Nema 23 steppers, M542 drivers and TC55H controller.
I have to say that the system works flawlessly, should have done that many years ago.
It feels like working with a complete new machine.
The only thing I cannot get to work yet is subroutine programming.
I tried the following:
Program 0021
N010 90
N020 G0 Y19.5 Z-9
N030 M3
N040 G1 Z-10 F39
N050 G20 N2101.3
N060 G91
N070 G22 N2101
N080 G1 Z-0.5 F39
N090 G24
N100 M5
N110 G90
N120 G0 Z0
N130 G0 Y0
N140 M30
(sub) Program 2101
N020 G1 Y0.5 F249
N030 G1 X-0.3
N040 G3 X-0.2 Y-0.2 R0.2
N050 G1 Y-16.1
N060 G3 X0.2 Y-0.2 R0.2
N070 G1 X0.6
N080 G3 X0.2 Y0.2 R0.2
N090 0 G1 Y16.1 F299
N100 G3 X-0.2 Y0.2 R0.2
N110 G1 X-0.3
N120 G0 Y-0.50
And I also tried this:
N010 90
N020 G0 Z-9
N030 G1 Z-10 F149
N040 M98 P090 L3
N050 G90
N060 G0 Z0
N070 M30
N080
N090 G91
N100 G1 Z-0.5 F39
N110 Y5 F249
N120 G3 Y-10 R5 F249
N130 G3 Y10 R5
N140 G0 Y-5
N150 M17
But it doesn't work..
Anyone can advise how I can use subroutine in my Mach4 controller TC55H?
Your help is very much appreciated.
Similar Threads:
...M98 Pxxxx to call subprogram and use M99 at the end of subprogram. Read more about it on Page 57-59
https://www.machsupport.com/wp-conte...e%20Manual.pdf
Hi Machineshop5, thanks for the link with the MACH manual, really appreciated.
The problem is ... I can only store programs with 4 digit numbers as file name on the TC55H controller.
Then they are stored starting with a letter P followed by the 4 digits and I cannot store a program starting with the letter O.
I tried also the option with the subprogram inside the main program like this:
N010 G90
N020 G0 Z-9
N030 G1 Z-10 F149
N040 M98 P1000 L5
N050 G90
N060 G0 Z0
N070 M30
N080
N090 O1000
N100 G91
N110 G1 Z-1 F49
N120 Y10
N130 G3 Y-20 R10 F99
N140 G3 Y20 R10
N150 G0 Y0
N160 M99
But I get a message: "Illegal characters in line 4".
Last edited by Richard_E; 06-13-2021 at 01:21 PM.
I started reading the TC55H manual and after sparring with a friend I found the solution that works:
N010 G90
N020 G0 Z-9
N030 G1 Z-10 F149
N040 G20 N110.3
N050 G22
N060 G24
N070 G90
N080 G0 Z0
N090 M30
N100
N110 G91
N120 G1 Z-1 F49
N130 Y10
N140 G3 Y-20 R10 F99
N150 G3 Y20 R10
N160 G0 Y0
N170 M99
So happy that it works, I will use this format a lot for sure.
Anyone familiar with generating G-code for the TC55H with a CAM module from Solidworks?
That would be even easier, especially for complex product contours.
Any help or experience sharing is appreciated.
Bought TC55h, trying to use input port but can't find information on how to write the g-code program, any help will be appreciated
Did U try to e-mail emco guys in austra? They quite helpfull and friendly. probably there is simple RS232 by 25pin port, and also probably it needs no hardware control, but surently U need to set up the same parameters in control and in pc to comunicate.there is also a procedure for sending/ recieving files, but i don't know it for TC55. I still have manual for TM02 if U like, but it is quite unprobable that the procedures are similar, cause TM02 is prehisteric.
Hi guys,
Programming in Mach3 sounds basic, but apparently there are many dialects, and I meanwhile learned and used the TC55H dialect succesfully.
It is actually a little bit different from my earlier post.
It now all works like a charm.
I just don’t know how to post photos here yet.
If you have any questions, let me know.
Illegal characters, your gcode file must not have blank space on top and at the bottom
example of gcode subroutine G20 SUBROUTINE N001.5 LINE N001 .5 MEANS 5X
N0001 G20 N001.5
N0002 G22 N001 ( SUBROUTINE START)
N001 G00 X13.0 F8888
N002 M51
N003 G04 K.5
N004 M52
N005 G04 K.8
N0051 M59
N0052 G04 K.9
N0053 M60
N0054 G04 k1
N006 M53
N007 G04 K.5
N008 M54
N009 G04 K.9
N010 M55
N011 G04 K.5
N012 M56
N013 G04 K.9
N014 M57
N015 G04 K.5
N016 M58
N021 G04 K.8
N022 G01 X0 F4444
N0221 G04 K1
N023 G24 ( SUBROUTINE END)