Hello All,I want to know that are we able to set a sequence number as a variable?Let say I want to jump to a block number N1001 and can I do this:BLN = 1001Goto N[BLN] ??Any ideas?Thanks
Hello All,I want to know that are we able to set a sequence number as a variable?Let say I want to jump to a block number N1001 and can I do this:BLN = 1001Goto N[BLN] ??Any ideas?Thanks
hy nodo it would be nice if it would work, but it doesn't, so you will need to write explicetly each condition
do you wish to stack many "if's" ? i was also looking for this a while ago, when i needed to group 10-15 conditions, but in the end i wrote them one by oneCode:/|\ | | | | 2m | < -- 1.5m, eat disinfectants ( bio ) --> | | | | \|/
if i may, what do you wish to do ? if you wish, i may help you with code layout / kindly
ps : a little more infos : N O V are not modal ... they can not be used before (nor after) "=" ... however, if you use numbers after them ( at least N O if i remember corectly), then you may read those numbers using system variables, but so far i never encountered a case that would require such a trick ( like reading active adress or subprogram )
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg
hello, here are 2 examples for staking " if's " :
Code:IF [ condition a ] NA IF [ condition b ] NB IF [ condition c ] NC IF [ condition d ] ND NA action a goto NZ NB action b goto NZ NC action c goto NZ ND action d NZ noexCode:IF [ not condition a ] NB action a goto NZ NB IF [ not condition b ] NC action b goto NZ NC IF [ not condition c ] ND action c goto NZ ND IF [ not condition d ] NZ action d NZ noexi did not mean modal, i also don't know the word ... i mean those are not read/write, can't be used in math expressions ( N= O= V= are not allowed ) / kindlyN O V are not modal
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg
Hi Deadlykitten,Thanks for your info. Actually, I don't need to stack many "ifs". I have a sub program to calculate things for the job. After finish the calculation it will go to destination where we need. So I can call the sub wherever, whenever I want and just assign a block number.Main Programblah blah...BLN = 1001Call O0100My sub looks like this:O0100.....Goto N[BLN]RTSI tried N[BLN] but it did not work. It would be easy and simple if I could set a block number as a variable, right?
Block numbers as variables is not a standard feature. I've heard that it may be available as an option. Check your Management Data card from the back of the machine to see if it is listed. Check with Okuma to see if it is offered. Definitely not standard though.
Best regards,
Experience is what you get just after you needed it.
hy nodo i believed that you wish to stack 'ifs', but i was wrong ...
CALL O0100 BLN = 1001 ( you may put BLN on same line with CALL statement )Main Programblah blah...BLN = 1001Call O0100
what do you mean by assigning a block number to a soubroutine ?So I can call the sub wherever, whenever I want and just assign a block number
i have no clue what you wish to do, so i can't help ... please be a bit more specific, maybe share your code
i don't know what you are after, maybe there is a simpler solution / kindlyIt would be easy and simple if I could set a block number as a variable, right?
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg
look into "User Task 3", it lets you do that. We use it in are programming now.
Yeah.
We use this on our Okuma HMC's to retrieve information about the current tool. You just pass the tool number (PAT) and it goes to that N number.Code:OTDBJ (START TOOL DATABASE FILE LOADER) GOTO PAT N1 FOPENA MD1:T001.TDB GOTO NRTS N2 FOPENA MD1:T002.TDB GOTO NRTS N3 FOPENA MD1:T003.TDB GOTO NRTS N4 FOPENA MD1:T004.TDB GOTO NRTS NRTS RTS
hy nodo just in case : ut3 is a special function ( at least for mills ), about some extra macro functions, like GOTO [ argument ], IF and WHILE-DO; pls find attached pdf
MN_^J<DAK?;BGL1345TU@C2=HI confused ...
hy rdhog ... i was wondering about a relevant code example, and when i saw your post ( which is kind of simple but complex ) i remembered that we talked before about those vs* variables
you use that modified oo30 or something, that has some multilevels
i like that code ... i can write it without ut3, using a macro in-file search ... however
i want to ask you something : that code is executed inside the main program as a part of the tool change code, or it is executed only once, before running the main program ( kind of a tool register / preseter program ) ? kindly
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg
If anyone wants to enable user task 3 function on the cnc machine, he can send me a private message.
I will not get paid from the first 3 people.
"Imagination is more important than knowledge."
Hi rdhoggattj,It does not work for me. Maybe our machine are old . I did try it but I got error so I posted the issue here though.
Check to see if User Task 3 is listed on your data Management card and if it is checked or not. If not, then you will have to either see Kurmay ;-) or your local Okuma Rep for the option.
BTW Kurmay...how do you accomplish such a sacred task??
Experience is what you get just after you needed it.
Hi sir , plz guide me how to activate User Task 3 for OSP p 200m & p300