FC_SysSaveParameter - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.34.1.0

Versions:

Current version

Task

Save values of the input parameters (types ED, EF, ER, ES) in a file and use these values as initialization values for the input parameters during controller start-up.

Description

This function saves the values of the input parameters in one file. The file is named IoConfig.par and located in directory ESystem on the mass storage device (CF card or SD card). The file IoConfig.par is used for the initialization of the input parameters during system start-up. The input parameters are initialized with the values saved in the file IoConfig.par.

The FC_SysSaveParameter function saves the input parameters in an internal buffer. This buffer contains the values of the input parameters at the time when the FC_SysSaveParameter function is executed. The buffer is the data basis for the file IoConfig.par. This behavior causes an interaction with the FC_SysSaveParByLogAddr function. The value for one input parameter is updated in the buffer via the FC_SysSaveParByLogAddr function; then the file IoConfig.par is written with the help of the buffer. If the file IoConfig.par is deleted between the call-up of FC_SysSaveParameter and FC_SysSaveParByLogAddr, the file IoConfig.par receives the initialization values for the input parameters.

NOTE: Processing this function takes several 100 ms. This is why there must be a one-time increase in the times for the cycle check of the task in which this function is executed. For example CycleCheckTimeSet(500, 1000).
NOTE: A Login with download deletes the parameter file IoConfig.par.

Return Value

Data type

Description

DINT

0: OK

-1: Error detected