AreaRegister
(FUN)
FUNCTION AreaRegister : BOOL
Register a memory area as redundant area.
Called automatically for areas selected in the redundancy configuration editor, in the registered area page. Other areas can be registered before program start using this function. To do so, in task configuration, register a function to event DownloadDone. Example code:
FUNCTION FDownloadDone : DWORD
- VAR_IN_OUT
EventPrm: CmpApp.EVTPARAM_CmpApp;
END_VAR
AreaRegister(ADR(first), ADR(last) - ADR(a), RDCY.AREA_TYPE.AREA_PASSIVE);
- InOut:
Scope
Name
Type
Comment
Return
AreaRegister
BOOL
Input
pArea
POINTER TO BYTE
Start address of area
udiSize
UDINT
Size of area
eType
AREA_TYPE
Redundancy area type