7/9/2015 12:32 PM | |
Posts: 366 Rating: (30) |
Would you also add a snapshot of the opened datablock and one of the timer-call in LAD? nice regards |
7/9/2015 1:37 PM | |
Joined: 1/28/2009 Last visit: 4/1/2024 Posts: 6836 Rating: (1359)
|
Hello pavol30, You copied the data from the wrong place.Normally a simatic time has 2 outputs as indication of passing time.In LAD/FBD , you need to copy data from BCD output of timer of have the result you want.In your case, you copied data from BI (Integer format) and it only makes valid S5 Time value randomly,in you case: S5T#6m25s0ms is equal to W#16#2385 and at the same time BI output of timer is 385 that matches S5T#1s810ms your snapshot. I hope this helps, hdhosseini |
7/9/2015 1:40 PM | |
Posts: 4 Rating: (0) |
See in attachment... Timer is used only one time with S_ODT Attachmenttimers.zip (376 Downloads) |
7/9/2015 1:49 PM | |
Posts: 4 Rating: (0) |
Hi hdhosseini, can I assign BCD output from S_ODT directly to DB178.DBW36 and I'll have right S5TIME format or I must convert it? Thanks Pavol |
7/9/2015 2:15 PM | |
Posts: 1058 Rating: (93) |
Sorry, I did not see that hdhosseini already answered. While I was writing my post I had to do other things and finished when I came back. Only then I noticed when I got updated page. regards
|
7/9/2015 2:30 PM | |
Posts: 4 Rating: (0) |
Thank you all for answers. Now it works. |
This contribution was helpful to2 thankful Users |
Follow us on