586,347 active members*
3,038 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    14

    Question re: print / debug

    Is there a way to do either of the following:

    a) have a print or debug force a certain number of digits to be used? I have a series of print statements running that give me a status in the output screen with a time check - but the time, if it's a single digit, reads funny - 10:3:8 means 10:03:08.

    (print,|! Start Time: #<hh,0>:#<mm,0>:#<ss,0>)

    I experimented with the digits after the hh / mm / ss, but I'm having a difficult time discerning what they actually do and I can't find a reference that tells me.

    b) the other thing I tried was forcing mm / ss to be a text string using

    if [#<mm> LT 10] then (txt,mm,0#<mm>)

    but that didn't seem to do anything - I don't know if string concatenation is possible, but that might also solve this?

    Thanks!

  2. #2
    Join Date
    Mar 2017
    Posts
    1312

    Re: Question re: print / debug

    I agree that time without leading zeros looks funny.
    Your solution with (txt will work after I fix IF..THEN statement (next version)

  3. #3
    Join Date
    Nov 2009
    Posts
    14

    Re: Question re: print / debug

    Okay - thank you. Is there a reference that explains the use of the digits after the parameter (example: #<hh,0>)?

    Thank you.

  4. #4
    Join Date
    Mar 2017
    Posts
    1312

    Re: Question re: print / debug

    I've added examples showing all current options:
    https://cnc.zone/gcode/comments/comment-print

Similar Threads

  1. A print and cut question laserdraw
    By liltritter in forum Laser Engraving / Cutting Machine General Topics
    Replies: 1
    Last Post: 03-23-2015, 07:50 AM
  2. Quick question on time to print
    By jake hoback in forum 3D Printer / 3D Scanner Discussion
    Replies: 0
    Last Post: 10-23-2014, 08:50 PM
  3. Question regarding best way to program part. have print attached.
    By colby2000 in forum CNC Swiss Screw Machines
    Replies: 1
    Last Post: 02-05-2014, 05:39 PM
  4. still cant print and boolean question
    By erase42 in forum BobCad-Cam
    Replies: 2
    Last Post: 03-12-2006, 08:53 PM

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
  •