Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I've got an assembly with a program inside of it. There are two parameters, a shifting string and a pin string. The shifting string values are low or high, the pin string values are up or down. Currently I have a shift program written so a component's offset values is determined by the value of the shifting string. See below:
IF SHIFTING =="LOW"|SHIFTING =="low"
D5=33.5085
ENDIF
IF SHIFTING =="HIGH"|SHIFTING == "high"
D5=0
ENDIF
What I want to do is have that same component offset value be determined by both the shifting and pin values? Is there a way to add an "AND" statement so that if my shifting is "low" and my pin is "up" D5 would equal 33.5085 and if the shifting is "low" and the pin was "down" D5 would equal say 34.000?
There should be a way, I tried adding AND PIN =="UP" to the line, but that didn't work. What am I missing?
Thanks!
Ted