ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Saving, reading and converting data in the memory
221
10.3.6
Function E2WRITE
Contained in the library:
ifm_CRnnnn_Vxxyyzz.LIB
Available for the following devices:
•
CabinetController: CR0301, CR0302
•
PCB controller: CS0015
•
SmartController:
CR2500
Function symbol:
E2WRITE
ENABLE
RESULT
DST
LEN
SRC
Description
E2WRITE enables writing of different data types directly to the serial EEPROM.
The function writes the contents as from the address of SRC to the serial EEPROM. The execution of
the function takes some time, therefore it must be monitored via the function output RESULT. If
RESULT =1 , the input ENABLE must be set to FALSE again.
NOTE
The address for SRC must be determined using the function ADR and assigned to E2WRITE.
Parameters of the function inputs
Name
Data type Description
ENABLE
BOOL
TRUE: function is executed
FALSE: function is not executed
DST
INT
Start address in the memory
(0...2FF
16
and 340
16
up to EEPROM size)
LEN
INT
Number of data bytes to be transmitted
SRC
DINT
Address of the source variables
Parameters of the function outputs
Name
Data type Description
RESULT
BYTE
0 = Function inactive
1 = Function stopped
2 = Function active