Industry Online Support
Technical Forum
12/7/2011 9:42 PM | |
Joined: 7/7/2010 Last visit: 3/24/2023 Posts: 13205 Rating:
|
The attached TIA Portal V11 SP1 Upd 2 program may get you thinking about a solution. This was loaded into a CPU-1214C DC/DC/RLY and tested. It ran as per your description using the online "Modify" option to set bits to 1 for E-Stop and Cycle Start. You'll have to write your specific abort, fault, cycle stop methods, but those are typically all the same - turn off the press, unless turning off the press actually creates a problem. Your application may have something that engages a holding mechanism, and turns off the press. Any number of variations. Anyhow, take a look. Nothing special about how it runs. A cyclic program runs a sequencer. Each time the sequencer runs, it enables a press cycle to run and keep running. Once it counts the proper number of complete cycles, it stops the cycle, then turns off the press, and turns on a 'press cycles complete' bit. The data for the cycle comes from a DB - for testing purposes those values are loaded on first scan with constant values - which could come from an HMI and user input. Probably simpler ways to handle it, but this does have the option to watch it run and it does not loop the PLC which is the computer programmer approach -- loops are bad in PLCs except in very special cases. AttachmentPress_Cycle_Program.zip (111 Downloads) |
science guy |
|
This contribution was helpful to
1 thankful Users |
12/8/2011 5:35 PM | |
Posts: 44 Rating:
|
Thanks, you have gone to a lot of trouble,. First thing I had to do is upgrade to the new service pack, this took all day !!! Thankyou for your time. |
Follow us on