How to get System Time in Control Builder? - Version 1.0 (.JPG)
App id
20194739
File extension
.JPG
File name
3276_CB-TIME_1-0.JPG
Type
App
Version
1.0
File size
107 KB
1) Call GetDt Block and Enable it. Assign a variable to LOCAL_DT
2) Call DATE_AND_TIMETOCALENDARSTRUCT… Connect “LOCAL_DT” to ‘date and time’
3) Define another variable CAL_ST to ‘CalendarStruct’.
4) With help of this you can make programming as required by calling CAL_ST.Hour / CAL_ST.Minute
2) Call DATE_AND_TIMETOCALENDARSTRUCT… Connect “LOCAL_DT” to ‘date and time’
3) Define another variable CAL_ST to ‘CalendarStruct’.
4) With help of this you can make programming as required by calling CAL_ST.Hour / CAL_ST.Minute
Version
Description
1.0 by SG
1) Call GetDt Block and Enable it. Assign a variable to LOCAL_DT
2) Call DATE_AND_TIMETOCALENDARSTRUCT… Connect “LOCAL_DT” to ‘date and time’
3) Define another variable CAL_ST to ‘CalendarStruct’.
4) With help of this you can make programming as required by calling CAL_ST.Hour / CAL_ST.Minute
2) Call DATE_AND_TIMETOCALENDARSTRUCT… Connect “LOCAL_DT” to ‘date and time’
3) Define another variable CAL_ST to ‘CalendarStruct’.
4) With help of this you can make programming as required by calling CAL_ST.Hour / CAL_ST.Minute
You must be logged in and have downloaded this app in order to post a review or rating. Login
Posted by
on
Aug 01, 2018 at 03:44 AM
Posted by
on
Apr 12, 2018 at 03:28 AM
Posted by
on
Apr 12, 2018 at 03:28 AM
Posted by
on
Jan 30, 2017 at 11:03 PM
Posted by
on
Nov 01, 2014 at 06:09 PM
Posted by
on
Nov 01, 2014 at 06:09 PM
If anyone wants to use this code blocks, do not forget to set initial value of T-3S, according to attached picture it is set to 0s.
Posted by on Sep 30, 2014 at 12:13 PM