584,837 active members*
5,347 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 3 of 3
  1. #1
    Join Date
    Sep 2020
    Posts
    3

    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

    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
    Join Date
    Sep 2018
    Posts
    27

    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
  •