Mitsubishi — Chapter 8 Application Instructions API 100-149

8 Application Instructions API 100-149 API 149 Operands: S : Device for storing the written data (starting from the designated D) m : Address in the file register to be written n : Number of data to be written at a time Explanations: 1. Range of S : D2000 ~ D4999 (SA/SX/SC); D2000 ~ D9999 (SX V3.0 and above); D2000 ~ D9999 (EH/EH2/SV); D2000~D11999 (EH3/SV2) 2. Range of m : K0 ~ K1,599 (SA/SX/SC); K0 ~ K9,999 (EH/EH2/SV); K0 ~ K49999 (EH3/SV2) 3. Range of n : For 16-bit instruction K1 ~ K1,600 (SA/SX/SC), K1 ~ K8,000 (EH/EH3/SV2); For 32-bit instruction K1 ~ K800 (SA/SX/SC), K1 ~ K4,000 (EH/EH3/SV2) 4. See the specifications of each model for their range of use. 5. Flag: M1101.

See explanations below. 6. SA/SX/SC/EH/EH2/SV/EH3/SV2 uses this instruction to read the data in data registers and write them into file registers. 7. SA/SX/SC offers 1,600 16-bit file registers. 9. EH/EH2/SV/EH3/SV2 is equipped with 10,000 16-bit file registers (number 0~number 9999). EH3 V1.40 abd 8. m and n of SA/SX/SC do not suppot E and F index register modification. above/SV2 V1.20 and above are equipped with 50,000 file registers. The 40,000 file registers added are number 10,000~number 49,999. The 40,000 file registers are stored in the flash ROM. It is suggested that data should be written into the 40,000 file registers by means of WPLSoft or ISPSoft. 10.

A DVP-EH3/SV2 series PLC whose version is 1.86 (or above) supports the use of MEMW to write data into the file registers. (DMEMW is not supported. If a memory card is installed, MEMW is not supported.) The number of times users can write data into the file registers should be less than 100000. The writing of data can not be executed continuously, and only one MEMW instruction can be enabled in a scan cycle. 11. m should be a value in the table below. (The value is an unsigned value. It is suggested that users should use a into the PLC, and an operation error will occur. There are 1088 words (48912 ~ 49999) in section 20, but n still hexadecimal value.) n should represent 2048 words.

If one of the two conditions is not met, data will not written must be 2048. The PLC will prevent the writing of data from exceeding the range. DVP-PLC Application Manual 8-73 Mnemonic Operands Function D MEMW P Write File Register Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F MEMW, MEMWP: 7 steps DMEMW, DMEMWP: 13 steps S * m * * * n * * * PULSE 16-bit 32-bit EH3 SV2 ES EX SS EH3 ES EX SS EH3 ES EX SS SA SX SC EH SV SA SX SC EH SV SA SX SC EH SV SV2 SV2 Section number File register nunmber Section number File register nunmber 1 K10000 (H2710) 2 K12048 (H2F10) 3 K14096 (H3710) 4 K16144 (H3F10)