BlueAltezza
Member
I have two shift register banks reflecting the status of inspection cameras on a machine until the parts reach a reject station. Depending on the camera's result there's a 0, 1, 2, etc loaded into the DINT file for each camera.
Instead of displaying two separate rows of results on the HMI I want to combine them to one row. Each part has multiple inspections so having multiple rows on the HMI can take up a lot of space and confuse an operator.
To combine them I need to add the results of each DINT to a single DINT
I can do it with a ton of add instructions like "DINT_0[0] + DINT_1[1] = DINT_2[0]", "DINT_0[1] + DINT_1[1] = DINT_2[1]" and so on, but if there's a single instruction that can achieve the same goal (with a length of 20 to 30) I'd prefer that to clean up the logic. I thought it would be simple but I'm having a total brain **** this morning!
Thanks in advance
Instead of displaying two separate rows of results on the HMI I want to combine them to one row. Each part has multiple inspections so having multiple rows on the HMI can take up a lot of space and confuse an operator.
To combine them I need to add the results of each DINT to a single DINT
I can do it with a ton of add instructions like "DINT_0[0] + DINT_1[1] = DINT_2[0]", "DINT_0[1] + DINT_1[1] = DINT_2[1]" and so on, but if there's a single instruction that can achieve the same goal (with a length of 20 to 30) I'd prefer that to clean up the logic. I thought it would be simple but I'm having a total brain **** this morning!
Thanks in advance