Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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