Hello,
I am having a rough time getting my ouput to energize when trying to compare two strings. I have a fault that I am getting in string format from my FANUC robot using explicit messaging. I have a string tag with a dim of 10 so I can 10 fault strings and use them in my logic to compare with the actual faults I am getting from the robot. I have tried two methods so far. First I tried using a EQU block where I am comparing the string I am getting from the rorobt to my first string I have in my STRING[10]. Currently they do equal eachother but the output is not turning on. Next I tried using a CMP. The tags I used were the same as the EQU. Heres an example of the expression I had, value_1 = value_2, both are strings. And yet still no luck turning my output on. Am I missing something? Any help would be appreciated!! Thank you for reading!
I am having a rough time getting my ouput to energize when trying to compare two strings. I have a fault that I am getting in string format from my FANUC robot using explicit messaging. I have a string tag with a dim of 10 so I can 10 fault strings and use them in my logic to compare with the actual faults I am getting from the robot. I have tried two methods so far. First I tried using a EQU block where I am comparing the string I am getting from the rorobt to my first string I have in my STRING[10]. Currently they do equal eachother but the output is not turning on. Next I tried using a CMP. The tags I used were the same as the EQU. Heres an example of the expression I had, value_1 = value_2, both are strings. And yet still no luck turning my output on. Am I missing something? Any help would be appreciated!! Thank you for reading!