Displaying variable values onscreen? - Page 2


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

Thread: Displaying variable values onscreen?

  1. #13
    Registered Donkey Hotey's Avatar
    Join Date
    Nov 2007
    Location
    USA
    Posts
    1663
    Downloads
    0
    Uploads
    0

    Default

    I'm a real moron here, but could you DPRINT the variable out the RS232 port and actually have it print the value on a dot matrix printer? If you're using it for in-process inspection, you could include the date, time and value. At the end of the day, you'd have all kinds of printed records of your parts.

    Or could you dump it to a waiting, slave PC and save the same information in a text file? You'd have a permanent record of the part(s).

    Greg


  2. #14
    Registered Caue's Avatar
    Join Date
    Apr 2009
    Location
    Brazil
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default

    Taylor,

    3 or 4 weeks ago a customer downhere in Brazil had the same doubt for an EC-1600 HMC brand new machine. The question was submited to Haas Apps Dept and I personally don't know the final satatement. Monday morning I'll check this and send you an answer until the end of day.
    By now, be sure that you're not alone with your needs and we'll be our best to help you.

    Cauê



  3. #15
    Registered Caue's Avatar
    Join Date
    Apr 2009
    Location
    Brazil
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default Maybe the solution

    Directly from Haas Mill Operator's Manual, I found this information:

    "COMMUNICATION WITH EXTERNAL DEVICES - DPRNT[ ]

    Macros allow additional capabilities to communicate with peripheral devices. One can do digitizing of parts, provide runtime inspection reports, or synchronize controls with user provided devices. The commands provided for this are
    POPEN, DPRNT[ ] and PCLOS.
    Communication preparatory commands

    POPEN and PCLOS are not required on the Haas mill. It has been included so that programs from different controls
    can be sent to the Haas control.

    Formatted output
    The DPRNT statement allows the programmer to send formatted text to the serial port. Any text and any variable can be printed to the serial port. The form of the DPRNT statement is as follows: DPRNT [<text> <#nnnn[wf]>... ] ;
    DPRNT must be the only command in the block. In the previous example, <text> is any character from A to Z or the letters (+,-,/,*, and the space). When an asterisk is output, it is converted to a space. The <#nnnn[wf]> is a
    variable followed by a format. The variable number can be any macro variable. The format [wf] is required and consists of two digits within square brackets. Remember that macro variables are real numbers with a whole part and a fractional part. The first digit in the format designates the total places reserved in the output for the whole part. The second digit designates the total places reserved for the fractional part. The total places reserved for
    output cannot be equal to zero or greater that eight. Thus the following formats are illegal: [00] [54] [45] [36] /*not legal formats */
    A decimal point is printed out between the whole part and the fractional part. The fractional part is rounded to the least significant place. When zero places are reserved for the fractional part, then no decimal point is printed out.
    Trailing zeros are printed if there is a fractional part. At least one place is reserved for the whole part, even when a zero is used. If the value of the whole part has fewer digits than have been reserved, then leading spaces are
    output. If the value of the whole part has more digits than has been reserved, then the field is expanded so that these numbers are printed.
    A carriage return is sent out after every DPRNT block.

    DPRNT[ ] Examples
    Code:
    N1 #1= 1.5436 ;
    N2 DPRNT[X#1[44]*Z#1[03]*T#1[40]] ;
    Output:
    X1.5436 Z 1.544 T 1

    Code:
    N3 DPRNT[***MEASURED*INSIDE*DIAMETER***] ;
    Output:
    MEASURED INSIDE DIAMETER

    Code:
    N4 DPRNT[] ;
    Output:
    (no text, only a carriage return)


    Code:
    N5 #1=123.456789 ;
    N6 DPRNT[X-#1[25]] ;
    Output:
    X-123.45679 ;

    Execution
    DPRNT statements are executed at block interpretation time. This means that the programmer must be careful
    about where the DPRNT statements appear in the program, particularly if the intent is to print out.
    G103 is useful for limiting lookahead. If you wanted to limit lookahead interpretation to one block, you would include
    the following command at the beginning of your program: (This actually results in a two block lookahead.)
    G103 P1;
    To cancel the lookahead limit, change the command to G103 P0. G103 cannot be used when cutter compensation
    is active."

    Try it and tell us about the results or any additional doubts you have.



  4. #16
    Registered
    Join Date
    May 2004
    Location
    United Kingdom
    Posts
    97
    Downloads
    0
    Uploads
    0

    Default

    DPRNT is really the only way forward currently.

    I have been using it and implementing it in the UK for some time now with a lot of success and have a system specifically for Haas that allows inspection reports to be created in Excel direct from the VQC Probing Templates (which are a little enhanced to include tolerance information). The reports are created in "Real Time" as well, so you can see straight away without having to press any buttons what the probe is measuring.

    Attached is a pdf of how the system works, and some examples of exactly what you can get off a Haas (the values themselves are from a simulator though).

    It's not just limited to Probing, you can print off cycle time and tool load information also.

    Sounds just like what the US need also.

    Attached Thumbnails Attached Thumbnails Displaying variable values onscreen?-vqcps-cnc-reporter-haas-pdf  
    Attached Files Attached Files


  5. #17
    Registered
    Join Date
    Dec 2013
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Re: Maybe the solution

    Quote Originally Posted by Caue View Post
    Directly from Haas Mill Operator's Manual, I found this information:

    "COMMUNICATION WITH EXTERNAL DEVICES - DPRNT[ ]

    Macros allow additional capabilities to communicate with peripheral devices. One can do digitizing of parts, provide runtime inspection reports, or synchronize controls with user provided devices. The commands provided for this are
    POPEN, DPRNT[ ] and PCLOS.
    Communication preparatory commands

    POPEN and PCLOS are not required on the Haas mill. It has been included so that programs from different controls
    can be sent to the Haas control.


    Try it and tell us about the results or any additional doubts you have.
    But how to set up to use DPRNT[] to print to the screen?



  6. #18
    Gold Member Machineit's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    1708
    Downloads
    0
    Uploads
    0

    Default Re: Displaying variable values onscreen?

    Six year old thread!

    Two Haas VF-2's, Haas HA5C, Haas HRT-9, Hardinge CHNC 1, Bother HS-300 Wire EDM, BobCAD V23, BobCAD V28


  7. #19
    Registered
    Join Date
    Dec 2015
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Displaying variable values onscreen?

    I realize this is way old, but did you ever figure out a solution? I was trying to do this very thing today.



  8. #20
    Registered
    Join Date
    May 2013
    Location
    US
    Posts
    127
    Downloads
    0
    Uploads
    0

    Default Re: Displaying variable values onscreen?



  9. #21
    Registered
    Join Date
    Dec 2015
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Displaying variable values onscreen?

    Displaying variable values onscreen?-img_5698-jpgDamn, you beat me to it! I was going to post yesterday that I found a way to display the info, in the timers box. It's not a pop up message, but it works well. I actually kind of like it better, because it stays on the screen.

    Attached Thumbnails Attached Thumbnails Displaying variable values onscreen?-img_5698-jpg  


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

Displaying variable values onscreen?
Displaying variable values onscreen?