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.
Writing config data in MIAC
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Writing config data in MIAC
Many thanks for the quick reply - works a charm !
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 ?

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 ?