Hello!
I'm still at school, learning the basics...
In an attempt to program a function which is checking a color sensor i'm stuck.
The plc (cpu 314c) is enabling 4 outputs, one at a time, to activate 4 different bank switches on a color sensor. If there is a match the color sensor's output becomes high. This is detected in the FC and the corresponding value is stored.
This Fc is called from another functionblock. When this FC is succesfull the ENO output should be high to make it possible for the program to continue. (for ex. ATT of the color...).
Unfortunately the ENO of the FC is only high if the move instruction in NW5 was succesfull.
I presume earlier succesfull move instruction are overwritten by the following.
Can anyone tell me how to enable the ENO of the FC when ANY of 4 MOVE instructions are succesfull please?
The Set / SAve instruction (as suggested on this forum) doesn't work.
Thanks in advance!
ps: reminder, student
I'm still at school, learning the basics...
In an attempt to program a function which is checking a color sensor i'm stuck.
The plc (cpu 314c) is enabling 4 outputs, one at a time, to activate 4 different bank switches on a color sensor. If there is a match the color sensor's output becomes high. This is detected in the FC and the corresponding value is stored.
This Fc is called from another functionblock. When this FC is succesfull the ENO output should be high to make it possible for the program to continue. (for ex. ATT of the color...).
Unfortunately the ENO of the FC is only high if the move instruction in NW5 was succesfull.
I presume earlier succesfull move instruction are overwritten by the following.
Can anyone tell me how to enable the ENO of the FC when ANY of 4 MOVE instructions are succesfull please?
The Set / SAve instruction (as suggested on this forum) doesn't work.
Thanks in advance!
ps: reminder, student