8 Application Instructions API 100-149 12. It takes about 84 milliseconds for 2048 words to be written into the file registers 10000~49999. It is suggested that the writing of data should be executed when the PLC does not need to operate rapidly (including executing 13. If S , m and n fall without their range, operation error will occur. M1067, M1068 = On and D1067 will record the external interrupts). error code H’0E1A. Program Example: 1. When X0 = On, the 32-bit instruction DMEMW writes 100 32-bit data starting from D2001 and D2000 into address 0 ~ 199 in the file register. 2. When X0 = On, the instruction will be executed.
When X0 = Off, the instruction will not be executed and the previously data written in will remain unchanged. X0 File Register: 1. EH/EH2/SV/EH3/SV2: When the PLC is powered, it will decide whether to automatically send the data in the file register to the designated data register by M1101 (whether to enable the function of file register), D1101 (start address in file register K0 ~ K9,999), D1102 (number of data to be read in file register K1 ~ k8,000), and D1103 (device for storing read data, starting from designated D, K2,000 ~ K9,999). 2. In EH/EH2/SV/EH3/SV2, the reading of data from file register to data register D will not be executed if D1101 0, D1101 > K9,999, D1103 K9,999. 3.
SA/SX/SC: When the PLC is powered, it will decide whether to automatically send the data in the file register to the designated data register by M1101 (whether to enable the function of file register), D1101 (start address in file register K0 ~ K1,599), D1102 (number of data to be read in file register K1 ~ k1,600), and D1103 (device for storing read data, starting from designated D, K2,000 ~ K4,999). 4. In SA/SX/SC, the reading of data from file register to data register D will not be executed if D1101 K1,599, D1103 K4,999. 5. When the reading of data from file register to data register D starts, PLC will stop the reading if the address of file register or data register exceed their range.
6. In PLC program, only API 148 MEMR and API 149 MEMW can be used to read or write the file register. See DVP-PLC Application Manual 8-74 Section number File register nunmber Section number File register nunmber 5 K18192 (H4710) 6 K20240 (H4F10) 7 K22288 (H5710) 8 K24336 (H5F10) 9 K26384 (H6710) 10 K28432 (H6F10) 11 K30480 (H7710) 12 K32528 (H7F10) 13 K34576 (H8710) 14 K36624 (H8F10) 15 K38672 (H9710) 16 K40720 (H9F10) 17 K42768 (HA710) 18 K44816 (HAF10) 19 K46864 (HB710) 20 K48912 (HBF10) DMEMW D2000 K0 K100