CPU_CONFIG_WRITEΒΆ

../_images/a1d3583be38a9f120a33139000eba54e1

The Function Block writes user-defined configuration data to the Flash memory. The configuration data stored in the Flash are like an ini file in their construction, like for example the sdcard.ini on the SD card of the AC500.

Example for a line with an IP address in the section Common:

[Common]

IP_ADR=192.168.0.1

The procedure should be performed in three steps:

  1. Initialization (ACT = FLASH_DATA_INIT) of the configuration data with a FALSE/TRUE edge at input EN.
  2. Writing (ACT = FLASH_DATA_WRITE) of the individual values (SECTION, KEY, VALUE) with a FALSE/TRUE edge at input EN. This step is repeated for each entry until all the desired data has been written.
  3. Transmit (ACT = FLASH_DATA_SAVE) the data into the Flash and ensuring a permanent data storage in this way.

Only after the third step has been done, the data is stored in the Flash and will be non-volatile in case of power-down.

Available as of PLC runtime system: V1.3.0
Included in library: SysInt_AC500_V10.lib
Type Function Block with historical values