8/9/2011 2:55 PM | |||||||||||||||||||||||||
Joined: 1/28/2009 Last visit: 4/26/2024 Posts: 6838 Rating: (1359) |
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 (366 Downloads) |
||||||||||||||||||||||||
This contribution was helpful to1 thankful Users |
8/9/2011 4:46 PM | |
Joined: 1/28/2009 Last visit: 4/26/2024 Posts: 6838 Rating: (1359) |
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 (304 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 to1 thankful Users |
7/25/2014 7:18 AM | |
Joined: 3/21/2006 Last visit: 4/25/2024 Posts: 10228 Rating: (1181) |
Extract Hour, Minutes and Secs, in Integer form from TOD format - SCL Code |
Follow us on