2/7/2019 2:11 AM | |
Posts: 1 Rating:
|
Hi there, I have a machine that requires multiple hardware configurations (mostly I/O module differences) based on the system requirements. I would like to write one program for all my machines that can auto-detect the connected hardware, and then choose which code to use. Ideally, I want to build the machine and place an MMC card (w/ this program on it) into the new PLC, and be up and running without any additional configuration. (no HMI selection, no TIA Portal Downloads) Is this possible? I've seen the Configuration Control documentation, and it looks like I'll have to select my machine variation on the HMI to set the hardware config parameters. Is this the only way? or can I automate this? Best Regards, ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 2/7/2019 11:37:18 AMNew subject after splitting |
|
2/7/2019 11:28 PM | |
Joined: 7/7/2010 Last visit: 8/7/2024 Posts: 15067 Rating:
|
If you want to use the tools provided by Siemens that include an integrated HMI for the hardware configuration selection, then yes, you need an HMI. The PLC logic to detect what hardware is connected could be done by: 1. Try to detect machine type #1 hardware configuration (the default). 2. If all hardware required for machine #1 is detected, set machine #1 and stop looking. Go to run. 3. If machine #1 hardware configuration is not found, select hardware for machine #2. 4. Attempt to detect machine #2 hardware config. Repeat steps 2-4 for each machine after setting the machine for each machine type. Best of luck. Life would be simpler with a well labeled stack of memory cards
|
science guy |
|
Follow us on