You are not logged in.
Pages: 1
Hi Guys,
Question about the okuma conditional N word macro.
I have a subroutine file from an okuma with a p200l control which contains the following calls:
IF[VRSTT NE 0] NRTS1
…
…
…
NRTS1
I’ve saved one of the library osp controls in order to create the control for this one and the okumacondnword and associated word/addresses seem to be set up as per the help file but the goto jump is not working.
The description of the logic is confusing to me. The help states that if the next non-space character is not numeric (as in my sub) and an if statement exists then 'goto seq' is called and the word format is set to numeric.
This will surely result in the call not being read as the text following the N is going to be alph-numeric. Has anyone had success in using this, am I mis-interpreting the logic? if not then how do I configure this so that if the next non-space character is not numeric then 'goto label' is called instead and an alpha-numeric call is used?
Thanks in advance
Daniel
Current version: Vericut 7.0.3
Offline
Make sure you variable VRSTT is defined correctly in the Word Format window.
Add a word VRSTT type Special, sub-type: Variable Name.
If the word is not defined, the If statement fails.
Offline
Thanks for the reply Serge,
I have tried defining VRSTT, and also setting it to zero and one in start of processing as the program is not setting this variable.
Despite this I get "Error: The Word NRTS is not defined" on reaching the IF statement
I have tried forcing the correct logic by using the defined 'N' options, from within the Word Addresses, directly. This seems to work as expected but will not suffice as this will only work in the case where I have manually substituted the N.
IF[VRSTT NE 0] N_GOTO_LABEL RTS1
...
...
...
N_LABEL RTS1
Thanks
Daniel
Current version: Vericut 7.0.3
Offline
Pages: 1