5 Categories and Use of Basic Application Instructions API 78 Operands: m 1 : No. of special module m 2 : CR# in special module to be read D : Device for storing read data n : Number of data to be read at a time Explanations: 1. DVP-PM uses this instruction to read CR (Control register) data from special modules 2. Range of m 1 (16-bit and 32-bit): 0 ~ 255 3. Range of m 2 (16-bit and 32-bit): 0 ~ 499 4. Range of n : 16-bit: 1 ~ (500 – m2) 5. When FROM is used as 16-bit instruction, Z device cannot be adopted; when FROM is used as 32-bit instruction, 32-bit: 1 ~ (500 – m2)/2 V device cannot be adopted. 6. See Points to note of API 79 TO for the numbering of special modules. Program Example:
1. Read out the data in CR#29 of special module N0.0 to register D0 in PLC, and CR#30 of special module No.0 to register D1 in PLC. 2 consecutive 16-bit data are read at one time ( n = 2). 2. When X0 = ON, the instruction executes; when X0 = OFF, the previous content in D0 and D1 won’t be changed. X0 DVP-PM Operation Instruction 5-80 Mnemonic Operands Function Controllers 20PM 10PM D FROM P Read CR data from Special Modules Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D V Z FROM, FROMP: 9 steps DFROM, DFROMP: 17 steps m 1 * * * * * * * D m 2 * * * * * * * D * * * * * n * * * * * * * FROM K0 K29 D0 K2