Data transfer within the PLC
834
Part III FP Instructions
P13_EPWT
EEPROM write to memory
The EEPROM memory is not the same as the hold area. The hold area stores data in real time.
Whenever the power shuts down, the hold data is stored in the EEPROM memory. The
P13_EPWT instruction sends data into the EEPROM only when the instruction is executed. It also
has a limitation of the number of times you can write to it (see table below). You must make sure
that the P13_EPWT instruction will not be executed more often than the specified number of writes.
For example, if you execute P13_EPWT with R901A relay (pulse time 0.1s), the EEPROM will
become inoperable after 100,000 * 0.1 sec=10,000 sec (2.8 hours). However if you want to hold
your profile data such as positioning parameters or any other parameter values that are changed
infrequently, you will find this instruction very useful.
PLC types
Availability of P13_EPWT (see page 1329)
One of the two input variables 's2' or 'd' has to be assigned constant number
value.
Variable Data type Function
EN BOOL Activation of the function (when EN changes from FALSE to
TRUE, the function will be executed one time)
s1 INT, WORD DT start address of the block(s) that you want to save
s2 DINT, DWORD Number of blocks to write (1 block = 64 words/ 2048 words
(DTs))
d DINT, DWORD EEPROM start block number
ENO BOOL When the function was executed, ENO is set to TRUE.
Helpful at cascading functions with EN-functionality
For Relay T/C Register Constant
s1 - - - - - - DT - - -
s2, d DWX DWY DWR - DSV DEV DDT - - dec. or hex.
Description
Using this instruction data will be copied from the data area (DT) to the EEPROM/ Flash-ROM.
Data types
Operands