RMA
Member
I'm working in a steel rolling mill at the moment and while digging my way through some existing programs in a 416 cpu I've come across a load of code like the following example.
I understand the functionality fine, what I don't understand is the need for the final OR gate (the dummy assignment seems to be just there for the benefit of the compiler, since it's not used anywhere. The use of the connector makes me wonder if this was perhaps S5 code which has been simply converted to S7, without being tidied up.
Just for info, the circuit is transferring control from one light fence to another, should the first one be active because there happens to be a billet sitting in front of it at this point in time.
I understand the functionality fine, what I don't understand is the need for the final OR gate (the dummy assignment seems to be just there for the benefit of the compiler, since it's not used anywhere. The use of the connector makes me wonder if this was perhaps S5 code which has been simply converted to S7, without being tidied up.
Just for info, the circuit is transferring control from one light fence to another, should the first one be active because there happens to be a billet sitting in front of it at this point in time.