603,942 active members*
4,282 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > help in transfer programs from cnc to pc
Results 1 to 18 of 18
  1. #1
    Join Date
    Feb 2007
    Posts
    10

    Unhappy help in transfer programs from cnc to pc

    hi guys:
    i have a mill moriseiki cnc and suddenly I am not able to transfer the
    programs that I check from the cnc to my pc I use the mastercam 8 program to transfer the programs, I o ready made a new cable that goes from cnc to pc, hope you can help me out thanks,
    friend in the sport. :drowning:

  2. #2
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by rex366 View Post
    hi guys:
    i have a mill moriseiki cnc and suddenly I am not able to transfer the
    programs that I check from the cnc to my pc I use the mastercam 8 program to transfer the programs, I o ready made a new cable that goes from cnc to pc, hope you can help me out thanks,
    friend in the sport. :drowning:
    Post the make and model of the control.

    Regards,

    Bill

  3. #3
    Join Date
    Feb 2007
    Posts
    10

    help in transfering the program

    hi :
    sorry I didin't post the make of the controler it is a Fanuc 11 m,
    it was working fine, and suddenly stop transfering the programs, I am
    able to send from the PC to the CNC but not from the CNC to PC
    thanks guys.
    p.s. its a 1987 moriseiki mill cnc

  4. #4
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by rex366 View Post
    hi :
    sorry I didin't post the make of the controler it is a Fanuc 11 m,
    it was working fine, and suddenly stop transfering the programs, I am
    able to send from the PC to the CNC but not from the CNC to PC
    thanks guys.
    p.s. its a 1987 moriseiki mill cnc
    Just to ensure that there are no problems with your set up check the following to rule out the most obvious.

    Parameters
    #0000
    TVC = 0
    CTV = 1
    ISP = 0
    NCR = 0
    EIA = 0

    #0020 = 1
    #0021 = 1
    #0022 = 1
    #0023 = 1
    #5001 = 3
    #5110 = 3
    #5111 = 2
    #5112 = Baud Rate (10 = 4800) Starting Point

    Machine Control Set Page Settings
    I/O = 1
    ISO Format = 1

    The cable pin out should be as follows and depends on whether the PC Comm Port is 9 or 25 pin.

    Machine Side-----------------------PC Side
    DB25 Male-------------DB9 Female-----------DB25 Female
    2-----------------------2---------------------3
    3-----------------------3---------------------2
    7-----------------------5---------------------7
    4
    | bridged
    5

    6
    |
    8 all bridged
    |
    20

    The configuration of the PC software should be
    Baud Rate = 4800
    Data Bits = 7
    Parity = e
    Stop Bits = 2
    Handshaking = Xon Xoff (Software Handshaking)


    If the cable and above settings are correct, and the problem still exists, set the following parameters and Machine Control Set Page Settings. Try to transfer both ways again.

    #0020 = 2
    #0021 = 2
    #0022 = 2
    #0023 = 2
    #5002 = 3
    #5120 = 3
    #5121 = 2
    #5122 = Baud Rate (10 = 4800)

    Machine Control Set Page Settings
    I/O =2
    ISO Format = 1

    If the problem still exists, try using a different PC. There is as much chance of the problem being with the PC hardware as with the Machine's.

    If the problem still exists, it would be likely that there is an issue with the I/O PCB of the control. Do the above checks and post back.

    Regards,

    Bill

  5. #5
    Join Date
    Feb 2007
    Posts
    10
    hi guys:
    Thanks for the help bill I did what you told me first and it didn't work
    I try the second option and I get this alarm SR830 I check the book and its something related to the COM 2 not been set up ON in the pc.
    bill I read the parameter book but I didn't understand what this parameters
    are:
    #0020 = 1
    #0021 = 1
    #0022 = 1
    #0023 = 1
    #5001 = 3
    #5110 = 3
    #5111 = 2
    hope you can help me on this.
    when the mastercam window is ready to capture the program the
    cursor has to be blinking like when your typing in the pc, or not because in my window the cursor does not blink.
    one more thing when I punch the program in the CNC the cnc throws the program but the pc doesnot capture the program, stays like nothig is happenning, is there any way I can check the cable that goes from the I/O PCB of the control, to where I connect the cable to the Pc cable.
    Sorry about all this bill; hope you can help me out.

  6. #6
    Join Date
    Mar 2003
    Posts
    2932
    SR830 is Data Set Ready Down (RS232C-2); it has nothing to do with COM 2 on the PC.

    Set #0020-#0023 back to 1. This should eliminate the SR830.

    I would go to Radio Shack or Fry's and get a cheap RS-232 tester. Plug it in between the CNC and the DB25 end of the cable. Unplug the PC and try to punch a program. The LED for pin 2 or pin 3 (don't remember which) should flicker as the control is punching. If it is, then the problem may be on the DB9 end or some setting in your communications software.

    If you have a meter you can ohm out pins 2-2 and pins 3-3 from the DB9 to the DB25 to see if there good connection.

  7. #7
    Join Date
    Sep 2010
    Posts
    1230
    What dcoupar said is correct, this error that you get with the 2nd option parameter settings is associated with one of the hardware handshaking lines at the machine end that must be held high for comms to occur, notwithstanding you're using Xon Xoff, or software handshaking. This condition is satisfied by the bridge between pins 6,8, and 20 at the machine end of the data cable; pin 6 is Data Set Ready line.

    Pin 2 on the DB25 connector at the machine end is the Transmit Data line, so that's the LED of the tester you should be looking for activity on.

    If your PC has two Comm ports and if you have MasterCam Lathe and MasterCam Mill software, or any other Comms package that you can run at the same time as your MasterCam application, you can try the following to test to rule out the PC as the problem. You won't be able to start two instances of the one MasterCam application at the one time, but you will be able to start the two different MC apps simultaneously.

    If you can't organize the software as above, but you have the two Comm Ports available, PM your email address to me and I'll send you back a test program to use.

    1. Start MC Mill and MC Lathe, or either one of these, and another comms package at the same time on the PC.

    2. Configure the Comms parameters on one of the software packages to one Comm Port and the other package to the other Comm Port.

    3. Connect a Null Modem cable between the two Comm Ports of the PC, You may have to use a gender changer on one end of the cable to connect to the two male ports on the PC.

    4. Set one software application to Receive and the second application to Send

    5. Send a program from the application set to Send and the other application set to Receive should receive the program.

    This is an easy test to set up and will tell you very quickly if there is a problem at the PC end.

    Regards,

    Bill

  8. #8
    Join Date
    Feb 2007
    Posts
    10

    communication problem

    hi guys:
    thanks to angelw and dcoupar for all the help, I checked the connection on pins 2 - 2 , 3 - 3 on DB25 and DB9 the connection is good, now I will try what angelw say on Monday.
    Another question is there any way I can check the cable that goes from the I/O PCB of the CNC to the port where I plug my communications cable (DB25), the one inside of the controller box.
    like I said at the beginning of the text thanks for all the help guys.

  9. #9
    Join Date
    Feb 2007
    Posts
    10

    communication problem

    hi guys:
    forgot to ask you another question, when my communications where working fine, if I punched a program to my PC I will get the program but
    it will have a EOB ( between each line of program, I remember I changed something in my communications program (MC V8)

    echo terminal emulation
    strip carriage returns
    strip line feeds

    do you know which of this has to be check to capture the program with out the end of blocks between lines. thanks.

  10. #10
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by rex366 View Post
    hi guys:
    thanks to angelw and dcoupar for all the help, I checked the connection on pins 2 - 2 , 3 - 3 on DB25 and DB9 the connection is good, now I will try what angelw say on Monday.
    Another question is there any way I can check the cable that goes from the I/O PCB of the CNC to the port where I plug my communications cable (DB25), the one inside of the controller box.
    like I said at the beginning of the text thanks for all the help guys.
    The RS-232 tester dcoupar suggested will to some extent test that cable. If you're not getting any activity on the tester, then either there's a problem with the cable from the connector to the board, or with the board itself. If there is no activity on the tester, you could check the focus cable for continuance with a multimeter. When you use the tester, make sure you have the cable plugged into it, because the CNC connector still needs the hardware lines bridged for it to send any data out.

    If your machine has a Tape Reader and Tape Mode, pressing the cycle start button with Tape Mode selected and your tester in place should result in a ping on line 2 of the tester.

    Regards,

    Bill

  11. #11
    Join Date
    Mar 2003
    Posts
    2932
    Quote Originally Posted by rex366 View Post
    hi guys:
    forgot to ask you another question, when my communications where working fine, if I punched a program to my PC I will get the program but
    it will have a EOB ( between each line of program, I remember I changed something in my communications program (MC V8)

    echo terminal emulation
    strip carriage returns
    strip line feeds

    do you know which of this has to be check to capture the program with out the end of blocks between lines. thanks.
    Check parameter 0 bit 3. If it's 0, then the Fanuc is sending LF CR CR as the EOB. If you change that parameter to 1 it will send a single LF as the EOB.

  12. #12
    Join Date
    Feb 2007
    Posts
    10

    communication problem

    hi guys:
    I used the RS-232 tester and when I send the program from the
    PC to the CNC one of the LEDs will flick but when I send the program from
    the CNC to the PC the LEDs will not flick, so I guess the I/O board is bad or the cable that goes out from the boar to the place were I connect my communications cable is crack, so what do you think guys.

  13. #13
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by rex366 View Post
    hi guys:
    I used the RS-232 tester and when I send the program from the
    PC to the CNC one of the LEDs will flick but when I send the program from
    the CNC to the PC the LEDs will not flick, so I guess the I/O board is bad or the cable that goes out from the boar to the place were I connect my communications cable is crack, so what do you think guys.
    Eliminate the simplest things first. Check the cable between the connector to the outside world and the I/O board. This will, from memory, be a straight through cable; accordingly, checking it for continuance with a Multi-Meter will be straight forward.

    Regards,

    Bill

  14. #14
    Join Date
    Mar 2006
    Posts
    21
    Check the cable.......Or better yet get as new one.

  15. #15
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by rex366 View Post
    hi guys:
    I used the RS-232 tester and when I send the program from the
    PC to the CNC one of the LEDs will flick but when I send the program from
    the CNC to the PC the LEDs will not flick, so I guess the I/O board is bad or the cable that goes out from the boar to the place were I connect my communications cable is crack, so what do you think guys.
    Did you carry out the test on the PC, suggested in an earlier Post, where two instances of your Comms software are started, and with a cable between two Comm ports, see if you can communicate both ways?

    With the RS-232 tester in place and the cable connected to the Control and PC, you should get a ping on pin 3 of the control side when the program is called by the PC. As you are using Xon Xoff handshaking, the PC software should send a DC1(Dec 17) to the machine to initiate transfer of the program. If you're getting no activity on the tester, then its my opion that the Xon is not being sent from the PC side, and if that's the case the machine will not send any code.

    Regards,

    Bill

  16. #16
    Join Date
    Sep 2010
    Posts
    1230
    I've led you astray with my last post. The control side does not require an Xon being sent by the PC software to initiate the program transfer, the control will send the program whether the PC side is ready, or connected, provided the the pins of the machine end connector of the cable are bridged, as described in an earlier post relating to the cable configuration, and connected to the machine. Accordingly, disregard what I siad in the last post.

    Most reasonable Comms software packages will allow the Send from PC to Machine routine to be set to either Waite for the Machine to initiate the transfer, or to Send the program Immediately. The Waite for Machine option allows the PC to be made ready and then the program called by exercising the Read function at the machine. The other option requires the machine to be got ready first and then the PC will send the program without waiting for an Xon signal from the machine. I suspect that you use the second option to send programs to the machine.

    Given the above, what you can try, to see if the machine is sending any data whatsoever, is to exercise all steps to read in a program to the machine at the machine side without the PC being ready to send, or the cable disconnected at the PC end. Have the RS232 tester inline, and you should see a ping on pin 2 of the tester when you press Read; you will have to be ready and looking at the tester when you press Read to notice it. The reasson for this is that the Fanuc control will send an Xon when the Read button is pressed. If you get no activity whatsoever, then its likely the problem is at the machine end; either with the connecting cable from connector to board, or the I/O chip. This is just one last test you can try, but because you have already said that there is no activity on the tester when you try and send a program from the machine, its fairly certain that the problem is at the machine side.

    Regards,

    Bill

  17. #17
    Join Date
    Dec 2011
    Posts
    4
    hi i have the exact same problem but i don't understand the parameter 0 bit 3 that needs to be changed to 1 please tell me where i find the parameter is it a diagnostic or regular parameter??

  18. #18
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by chicocnc View Post
    hi i have the exact same problem but i don't understand the parameter 0 bit 3 that needs to be changed to 1 please tell me where i find the parameter is it a diagnostic or regular parameter??
    Parameter #0000.3 is to set the End OF Block (EOB) character punched in ISO code and is found in the "regular" parameters. Setting #0000.3 to 1 will set the control to punch a Line Feed only. This setting will not interfere with file transfer, but will effect the way the file is displayed on the PC, and is dependent on the software used, whether it requires a LF and CR, and whether there the software has an option to vary what it requires as an EOB.

    The Fanuc control uses a LF as the EOB marker when receiving a file, but tolerates Carriage Return characters.

    Regards,

    Bill

Similar Threads

  1. Best way for data transfer?
    By pontiacg5 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 6
    Last Post: 06-24-2010, 07:32 AM
  2. zl 200 transfer
    By SmokinErb in forum Mori Seiki lathes
    Replies: 3
    Last Post: 07-09-2009, 10:30 PM
  3. What programs do you use to transfer from laptop to lathe. Mazatrol--->ISO
    By FanucIssues in forum Mazak, Mitsubishi, Mazatrol
    Replies: 3
    Last Post: 04-11-2008, 01:19 AM
  4. how to transfer?
    By hop in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 06-15-2006, 05:35 AM
  5. PDA software to transfer programs?
    By WOLOG in forum DNC Problems and Solutions
    Replies: 1
    Last Post: 05-04-2006, 02:12 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
  •