Writing config data in MIAC

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

Moderators: Benj, Mods

Post Reply
Hamish_L
Posts: 2
Joined: Wed Sep 09, 2009 2:25 pm
Contact:

Writing config data in MIAC

Post by Hamish_L »

I am using a MIAC to control a chiller and a pump, and both need to store some setting values adjusted by the user. I want these to be preserved through a power failure or reset. Do I have access to an area in the PIC EEPROM using Flowcode 3 ? Or do I need to install an external EEPROM ?

I probably need less than 20 bytes of data stored.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Writing config data in MIAC

Post by Benj »

Hello

Yes the MIAC has an 256 byte internal EEPROM which can be referenced using Flowcode 3.

To do this you simply have to add the EEPROM component to your Flowcode program and then use the component macro icons to call the EEPROM read or write functions.

You can also preset the EEPROM data if you wish by adding the following to the defines section of the supplementary code window.

//Initializes EEPROM with data: 0C 22 38 48 45 4C 4C 4F 00 FE 99
#pragma DATA _EEPROM, 12, 34, 56, "HELLO", 0xFE, 0b10011001

Hamish_L
Posts: 2
Joined: Wed Sep 09, 2009 2:25 pm
Contact:

Re: Writing config data in MIAC

Post by Hamish_L »

Many thanks for the quick reply - works a charm ! :P

While I am here - what is best way to connect an RTC to a MIAC - or is that also hiding inside somewhere ?
Seems many industrial applications reference time ?

Post Reply