510,130 active members
2,864 visitors online
Register for free
Login
Page 2 of 2 12
Results 13 to 16 of 16
  1. #13
    Registered
    Join Date
    Jul 2005
    Posts
    51

    I cant write it

    Hi,
    My machine have Fanuc 21itb control . I write sample program working without fault, but on the computer how is save file and I dont found in the computer Please tell me what kind of program and how use,
    I dont know please help me


    %
    :7777
    #500=#3901
    #501=#3011
    #502=#3012
    #503=#4115
    POPEN

    DPRNT[#500]
    PCLOS

    M30

  2. #14
    Registered
    Join Date
    Jul 2005
    Posts
    51

    I have solved

    I have Solved
    Problem is [54]

    Who bady know What is the meaning [54]

    Correct writing
    :7777
    #500=#3901
    #501=#3011
    #502=#3012
    #503=#4115
    POPEN

    DPRNT[#500[54]]
    PCLOS

    M30

  3. #15
    Registered
    Join Date
    May 2018
    Posts
    76

    Re: Programmed RS-232 output

    Hi Psychomill,That is very interested. By connecting the pc to the machine via rs232 we can out put the data. I am new with this and have some questions:1. Where the output data saved into pc? what kind of file? (Notepad?)2. We can do the output so can we do the input? If I have a file with some input data those need to be set in #500, #501...How to do that?3. Let say, I have a wireless micrometer. Is there any way to connect it to the machine so that after the operator mic the feature and he press the button. The value on mic will be set in to #500, #501...?We have some OKUMA and FANUC control machines.Thanks
    Quote Originally Posted by psychomill View Post
    On a Fanuc (and some other controls) its called DPRNT. Works like this...In the program...POPEN; (opens the port)DPRNT[#510[24]]; (outputs #510 variable)DPRNT[#109[14]]; (outputs #109 variable)DPRNT[#7301[24]]; (outputs offset G54.1 P16 X)PCLOS; (closes the port)The number after the variable is how the decimal gets outputed. The first digit being before the decimal, the second digit being after the decimal. Some controls you can even output characters with it to identify the data.POPEN; (opens the port)DPRNT[A#510[24]]; (outputs #510 variable)DPRNT[B#109[14]]; (outputs #109 variable)DPRNT[P16X#7301[24]]; (outputs offset G54.1 P16 X)PCLOS; (closes the port)The next trick is that you need a PC thats ready to receive the data and not timeout. Or a DNC system that can receive the trigger and save the file without user control, or a printer that can capture the data as it comes out.Theres also another one called BPRNT. I don't ever use this one though since I don't have a need to output hex or binary data (like machine parameters and such). You can also string the outputs as well in the program. I prefer to write it seperately though, makes it easier to read in the program and output. :cheers:

  4. #16
    Registered
    Join Date
    Sep 2007
    Posts
    51

    Re: Programmed RS-232 output

    hi

    can somebody explaine


    how can i send text from the fanuc to my computer via dprint
    fanuc side is known
    but the computer doesn't understand the first line, so I don't see anything on my computer

    does anyone have the dnc side settings of the story.


    it seems that some programs / companies make it seem more difficult than it is !!!!!

    greetings bertus

Page 2 of 2 12

Similar Threads

  1. please help me learn Camsoft, programmed stops
    By djshop in forum CamSoft Products
    Replies: 5
    Last Post: 03-10-2013, 11:36 PM
  2. Y axis moving without being programmed HMB-1
    By carbidecraters in forum HURCO
    Replies: 1
    Last Post: 06-22-2008, 06:51 PM
  3. can this be programmed manually?
    By 300sniper in forum G-Code Programing
    Replies: 25
    Last Post: 02-15-2008, 05:07 AM
  4. Macro variable example I programmed today.
    By theemudracer in forum G-Code Programing
    Replies: 1
    Last Post: 03-08-2007, 03:50 AM
  5. Need PIC programmed
    By randyf1965 in forum CNC Wood Router Project Log
    Replies: 0
    Last Post: 03-27-2005, 12:56 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
  •