586,000 active members*
5,016 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > M198 subprogram call CNC_MEM from Data_Server
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2018
    Posts
    2

    Post M198 subprogram call CNC_MEM from Data_Server

    Hello everyone,

    Working on an automation project, I wrote a simple call program in the CNC_MEM using M198 to call another program from the Data Server.
    I'm working on a Fanuc 31i Model B5
    When I try to run it, I always get the PS1079 Error "Program File not Found"

    - The I/O Channel is set to 5 (#20 = 5)
    - Parameter #3030 is set to 0
    - Parameter #3233.1 is set to 0
    - Parameter #3404.2 is set to 0
    - The Data Server is used in FTP mode meaning that I transfer the subprogram using an Ethernet connection to it

    Is it possible to have such process (FTP mode and call from the DS in FTP mode) ?
    Do you have any clues to solve this issue ?

    Regards,

    Damien

  2. #2
    Join Date
    Dec 2012
    Posts
    395

    Re: M198 subprogram call CNC_MEM from Data_Server

    Hi Damien,

    Befor we start, did you try to run the M198 from CF-card (PCMCIA) before you started from Data Server an did it work ?
    I had problems with the M198-call, I used an extension and 3-digit progam number for the sub-program.
    This is the way for my Fanuc 0i-MF control how to handle M198 from CF-Card.

    Regards,
    Heavy_Metal.
    ----------------------------------------------------------------------------------------------------------------------

    Testprogram, M198 subprogram with Memory-CARD.

    Parameters:
    20 = 4 (Channel)
    138 * #7 = 1
    3404 #2 = 1
    6030 = 0

    Sub-program O1801 on CF_CARD via PCMCIA, O1801 WITHOUT extension !!!!!
    Programnumber needs 4 digits f.e. O1234, not O123 !!!

    -------------------------------------------------------------------------------------------------------

    Program O1800.NC ( or O1800.txt ) stored in machines MEMORY:
    %
    O1800 ( TEST-M198-CALL-SUB-O1801 )
    M198 P1801 L10 ( REPEAT 10X SUB-O1801 )
    M30
    %

    Sub-program O1081 on CF-CARD, no extension !!
    %
    O1801 ( TEST-M198 )
    M07 ( AIR ON )
    G04 X1. ( DWELL 1 SECOND )
    M09 ( AIR-OFF )
    G04 X1. ( DWELL 1 SECOND )
    M99
    %

  3. #3
    Join Date
    Jul 2018
    Posts
    2

    Re: M198 subprogram call CNC_MEM from Data_Server

    Hi Heavy_Metal !

    Solved my problem this weekend after digging deep into the manuals for the Data server/Fast Ethernet functions.
    Even if not obviously stated in the books, the DS needed to in STORAGE mode and not in FTP mode for me to access it with a M198 from CNCMEM

    Problem solved and everything works fine !

    Anyway, thanks for your help,

    regards,

    Damien

Similar Threads

  1. M198 SUBPROGRAM *USING *GOTO OR WHILE*
    By roberton26 in forum Fanuc
    Replies: 2
    Last Post: 05-11-2015, 01:00 PM
  2. M198 SUBPROGRAM NUMBER AS #
    By roberton26 in forum Fanuc
    Replies: 4
    Last Post: 03-22-2015, 04:55 PM
  3. Replies: 4
    Last Post: 07-02-2014, 10:29 AM
  4. m198 remote subroutine call
    By heavy metal in forum Fanuc
    Replies: 5
    Last Post: 09-27-2013, 06:22 PM
  5. Replies: 16
    Last Post: 10-11-2010, 01:02 AM

Tags for this Thread

Posting Permissions

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