1/12/2013 8:08 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
Hi How can I make a one-shot input in S5 like another PLC?or have different way? Thanks |
1/12/2013 8:38 PM | |
Joined: 9/27/2006 Last visit: 3/28/2024 Posts: 12249 Rating: (2660) |
Hello igor: You can use Fritz' code in the following thread to impement a one shot rising pulse: /tf/WW/en/Posts/51342 Hope this helps, Daniel Chartier |
This contribution was helpful to1 thankful Users |
1/12/2013 8:57 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
Hello Daniel . Thanks,but I need one shot in siemens S5 PLC.It's different them S7. |
1/12/2013 9:20 PM | |
Joined: 9/27/2006 Last visit: 3/28/2024 Posts: 12249 Rating: (2660) |
Hello igor: As Fritz wrote in the thread I pointed you to earlier: "In the old S5 days there was no --(P)-- (or --(N)--) instruction and rising edge detection was commonly done as shown below (example for the addresses that saddlepoint used):
All that the --(P)-- (or --(N)--) instruction do is to simplify the logic, the principle behind it remains the same though." I cannot put it more clearly, i think. For every instance you need in your program use a new input bit and a new flad bit to setup a new one shot instruction. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 1/12/2013 9:21 PM |
|
1/12/2013 9:56 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
Dear Daniel It's my mistake,I not see this explain.But I not strong in STL.Can you write it in LD code Best regards. |
1/12/2013 11:31 PM | |
Joined: 9/27/2006 Last visit: 3/28/2024 Posts: 12249 Rating: (2660) |
And here is an implementation taken from the S5-115U manual. Hope this helps, Daniel Chartier |
1/13/2013 6:51 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
Hi Daniel I sure to get your advice about AWL.You've been very helpful.Thanks to match. Igor |
Follow us on