166
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
E2WRITE
573
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
576
E2WRITE enables writing of different data types directly to the serial EEPROM.
The FB writes the contents as from the address of SRC to the serial EEPROM.
►
Determine the address by means of the operator ADR and assigne it to the FB!
► The execution of the FB takes some time, therefore it must be monitored via the output RESULT.
If RESULT = 1 , the input ENABLE must be set to FALSE again.
>
Parameters of the inputs
577
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
DST
INT
Target start address in the memory
permissible = 0...767 = 0x0000...0x02FF
LEN
INT
Number of data bytes to be transmitted
SRC
DINT
start address of the source variables
Determine the address by means of the operator ADR and
assigne it to the FB!
>
Parameters of the outputs
578
Parameter
Data type
Description
RESULT
BYTE
feedback of the function block
(possible messages → following table)
Possible results for RESULT:
Value
dec | hex
Description
0
00
FB is inactive
1
01
Data transfer completed without errors
2
02
function block is active (action not yet completed)
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......