MIAC Real Time Clock using the Advanced Expansion Module

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

Moderators: Benj, Mods

Post Reply
Dave @Harper Adams
Posts: 33
Joined: Tue May 21, 2013 4:21 pm
Been thanked: 1 time
Contact:

MIAC Real Time Clock using the Advanced Expansion Module

Post by Dave @Harper Adams »

Hi

Has anyone used the RTC function on the MIAC advanced expansion module? As far as I can make out from the help files you have to first initialise the module then update the local time variables from the RTC registers. Each variable (Hr/Min/S) can the be read into separate variables. I'm then trying to dispaly the variables on the MIAC's display.
Currenty the program downloads, usually just displays 0:0:0 (somtimes 0:0:4).
Any ideas?

Dave
Attachments
Simple RTC.fcf
Simple real time clock
(9.5 KiB) Downloaded 328 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: MIAC Real Time Clock using the Advanced Expansion Module

Post by medelec35 »

Hi Dave,
Attached is Flowchart that should display time and date just fine.

I believe that attached flowchart was also placed within MIAC System Flowcode Examples
found here:
http://www.matrixmultimedia.com/miac.php

There is a small bug within Flowcode that may require you to select Miac Advance Initialize again before able to run or compile.
after saving should be ok to run.

Martin
Attachments
Miac Advance expansion RTC Demo .fcf
(49.97 KiB) Downloaded 321 times
Martin

Dave @Harper Adams
Posts: 33
Joined: Tue May 21, 2013 4:21 pm
Been thanked: 1 time
Contact:

Re: MIAC Real Time Clock using the Advanced Expansion Module

Post by Dave @Harper Adams »

Thanks Martin

I'll give it a try.

Dave

Dave @Harper Adams
Posts: 33
Joined: Tue May 21, 2013 4:21 pm
Been thanked: 1 time
Contact:

Re: MIAC Real Time Clock using the Advanced Expansion Module

Post by Dave @Harper Adams »

Hi Martin

I tried the file you suggested but it didnt work.
The MIAC appeared to be senting info to the advanced module (as it was putting the LED on), but not receiving the RTC data back.
I connected a CAN analyser to the CANbus and some messages were being sent but others were not.
I then checked what level of sofware I had and there was a leter version. Uploaded the latest V5 version and the program worked (after re-adding the module initialization).
Then tried my original program (after re-adding teh module initialization) and that works too.
With hindsight I should have checked the level of software. But I have learnt a bit about the structure of the CAN massages and that there are several other good examples on the web which will be useful for the next part of the project.

Thanks Dave

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: MIAC Real Time Clock using the Advanced Expansion Module

Post by medelec35 »

Long as you're up and running now, thats the main thing.
Thanks for updating us.

martin
Martin

Post Reply