CONCAT_DATE_TOD block
Short summary
Name |
CONCAT_DATE_TOD |
→POU type |
|
Category |
|
Conform to →IEC-standard |
no restrictions |
Graphical interface |
|
Available since |
version 1.19.0 (for logi.CAD 3) |
Functionality
The block concatenates (combines) a date and a time of day to a date with time of day (DATE_AND_TIME). Enter date and time at the corresponding inputs.
Inputs, return value
|
Identifier |
Description |
|
Inputs: |
IN1 |
DATE |
date |
IN2 |
TIME_OF_DAY |
time |
|
Return value: |
– |
DATE_AND_TIME |
|
Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.
Example for usage within ST-editor
PROGRAM Test
VAR
result : DATE_AND_TIME;
END_VAR
result := CONCAT_DATE_TOD(D#
2014
-
03
-
12
, TOD#
12
:
30
:
00
); (* The variable
'result'
evaluates to
'DT#2014-03-12-12:30:00'
. *)
END_PROGRAM
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.