Results 1 to 12 of 12

Thread: Print Variabledata

  1. #1
    Registered cncboy1's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    46
    Downloads
    0
    Uploads
    0

    Question Print Variabledata

    Hallo World

    LB15 - OSP5000L

    N10 ABCD = 1
    PUT '$DATA.TXT%' (File-name)
    PUT $0D0A (CR/LF)
    NSRT PUT V[ABCD] <<<== will not work!!!
    PUT $0D0A
    WRITE 0
    ABCD = ABCD + 1
    IF [ABCD LT 33] NSRT
    NEND M02

    How can HELP?
    rg
    CNCBOY1


  2. #2
    Registered Algirdas's Avatar
    Join Date
    Mar 2009
    Location
    Lithuania
    Posts
    1,041
    Downloads
    0
    Uploads
    0
    what You want to do?
    variables are available under parameters. You can get parameters into file or direct transfer via RS232 from parameters mode "punch" command for lathe.
    N10 ABCD = 1
    what this suppose to be?


  3. #3
    Registered cncboy1's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    46
    Downloads
    0
    Uploads
    0

    Question Print V1....to...V32

    Hallo World

    LB15 - OSP5000L

    N10 ABCD = 1
    PUT '$DATA.TXT%' (File-name)
    PUT $0D0A (CR/LF)
    NSRT PUT V[ABCD] <<<== will not work!!!
    PUT $0D0A
    WRITE 0
    ABCD = ABCD + 1
    IF [ABCD LT 33] NSRT
    NEND M02
    What i want is to PUT variable V1 ...to...V32 on the RS232 (CN0)
    Off course i can write the line with PUT[V901] to [V932] in seperat line, but the easy way is making a lope

    How can HELP?
    rg
    CNCBOY1
    >>>>>>>>>>>>>>>Enough for now - back to work<<<<<<<<<<<<<<<<<<


  4. #4
    Registered Algirdas's Avatar
    Join Date
    Mar 2009
    Location
    Lithuania
    Posts
    1,041
    Downloads
    0
    Uploads
    0
    understand
    I'm not sure, if OSP allows variable name without "V" as first character.
    If You want to use it as part of part program? You can punch variables to RS232 as a parameter.


  • #5
    Registered cncboy1's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    46
    Downloads
    0
    Uploads
    0

    Exclamation V901....V932

    Hallo

    V901 ....V932 we use it in our abcd.SSB pgm's

    rg
    >>>>>>>>>>>>>>>Enough for now - back to work<<<<<<<<<<<<<<<<<<


  • #6
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    643
    Downloads
    0
    Uploads
    0
    Try this... I think this may work but only giving it a try will tell if so.

    N100 NUM = 1 (STARTING AT V1)
    N110 PUT '$DATA.TXT%' (File-name)
    N120 PUT $0D0A (CR/LF)
    NJP1 PUT 'V'
    N140 PUT NUM
    N150 PUT "="
    N160 DATA=V[NUM]
    N170 PUT DATA
    N180 PUT $0D0A
    N190 WRITE 0
    N200 NUM=NUM+1
    N210 IF [NUM LT 33] NJP1
    NEND M02

    This should output the following...?

    $DATA.TXT%
    V 1 = 123
    v 2 = 123
    v 3 = 123
    .
    .
    .
    etc

    I found the other day that I could output a user variable to a text file without any problem.

    Hoe this works for you.
    Cheers
    Brian.


  • #7
    Registered cncboy1's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    46
    Downloads
    0
    Uploads
    0

    Question Hallo broby

    Hallo Broby

    What's the diff. between my pgm and your's
    V[???] the controler say, it may not be used as indexer

    rg
    >>>>>>>>>>>>>>>Enough for now - back to work<<<<<<<<<<<<<<<<<<


  • #8
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    643
    Downloads
    0
    Uploads
    0
    One difference is that you are trying to output the value of V1..V32 directly, which you indicate does not work.
    I am assigning the value of the common variable to a user defined variable first, then trying to output this result, this method has worked for me before.
    Try this test:
    Set V1 as Empty
    Set V2=1
    Via MDI: type in V[V2]=999 and press Write, Cycle Start.
    If your machine accepts this input, you should see V1 assigned a value of 999
    Hope this helps
    Brian.


  • #9
    Registered cncboy1's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    46
    Downloads
    0
    Uploads
    0

    OSP5000

    Hallo
    V32=1
    On a OSP5000 this, V[V32]=1234, will not work.
    On a OSP7000 i will test it tomorrow.

    rg
    CNCBOY1
    >>>>>>>>>>>>>>>Enough for now - back to work<<<<<<<<<<<<<<<<<<


  • #10
    Registered cncboy1's Avatar
    Join Date
    May 2008
    Location
    Germany
    Posts
    46
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cncboy1 View Post
    Hallo Broby

    What's the diff. between my pgm and your's
    V[???] the controler say, it may not be used as indexer

    rg


    PS Do not used local variable starting with N.... and there are more letter's
    you con not used!
    >>>>>>>>>>>>>>>Enough for now - back to work<<<<<<<<<<<<<<<<<<


  • #11
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    643
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cncboy1 View Post
    PS Do not used local variable starting with N.... and there are more letter's
    you con not used!
    Well I DID do this at home and not in front of a machine!
    You can not use Variables starting with V or O also... there are others that you can not use also, but can not be bothered looking for them right now...


  • #12
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    643
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cncboy1 View Post
    Hallo
    V32=1
    On a OSP5000 this, V[V32]=1234, will not work.
    On a OSP7000 i will test it tomorrow.

    rg
    CNCBOY1
    Just tried this on our OSP5000L, OSP5020L and OSP7000L controllers... you are correct, it does not allow it! Invalid redirection or some such crap.
    That is not good.
    Will have to try something else.
    Brian.


  • Similar Threads

    1. How to print ion a 3d surface
      By whiteriver in forum Printing, Scanners, Vinyl cutting and Plotters
      Replies: 3
      Last Post: 01-20-2010, 04:39 PM
    2. cant print?
      By erase42 in forum BobCad-Cam
      Replies: 13
      Last Post: 11-30-2009, 09:05 AM
    3. Need Help!- Is there a way to have BC print out a Blue Print of a drawling?
      By Stampede in forum BobCad-Cam
      Replies: 3
      Last Post: 01-05-2009, 08:36 AM
    4. Print out Mazak'program
      By locky2701 in forum Mazak, Mitsubishi, Mazatrol
      Replies: 2
      Last Post: 12-24-2008, 05:02 AM
    5. 0.8 um Symbol on print ?
      By RMARCH in forum General Metalwork Discussion
      Replies: 4
      Last Post: 11-30-2007, 10:55 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.