3/12/2023 7:05 AM | |
Joined: 3/30/2020 Last visit: 9/12/2024 Posts: 4744 Rating:
|
Okay Mr. Raza, let us assume those 30 buttons and lamps are randomly distributed over the PLC control system's inputs / outputs. Now it becomes interesting. See the attached project. Note that it has been coded for Step7 V13.0.2 since you did not remind us which software you use. Note that the predefined lists in the program has been populated with legal values. Have a look at the code. There is room for improvement. The code uses x3 button/lamp pairs. So it needs to be scaled up. It is also possible to 'detect' how many pairs are in the list -- if your software gives you the ability to create ARRAY[*]. Your thoughts? Attachmentrandom-toggle.zip (191 Downloads) |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
3/16/2023 8:42 AM | |
Joined: 3/30/2020 Last visit: 9/12/2024 Posts: 4744 Rating:
|
See the attached ZIP file for the project in Step7 V15. For future reference: As alternative.. The free application "7ZIP" is able to retrieve the files Attachmentrandom-toggle_V15.zip (176 Downloads) |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
Follow us on