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?
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
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?
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<<<<<<<<<<<<<<<<<<
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.
Hallo
V901 ....V932 we use it in our abcd.SSB pgm's
rg
>>>>>>>>>>>>>>>Enough for now - back to work<<<<<<<<<<<<<<<<<<
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.
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<<<<<<<<<<<<<<<<<<
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.
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<<<<<<<<<<<<<<<<<<