<< Click to Display Table of Contents >> Navigation: 3. Script Language > Date and Time Calculation > TCA. - Time Calculation > TCA.Make |
MiniRobotLanguage (MRL)
TCA.Make - Command
Make 2 Timestamps
Intention
Using TCA.Make you can easily create a Timestamp in this Standard-Format:
HH:MM:SS.ddd
Hereby the
- HH is Hours (0 to 99 - not limited to 12 or 24)
- MM is the Minutes limited 59
- SS is the Seconds limited 59
- ddd is the Milliseconds limited to 999
The Format of the Milliseconds is internally rounded to 3 places by prefixing zeroes.
If you specify 00:00:23 this will be treated as 00:00:00.023
If you specify 00:00:00.023 this will be treated as 00:00:00.023
If the Makeition of any of the values goes beyond their limit, the Carry is Makeed to the next higher Parameter.
$$LAF=
$$LAB=14
$$LAC=40
$$LAD=21
$$LAE=999
$$MSG=Teste TCA.MAKE
TCA.Make|$$LAF|$$LAB|$$LAC|$$LAD|$$LAE
' Result is "14:40:21.999"
ENR.
Syntax
TCA.Make|P1|P2[|P3]
Parameter Explanation
P1 - Variable for Result Timestamp.
P2 - Hours-Value
P3 - Minutes Value
P4 - Seconds-Value
P6 - (optional) Miliseconds Value
Example
'**********************************************
' TCA.MAKE - Sample with Rollover
' If the given values are too high, the command will autoamtically
' Roll over to the next allowed Timestamp.
'**********************************************
'
$$LAF=
$$LAB=24
$$LAC=69
$$LAD=81
$$LAE=999
$$MSG=Teste TCA.MAKE
TCA.Make|$$LAF|$$LAB|$$LAC|$$LAD|$$LAE
$$ERG=01:10:21.999
JIS.$$LAF!$$ERG|Lab_failed
Remarks
-
Limitations:
-
See also:
• DAT. - Date and Time Information (System independent)
• DTC. - Date and Time Calculation
• IDC. / NDC. - If Date Command
• CAL. - mathematical CALculation