There are two possible solutions, one would be to insert a user command
in front of the first i.e. #U12=1 then the @TOOlCHG(#S0=DROP IS 1.234). The
code generator will recognize that #U12 is set and you can test it in the
tool change section.
The other would be to include the var in the #S0 var i.e. @TOOlCHG(#S0=1
DROP IS 1.234). In the tool change section you could then test the var
using string commands.
IFSTR(STRSUB(#S0,1,1)=1)<do this>#ELSE<do that>
#EVAL(#S1=STRSUB(#S0,3,99)
#S1
Bill Wepking
CAM Programming Mgr
Landis Gardner
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 10:32 AM
To: John Gent; [EMAIL PROTECTED]
Subject: Re: [mfg-smartcam] Setting two variables in User Event, Event
Text: field
Actually John the "@TOOLCHG(#S0=DROP IS 1.234)(#U12=1)" statement works
fine without the comma. My problem is in the 2nd example "#S0=DROP IS 1.234
#U12=1". I need a way to separate the two variable declarations. I've tried
a comma, semicolon, colon, and parentheses to no avail. I need some fresh
ideas.
Thanks in advance,
Dave
"John Gent" <[EMAIL PROTECTED]>@loki.sdrc.com on 04/26/2002 09:00:37 PM
Sent by: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
Subject: Re: [mfg-smartcam] Setting two variables in User Event, Event
Text: field
Dave,
You forgot the comma between the variable settings ...
@TOOLCHG(#S0=DROP IS 1.234), (#U12=1)
HTH!
- John Gent
http://home.attbi.com/~jgent/
----- Original Message -----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 2:02 PM
Subject: [mfg-smartcam] Setting two variables in User Event, Event Text:
field
���� All,
This is what I can do....@TOOLCHG(#S0=DROP IS 1.234)(#U12=1), the string
is
output and #U12 is successfully set to 1.
This is what I can't do but want to....#S0=DROP IS 1.234 #U12=1
In the second example the string variable is set but the integer variable
is not. What is output is DROP IS 1.234 0=1 (#U12 is equal to zero prior
to
this). Is this just a syntax error?
Thanks, Dave
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================