6/27/2012 12:35 AM | |
Joined: 9/27/2006 Last visit: 9/10/2024 Posts: 12282 Rating:
|
Hello Lucky; |
This contribution was helpful to
1 thankful Users |
6/27/2012 1:27 AM | |
Joined: 12/20/2008 Last visit: 8/12/2024 Posts: 556 Rating:
|
THANKS DANIEL, DO YOU KNOW, HOW TO MAKE DATABLOCKS / COUNTER TO BE RETENTIVE?
|
6/27/2012 4:00 AM | |
Joined: 9/27/2006 Last visit: 9/10/2024 Posts: 12282 Rating:
|
Hello Lucky; What model of CPU are you using, and does it have a MMC? In that case, have a look at the following information: Retentivity behavior of S7-300 CPU 31x and complete devices C7-6xx with MMC Hope this helps, Daniel Chartier |
This contribution was helpful to
1 thankful Users |
6/27/2012 4:13 AM | |
Joined: 10/7/2005 Last visit: 9/12/2024 Posts: 3020 Rating:
|
Hello nbk "L C 1" loads the Counter value as an INTEGER, which makes the"BTD" not only superflous but also responsibe for the PLC stop (a value of "10" decimal or "A" hex is an invalid BCD number). Simply getrid of the "BTD" and it will work just fine. If you want to load the Counter value as a BCD value in STL, you'd use "LC C 1" . This is just the STL way to decide in which format you want to load the value, if you use LAD or FBD for the counter, you'll see two output variables on the Counter and decide that way which one to use. I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
6/27/2012 9:25 AM | |
Posts: 197 Rating:
|
Correction: In that case, shouldn't I use ITD before using a DTR? |
6/27/2012 10:27 AM | |
Joined: 10/7/2005 Last visit: 9/12/2024 Posts: 3020 Rating:
|
You can dear nbkand it won't do any harm,but it is not needed in this case asa counter value can never be negative. |
Cheers |
|
This contribution was helpful to
1 thankful Users |
Follow us on