Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

eltklas

Verified Members
  • Posts

    122
  • Joined

  • Last visited

Posts posted by eltklas

  1. I'm sorry but I'm Spanish and I don't speak English, I use a translator and I haven't been able to understand your explanation well. Is there no possibility of obtaining the values that actually appear in the construction plans of each operation? I need to write those values at the beginning of each operation, it's an old machine and it doesn't work otherwise. It is usually done by hand and it is a job that I thought I could automate by modifying the post. Thanks for your help anyway.

  2. I found a solution:

    I have created a table of strings

    #table of user strings table sample definition
    
    str_index	:0			#selector vble
    #string array selector
    str_1		:"string1"		#string number 1 value of sts_index = 0
    str_2		:"string2"		#string number 2 value of sts_index = 1
    str_3		:"string3"		#string number 3 value of sts_index = 2
    str_4		:"string4"		#string number 4 value of sts_index = 3
    str_target	:""			#target vble
    
    fstrsel str_1 str_index str_target 4 -1
    
    #end oftable of user strings table sample definition

     

    If I use de selector vble, I can pass it in a postblock as an argument and I can use the string that I need.

    Sorry for my english.

    Thanks for help

    • Like 1
  3. It's true, I remember that in X4 the strings should start with "S", but now you can name the variable as you want. if an error occurs the MP.DLL shows it to you with the line number and position in the line. It is very easy to find it.

    • Like 1
  4. I am trying to open a txt file with the command Launch, but I need add the ascii 034 caracter before and after of my variable with the complete name of the file.

    my_txt_var = 034 + my_txt_var + 034   < - - - - - -this sentence is wrong

    result = launch( "notepad.exe", my_txt_var,0)

    but It doesnt work. the error is that I am using numbers and string in the same operation.

    Can Anybody help me to resolve that. Is there any way to use directly de ascii value?

    Thanks to all for your help

     

     

     

  5. When finish de post process the NC Program is OK, but It show me the errors that are above with the respective line:

     


    PST(812)- The value of the string select selection variable is out of range:3
    pcantxt1, pbld, n$,"G38", pccomp, p_decalaje, e$, n$ , sgabsinc, *sg20code, pwtcode,pfxout, pfyout, pctype, pwtout, pfrout, strcantext, e$

     

    PST(822)- The value of the string select selection variable is out of range:3
    pcantxt1, pbld, n$, sgabsinc, *sg20code, pwtcode,pfxout, pfyout, pctype, pwtout, pfrout, strcantext, e$

     

    PST(1148)- The value of the string select selection variable is out of range:3
    pcantxt1, pbld, n$, sgabsinc, pccomp, *sg20code, pwtcode, pfxout, pfyout, pzout, parc, pctype, pwtout, pfrout, strcantext, e$

     

    PST(817)- The value of the string select selection variable is out of range:3
    pcantxt1, pbld, n$, sgabsinc, *sg20code, pwtcode,pfxout, pfyout, pctype, pwtout, pfrout, strcantext, e$

     

    I dont know what selection table is not correct. If the operation are of a older version I have the error, but If I make again the operation no errors apears.

    Even If I select the new version of pst the errors are there. Only when I make new operations are no errors

    Thanks for your help.

     

    UNA.err.txt

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...