Programmed RS-232 output - Page 2


Page 2 of 2 FirstFirst 12
Results 13 to 15 of 15

Thread: Programmed RS-232 output

  1. #13
    Registered
    Join Date
    Jul 2005
    Location
    Turkiye
    Posts
    51
    Downloads
    0
    Uploads
    0

    Default 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

    Last edited by Selimsalim; 07-11-2008 at 01:50 AM.


  2. #14
    Registered
    Join Date
    Jul 2005
    Location
    Turkiye
    Posts
    51
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    May 2018
    Location
    United States
    Posts
    76
    Downloads
    0
    Uploads
    0

    Default 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.




Page 2 of 2 FirstFirst 12

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Programmed RS-232 output

Programmed RS-232 output

Programmed RS-232 output