(5)| 8/9/2011 2:55 PM | |||||||||||||||||||||||||
|
Joined: 1/28/2009 Last visit: 12/24/2025 Posts: 6885 Rating:
|
Hi Extraction can be done in STEP7 or on HMI. Use the trick in the following faq.Check codes in attachment. How can you have a tag of the S7 data type IEC time (TIME) displayed in WinCC?
AttachmentWinCC_S7_IEC_TIME.zip (592 Downloads) |
||||||||||||||||||||||||
This contribution was helpful to
|
|||||||||||||||||||||||||
| 8/9/2011 4:46 PM | |
|
Joined: 1/28/2009 Last visit: 12/24/2025 Posts: 6885 Rating:
|
Hi You want an FB to convert variable type TIME to its composing elements: Day,Hour,minute,second? let's create one! [code] L #zeit //TIME L 1000 /D T #buffer //ignore milliseconds NOP 0 L #buffer L L#86400 /D T #day //////////////////////////// L #buffer L L#86400 MOD T #buffer //////////////////////////// L #buffer L 3600 /D T #hour /////////////////////////////////////// L #buffer L 3600 MOD T #buffer ///////////////////////////////// L #buffer L 60 /D T #min L #buffer L 60 MOD T #sec[/code] Best regards Attachmentzeit.zip (475 Downloads) |
Last edited by: hdhosseini at: 8/9/2011 9:17 PMLast edited by: hdhosseini at: 8/9/2011 4:51 PM |
|
This contribution was helpful to
|
|
| 7/25/2014 7:18 AM | |
|
Joined: 3/21/2006 Last visit: 10/16/2025 Posts: 10239 Rating:
|
Extract Hour, Minutes and Secs, in Integer form from TOD format - SCL Code |
Follow us on