171
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
CHECK_DATA
603
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
606
CHECK_DATA generates a checksum (CRC) for a configurable memory area and checks the data of
the memory area for undesired changes.
► Create a separate instance of the function block for each memory area to be monitored.
►
Determine the address by means of the operator ADR and assigne it to the FB!
► In addition, indicate the number of data bytes LENGTH (length from the STARTADR).
Undesired change: Error!
If input UPDATE = FALSE and data in the memory is changed inadvertently, then RESULT = FALSE.
The result can then be used for further actions (e.g. deactivation of the outputs).
Desired change:
Data changes in the memory (e.g. of the application program or
ecomatmobile
device) are only
permitted if the output UPDATE is set to TRUE. The value of the checksum is then recalculated. The
output RESULT is permanently TRUE again.
>
Parameters of the inputs
607
Parameter
Data type
Description
STARTADR
DINT
start address of the monitored data memory
(WORD address as from %MW0)
Determine the address by means of the operator ADR and
assigne it to the FB!
LENGTH
WORD
length of the monitored data memory in [byte]
UPDATE
BOOL
TRUE:
changes to data permissible
FALSE:
changes to data not permitted
>
Parameters of the outputs
608
Parameter
Data type
Description
RESULT
BOOL
TRUE:
CRC checksum ok
FALSE:
CRC checksum faulty
(data modified)
CHECKSUM
DWORD
current CRC checksum
Содержание Ecomat 100 Mobile CR0301
Страница 209: ...209 ifm Programming Manual ecomatmobile CabinetController CR0301 Runtime System V05 2016 04 21 Notizen Notes Notes ...
Страница 210: ...210 ifm Programming Manual ecomatmobile CabinetController CR0301 Runtime System V05 2016 04 21 Notizen Notes Notes ...
Страница 211: ...211 ifm Programming Manual ecomatmobile CabinetController CR0301 Runtime System V05 2016 04 21 Notizen Notes Notes ...
Страница 212: ......