DAY_TIME

Gives date or time of the day as a message string.
lrsf_dt1
Arguments
SEL
DINT
output selection
0= get current date
1= get current time
2= get day of week
Q
MESSAGE
time/date expressed on a character string
''YYYY/MM/DD' if SEL = 0
''HH:MM:SS' if SEL = 1
day name if SEL = 2 (ex: 'Monday')
Example
(* FBD Program using "DAY_TIME" function *)
lrsf_dt2
(* ST Equivalence: *)
Display := Day_Time (0) + ' ; ' + Day_Time (1); (* Display text format is: 'YYYY/MM/DD ; HH:MM:SS' *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal