529,979 active members*
3,274 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Fanuc PS0128 Illegal Macro Sequence Number
Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Sep 2020
    Posts
    1

    Fanuc PS0128 Illegal Macro Sequence Number

    Hi everyone,

    I keep getting this error when ever I try to use a GOTO command, I'm stripped everything else out and am just trying to run the code below to test it but it still throws the PS0128 error.

    Any ideas? It executes n02 correctly #704 changes to 1 but then is fails.

    N01(O028);
    N02#704=1;
    N03IF[#704EQ1]GOTO05;
    N04#705=1;
    N05#706=1;
    N06M30;
    N07%

  2. #2
    Registered
    Join Date
    Apr 2011
    Posts
    647

    Re: Fanuc PS0128 Illegal Macro Sequence Number

    Check for fat fingure mistakes. I ran this just as you have it on a 0iF with no issues.

  3. #3
    Member
    Join Date
    Sep 2018
    Posts
    11

    Re: Fanuc PS0128 Illegal Macro Sequence Number

    One time I had a problem declaring subpgm like O00123 and calling them M98 P00123 instead of P123 ...

    try a GOTO5 instead of GOTO05

    Controllers are sometimes a bit picky on syntax !

Posting Permissions

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