SettgGetIntValue
(FUN)
FUNCTION SettgGetIntValue : RTS_IEC_RESULT
Get an integer value from settings
- InOut:
Scope
Name
Type
Comment
Return
SettgGetIntValue
RTS_IEC_RESULT
Runtime system error code (see CmpErrors.library).
Input
pszComponent
REFERENCE TO STRING
Name of component
pszKey
REFERENCE TO STRING
Name of key
piValue
POINTER TO DINT
Pointer to value for result
iDefault
DINT
Default value to set, if key not found
bCached
DINT
Flag, if value should be read cached or direct from file (CMPSETTINGS_CACHED, CMPSETTINGS_NOT_CACHED)