RTC convert TimStr and MiniSter and SecStr to Float format

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: RTC convert TimStr and MiniSter and SecStr to Float format

Post by Monie Jacobsen »

Hi everybody

Can't use RTC (MCP7940N) (Storage) globally in one's codes ???????
Best Regard
Monie

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: RTC convert TimStr and MiniSter and SecStr to Float format

Post by LeighM »

Hi Monie,
Could you explain your problem in more detail?

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: RTC convert TimStr and MiniSter and SecStr to Float format

Post by Monie Jacobsen »

Hi LeighM

I Want like to be able to use RTC anywhere in the codes also outside RTC - LOOP-END

Want to be used outside the unit RTC LOOP END
Attached file:
MIAC dsPICSetting SolarTracker_05-03-2019.fcfx
(116.68 KiB) Downloaded 268 times
The code below does do not work globally. works only in the same LOOP END ...
MIAC dsPICSetting SolarTracker_Not Global.fcfx
(116.15 KiB) Downloaded 259 times
Best Regard
Monie

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: RTC convert TimStr and MiniSter and SecStr to Float format

Post by Monie Jacobsen »

Hi LeighM
Have made RTC Date and Time work outside the LOOP where Time and Date were first set.
That was the only way I could get RTC to work outside the setup.

Do you have a better proposal for codes?

See update file below!
Attached file:
MIAC dsPICSetting SolarTracker_07-03-2019.fcfx
(118.81 KiB) Downloaded 277 times
Best Regard
Monie

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: RTC convert TimStr and MiniSter and SecStr to Float format

Post by LeighM »

Hi Monie,
Looks like you have it working.
The RTC can be called anywhere.
The Flowcode simulation step and break-point functions are useful for stepping and checking the overall logic of your program.

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: RTC convert TimStr and MiniSter and SecStr to Float format

Post by Monie Jacobsen »

Hi LeighM

Trying to use The Flowcode simulation step and breakpoint functions!
But in Simulation speed I can only set the number "0.25" can choose others but at the start of Simulation it returns to "0.25".
Want to set simulation step to Normal and be able to save the selected number.
ProjectOptions.JPG
ProjectOptions.JPG (25.16 KiB) Viewed 6351 times
Hope you can see what I'm doing wrong ;-)

Isn't there one here! That will describe how Simulation speed can be written and saved and Simulation speed startup = Normal ???????

With dsPIC (MI5809) I try to set Simulation speed to Normal, but always return to number "0.25".

Isn't there anyone who can answer here?
Last edited by Monie Jacobsen on Thu Mar 14, 2019 4:08 pm, edited 1 time in total.
Best Regard
Monie

Post Reply