11/2/2018 2:42 PM | |
Joined: 7/9/2015 Last visit: 11/11/2024 Posts: 4023 Rating: (602)
|
Hi, sorry I can´t find any eror - with SFC1 you read clock and get it in HEX / BCD -Format. In your VAT you have changed datatyp format to dec....You must convert BCD to INT. Please check: How do you convert a "BCD"-type variable into an "INTEGER", and vice versa, in S7-SCL?In AWl you can use instruction BTI / ITB Regards, Towome |
Last edited by: Towome at: 11/2/2018 2:52:35 PM
|
|
This contribution was helpful to1 thankful Users |
11/5/2018 7:54 AM | |
Joined: 3/25/2015 Last visit: 10/15/2024 Posts: 50 Rating: (10) |
Thanks for the help. That seemed to be the problem. All good now. |
This contribution was helpful to1 thankful Users |
Follow us on