165
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
E2READ
579
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
582
E2READ enables reading of different data from the serial EEPROM.
The FB reads the contents as from the address of SRC from the serial EEPROM.
►
Determine the address by means of the operator ADR and assigne it to the FB!
► Given that the processing of the FB takes some time it must be monitored via the output RESULT.
If RESULT = 1 , the input ENABLE must be set to FALSE again.
>
Parameters of the inputs
583
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
SRC
INT
Source start address in the memory
permissible = 0...767 = 0x0000...0x02FF
and: 832...EEPROM size = 0x0340...EEPROM size
LEN
INT
Number of data bytes to be transmitted
DST
DINT
Start address of the target variables
Determine the address by means of the operator ADR and
assigne it to the FB!
>
Parameters of the outputs
584
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: ......