
Les67 (Customer) asked a question.
What I am asking, is there an easy way to take a fill valve output and assign it to a specific material location (material feed valve output). This is a material loading system that I am designing and building using a P2-550 CPU and system. The idea is that from a Cmore touchscreen I can assign each fill valve to a specific material location. Sometimes multiple fill valves will use the same material valve. This assignment would change when the material is changed (by physically moving the connection hose to the other material feed valve). The fill valve stays on the machine, but the material feed valve is in the back area, and the hose changes location to each valve.
I am thinking some kind of 2D array, but the second side of the array is variable? Easier way?
I have an application where I allow operators to select what input will be used to trigger an operation. I use a radio button in the Cmore as the tool to select the input. The logic is coded in the PLC with branches, one for each input to select from, and based on the radio button's position, it determines what input is in use.
I can see using this similarly to select the output triggered.
I am doing this without the use of an array.
The great thing about Productivity Suite is, that pointer coding is easy.
Edit:
Since Productivity does not allow coding multiple outputs with the same output address, you'll have to use individual addresses as your outputs in your selection and then code a separate rung with branches of those bit outputs to the output module's output.
Struggling to understand your system. Is this description and ladder close to your system?
(Valve and material quantities are just for example)
You have (4) Fill Valves (1 thru 4), and each Fill Valve hose can be connected to any of (4) possible material valves (A thru D). So, assume Fill Valve 1 hose is connected to Material C. We have a 4-button Radio Button on the HMI for each Fill Valve. The (4) Radio Buttons would select Material A, B, C, or D for that Fill Valve. Each Radio Button word tag would hold the values 1, 2, 4, or 8. So you would push the 3rd button, selecting Material C. This would make the "Fill 1 Radio Button" word tag hold a value of 4. In the ladder below, when "Open Fill 1 Command" bit turns on to fill station 1 with Material C, the Fill Valve 1 Sol would energize, and the Matl Valve C would energize.