×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

blank string

blank string

blank string

(OP)
Hi all!
How to add blank string into output code?
as far i know in post builder there is no such MOM func. as blank or empty string, is there?

example
now:
%%O01
%T01

need to be:
%%O01

%T01

Thanks

RE: blank string

MOM_output_text " "

RE: blank string

(OP)
as far i know, in this case the line length will be 1, but should be 0

RE: blank string

This will get you a blank line in your output as I use it all the time. Is there a problem with it having a space in your output? Machine should run right by it.

RE: blank string

(OP)
there is a problem, that there between two lines should be nothing:(
mb to try "/n". (this is new line in tcl, found in google) but i don't know how to exactly use it and even do not know if pb supports this func.

RE: blank string

   Well it does support tcl commands from 8.0 and below possibly 8.1. That is basic tcl so it should work. I have ouput asci characters with it b4. What kind of machine is this anyway? So I know about this if I need to write a post for one.
   Pretty good site for tcl below also you could join in on the Siemens site as they have a pretty active cam forum.

 http://www.tcl.tk/
 http://bbsnotes.ugs.com/vbulletin/forumdisplay.php?f=90

RE: blank string

(OP)
machine: gf4471

thanks for so quick response :)

RE: blank string

Hey no problem always like to help but what is gf4471? As in manufacturer?
 

RE: blank string

(OP)
this is pretty old cnc machine. :D made in ussr, so there is lack of info in web :(

RE: blank string

Any luck man?  

RE: blank string

OH and what kind of controller has it got?

RE: blank string

(OP)
puhh. do not know exactly :S 2f65 as far i remember. i do believe You do not even heart about this one ;)
and no success...

RE: blank string

Wow! Kinda hard to write a post without a manual at least for reference. Does the output at least look something like another controller that you know of like a Fanuc or a Hiedenhain or Siemens? That particular startup isn't familiar to me. I don't have the software to look at so I can't really look at this on the weekend. I will try and look at it soon though.

RE: blank string

Just to make sure, you have tried MOM_output_text "" with no space in between correct? I think the MOM_output_text proc doesn't let this output but cannot remember I think literal has a problem with it but text may not. I did a puts "" in tcl/tutor and it output just a line that if you arrow right it went to the next line.  

RE: blank string

(OP)
hmm. nice idea :D another way is to declare any empty variable:
set $anyVar ""
and try to make forced output of it.

RE: blank string

The empty string doesn't work. "". Must be in the MOM code to not output it. Maybe try a puts with the filepath and name. on the puts line?

RE: blank string

(OP)
MOM_output_literal "\r" #adds 1 empty line. line length is 0
MOM_output_literal "\n" #adds 2 empty lines

\a
Audible alert (bell) (0x7).

\b
Backspace (0x8).

\f
Form feed (0xc).

\n
Newline (0xa).

\r
Carriage-return (0xd).

\t
Tab (0x9).

\v
Vertical tab (0xb).

\<newline>whiteSpace
A single space character replaces the backslash, newline, and all spaces and tabs after the newline. This backslash sequence is unique in that it is replaced in a separate pre-pass before the command is actually parsed. This means that it will be replaced even when it occurs between braces, and the resulting space will be treated as a word separator if it is not in braces or quotes.

\\
Backslash ("\").

\ooo
The digits ooo (one, two, or three of them) give an eight-bit octal value for the Unicode character that will be inserted. The upper bits of the Unicode character will be 0.

\xhh
The hexadecimal digits hh give an eight-bit hexadecimal value for the Unicode character that will be inserted. Any number of hexadecimal digits may be present; however, all but the last two are ignored (the result is always a one-byte quantity). The upper bits of the Unicode character will be 0.

\uhhhh
The hexadecimal digits hhhh (one, two, three, or four of them) give a sixteen-bit hexadecimal value for the Unicode character that will be inserted.
Backslash substitution is not performed on words enclosed in braces, except for backslash-newline as described above.

(Google)

RE: blank string

Cool man so you did get it to work. I just haven't had the tiime to look anymore on that so Thanks for letting me know. MOM_output... must be in a dll somewhere because I went looking for it and couldn't find it anywhere.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources