Page 1 of 1
New RTC Component Macro
Posted: Sun Aug 30, 2020 1:29 am
by billduck
I was programming with this component.I wanted to get Minute,Hour, Date and some others. See the images uploaded.
Within the dialog, I was able to assign the Minute and Hour to a variable. But for the Month,Date,and Year, there was not the option.
I am only showing the error/picture for the Date.
Thanks in advance.
Re: New RTC Component Macro
Posted: Sun Aug 30, 2020 4:39 am
by medelec35
Hi billduck,
The
parameters is an input that's used if you have different functions that can be returned.
Just hover mouse below the
Name or
Type to see different return option values available:

- RTC.png (59.46 KiB) Viewed 3059 times
In your case the Expression needs to be 0, since you want the normal clock hours & not any of the alarms assigned to your variable.
The Return value will be the variable you assigned for the function. e.g
Hour.
Where there are not any parameters to enter, the component will only return the function name i.e in this case the
Date:

- RTC2.png (49.56 KiB) Viewed 3059 times
I have moved the topic from bug reports, since not a bug.
Re: New RTC Component Macro
Posted: Sun Aug 30, 2020 9:37 pm
by billduck
Thanks. I think I was asleep at the wheel. And will study and learn this.
Variable arrays
Posted: Thu Sep 24, 2020 1:28 pm
by billduck
Hey medelec35 - I am looking for a tutorial on using arrays.
Any help is appreciated.
Re: New RTC Component Macro
Posted: Thu Sep 24, 2020 1:31 pm
by Benj
There is a small section on arrays here that might be of use.
https://www.matrixtsl.com/wiki/index.ph ... _Variables