585,970 active members*
4,424 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > DNC Problems and Solutions > Error sending code to a Heidenhain 151b via Serial
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Error sending code to a Heidenhain 151b via Serial

    Hi,

    Please accept my apologies for my first post being a question and that it could also be in the wrong section! However I'm doing this as a favour for a friend who isn't technically minded.

    He's got a Heidenhein TNC 151B control. We've managed to get files from the TNC using a serial - parallel cable and TNCserver. However we have a couple of problems:

    1) TNCremoNT fails to connect to the TNC, am I right in a assuming that this is because the control is too old to support GUI file browsing?

    2) We've managed to take small programs off and put them back on to the machine, using TNCserver and the 'read-in offered program' option within the control. However we can't get the following program back on to the machine (it came off fine). We receive a 'wrong program data' error on the control screen. What are we doing wrong? The code ran fine when it was on the machine! Within the user options the machine lists 1418 blocks free (I am assuming this is memory)

    If I attempt to backplot the code in NCplot I get an 'Invalid Character' error. But after much fiddling I can't find anything that looks incorrect.

    The only other thought I have, is that I've read posts regarding 'trickling' programs to a control. Is this something we need to be investigating / using for this control?

    Thanks for any suggestions or help!

    Code of the dodgy program is below:

    Code:
    0 BEGIN PGM 5 MM 
    1 TOOL DEF 1 L+0,000 R+10,000 
    2 TOOL DEF 2 L-18,900 R+5,940 
    3 TOOL DEF 3 L-30,130 R+6,650 
    4 TOOL DEF 4 L-23,650 R+4,000 
    5 TOOL DEF 5 L-13,100 R+3,000 
    6 LBL 1 
    7 CYCL DEF 7.0 DATUM SHIFT 
    8 CYCL DEF 7.1 X+0,000 
    9 CYCL DEF 7.2 Y+0,000 
    10 TOOL CALL 0 Z S 1500,000 
    11 L Z+6,000 R0 F9999 M05
    12 L X+125,000 Y+50,000 R0 F9999 M 
    13 LBL 0 
    14 STOP M25
    15 TOOL CALL 1 Z S 1500,000 
    16 L X+0,000 Y+0,000 R0 F9999 M03
    17 L Z+2,000 R0 F9999 M08
    18 L Z+1,000 R0 F400 M 
    19 LBL 2 
    20 CYCL DEF 5.0 CIRCULAR POCKET 
    21 CYCL DEF 5.1 SET UP-1,000 
    22 CYCL DEF 5.2 DEPTH -6,000 
    23 CYCL DEF 5.3 PECKG -3,000 F350 
    24 CYCL DEF 5.4 RADIUS11,500 
    25 CYCL DEF 5.5 F350 DR- 
    26 CYCL CALL M 
    27 L Z+0,000 R0 F500 M 
    28 L Y+20,000 R0 F500 M 
    29 CC X+0,000 Y+0,000 
    30 C X+0,000 Y+20,000 DR- R0 F500 M 
    31 L Y+29,000 R0 F500 M 
    32 CC X+0,000 Y+0,000 
    33 C X+0,000 Y+29,000 DR- R0 F500 M 
    34 L Z+1,000 R0 F500 M 
    35 L Y+49,000 R0 F500 M 
    36 L Z-5,500 R0 F500 M 
    37 L Y+44,250 R0 F500 M 
    38 CC X+0,000 Y+0,000 
    39 C X+0,000 Y+44,250 DR- R0 F500 M 
    40 L Y+49,000 R0 F500 M 
    41 L Z-11,000 R0 F500 M 
    42 L Y+44,250 R0 F500 M 
    43 CC X+0,000 Y+0,000 
    44 C X+0,000 Y+44,250 DR- R0 F500 M 
    45 L Y+49,000 R0 F500 M 
    46 L Z-16,500 R0 F500 M 
    47 L Y+44,250 R0 F500 M 
    48 CC X+0,000 Y+0,000 
    49 C X+0,000 Y+44,250 DR- R0 F500 M 
    50 L Y+49,000 R0 F500 M 
    51 L Z-22,000 R0 F500 M 
    52 L Y+44,250 R0 F500 M 
    53 CC X+0,000 Y+0,000 
    54 C X+0,000 Y+44,250 DR- R0 F500 M 
    55 L Y+49,000 R0 F500 M 
    56 L Z-26,650 R0 F500 M 
    57 L Y+44,350 R0 F500 M 
    58 CC X+0,000 Y+0,000 
    59 C X+0,000 Y+44,350 DR- R0 F500 M 
    60 L Y+49,000 R0 F500 M 
    61 L Z+2,000 R0 F9999 M 
    62 LBL 0 
    63 LBL 8 
    64 CYCL DEF 7.0 DATUM SHIFT 
    65 CYCL DEF 7.1 X+250,055 
    66 CYCL DEF 7.2 Y-0,060 
    67 LBL 0 
    68 L X+0,000 Y+0,000 R0 F9999 M 
    69 L Z+2,000 R0 F9999 M 
    70 CALL LBL 2 REP 
    71 CALL LBL 1 REP 
    72 STOP M25
    73 TOOL CALL 2 Z S 1500,000 
    74 L X+0,000 Y+0,000 R0 F9999 M03
    75 L Z+1,000 R0 F9999 M08
    76 LBL 3 
    77 CYCL DEF 5.0 CIRCULAR POCKET 
    78 CYCL DEF 5.1 SET UP-1,000 
    79 CYCL DEF 5.2 DEPTH -6,050 
    80 CYCL DEF 5.3 PECKG -6,050 F500 
    81 CYCL DEF 5.4 RADIUS11,560 
    82 CYCL DEF 5.5 F400 DR- 
    83 CYCL CALL M 
    84 L Y+37,350 R0 F9999 M 
    85 L Z-2,500 R0 F150 M 
    86 CC X+0,000 Y+0,000 
    87 C X+0,000 Y+37,350 DR- R0 F450 M 
    88 L Y+38,000 R0 F500 M 
    89 L Z+2,000 R0 F9999 M 
    90 LBL 0 
    91 CALL LBL 8 REP 
    92 L X+0,000 Y+0,000 R0 F9999 M 
    93 L Z+1,000 R0 F9999 M 
    94 CALL LBL 3 REP 
    95 CALL LBL 1 REP 
    96 STOP M25
    97 TOOL CALL 3 Z S 1500,000 
    98 L X+0,000 Y+0,000 R0 F9999 M03
    99 L Z+1,000 R0 F9999 M08
    100 CYCL DEF 5.0 CIRCULAR POCKET 
    101 CYCL DEF 5.1 SET UP-1,000 
    102 CYCL DEF 5.2 DEPTH -6,030 
    103 CYCL DEF 5.3 PECKG -4,300 F300 
    104 CYCL DEF 5.4 RADIUS12,500 
    105 CYCL DEF 5.5 F450 DR- 
    106 CYCL CALL M 
    107 CALL LBL 8 REP 
    108 L X+0,000 Y+0,000 R0 F9999 M 
    109 CYCL CALL M 
    110 CALL LBL 1 REP 
    111 STOP M25
    112 TOOL CALL 4 Z S 1500,000 
    113 LBL 4 
    114 L X+0,000 Y+7,320 R0 F9999 M03
    115 L Z+1,000 R0 F9999 M08
    116 L Z-8,000 R0 F500 M 
    117 CC X+0,000 Y+0,000 
    118 C X+0,000 Y+7,320 DR- R0 F800 M 
    119 L Z-1,100 R0 F9999 M 
    120 L Y+10,650 R0 F500 M 
    121 CC X+0,000 Y+0,000 
    122 C X+0,000 Y+10,650 DR- R0 F800 M 
    123 L Z+1,000 R0 F9999 M 
    124 L Y+32,350 R0 F9999 M 
    125 L Z-1,200 R0 F800 M 
    126 CC X+0,000 Y+0,000 
    127 C X+0,000 Y+32,350 DR- R0 F800 M 
    128 L Z+1,000 R0 F9999 M 
    129 L X+0,000 Y+0,000 R0 F9999 M 
    130 CC X+0,000 Y+0,000 
    131 LP PR+20,500 PA+90,000 R0 F9999 M 
    132 CYCL DEF 1.0 PECKING 
    133 CYCL DEF 1.1 SET UP-1,000 
    134 CYCL DEF 1.2 DEPTH -3,400 
    135 CYCL DEF 1.3 PECKG -3,400 
    136 CYCL DEF 1.4 DWELL 0,000 
    137 CYCL DEF 1.5 F250 
    138 CYCL CALL M 
    139 LP PR+20,500 IPA+45,000 R0 F9999 M 
    140 CYCL CALL M 
    141 LP PR+20,500 IPA+45,000 R0 F9999 M 
    142 CYCL CALL M 
    143 LP PR+20,500 IPA+45,000 R0 F9999 M 
    144 CYCL CALL M 
    145 LP PR+20,500 IPA+45,000 R0 F9999 M 
    146 CYCL CALL M 
    147 LP PR+20,500 IPA+45,000 R0 F9999 M 
    148 CYCL CALL M 
    149 LP PR+20,500 IPA+45,000 R0 F9999 M 
    150 CYCL CALL M 
    151 LP PR+20,500 IPA+45,000 R0 F9999 M 
    152 CYCL CALL M 
    153 LBL 0 
    154 CALL LBL 8 REP 
    155 CALL LBL 4 REP 
    156 CALL LBL 1 REP 
    157 STOP M25
    158 TOOL CALL 5 Z S 1500,000 
    159 LBL 5 
    160 L X+0,000 Y+0,000 R0 F9999 M03
    161 L Z+1,000 R0 F9999 M08
    162 CC X+0,000 Y+0,000 
    163 LP PR+20,500 PA+90,000 R0 F9999 M 
    164 CYCL DEF 1.0 PECKING 
    165 CYCL DEF 1.1 SET UP-1,000 
    166 CYCL DEF 1.2 DEPTH -22,000 
    167 CYCL DEF 1.3 PECKG -4,000 
    168 CYCL DEF 1.4 DWELL 0,000 
    169 CYCL DEF 1.5 F100 
    170 CYCL CALL M 
    171 LP PR+20,500 IPA+45,000 R0 F9999 M 
    172 CYCL CALL M 
    173 LP PR+20,500 IPA+45,000 R0 F9999 M 
    174 CYCL CALL M 
    175 LP PR+20,500 IPA+45,000 R0 F9999 M 
    176 CYCL CALL M 
    177 LP PR+20,500 IPA+45,000 R0 F9999 M 
    178 CYCL CALL M 
    179 LP PR+20,500 IPA+45,000 R0 F9999 M 
    180 CYCL CALL M 
    181 LP PR+20,500 IPA+45,000 R0 F9999 M 
    182 CYCL CALL M 
    183 LP PR+20,500 IPA+45,000 R0 F9999 M 
    184 CYCL CALL M 
    185 LBL 0 
    186 CALL LBL 8 REP 
    187 CALL LBL 5 REP 
    188 CALL LBL 1 REP 
    189 STOP M25
    190 STOP M02
    191 END PGM 5 MM

  2. #2
    Join Date
    Dec 2013
    Posts
    1
    Hi I'm new to this forum, but I have exactly the same problem as above. Small programs OK large once fail as described above.
    The only difference is that the control I have problems with is a TNC 155

    Could it be some thing with the setting of the serial port. Eg. FIFO buffer ???

    Alib: Did you ever solve the problem?

    /Daigaard

Similar Threads

  1. Sending a program Fanuc 18-m parity error
    By Tom Zegers in forum Fanuc
    Replies: 8
    Last Post: 10-17-2019, 12:10 PM
  2. 18i-T = 368 B AXIS: Serial data error (int)
    By padobranac in forum Fanuc
    Replies: 6
    Last Post: 03-16-2009, 12:04 PM
  3. Heidenhain 151B featurecam post processor
    By maybe4x in forum Bridgeport / Hardinge Mills
    Replies: 0
    Last Post: 06-21-2008, 12:06 AM
  4. Heidenhain Tnc 150b, 151a, Or 151b Control
    By Gute in forum MetalWork Discussion
    Replies: 2
    Last Post: 09-17-2007, 02:07 PM
  5. Sending code to the Fadal CNC errors?
    By HCG in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 11-11-2005, 08:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •