5 Categories and Use of Basic Application Instructions API 16 Operands: S : Source of data D : Destination of data n : Number of data to be moved Explanations: 1. The contents in n registers starting from the device designated by S will be moved to n registers starting from the device designated by D . If n exceeds the actual number of available source devices, only the devices that fall within the valid range will be used 2. When FMOV is used as 16-bit instruction, Z device cannot be adopted; when FMOV is used as 32-bit instruction, V device cannot be adopted. 3. When specifying the bit device of KnX(Y/M/S), the starting No. should be a multiple of 16 in octal or decimal format.
For example, K1X0, K4Y20 (octal); K1M0, K4S16 (decimal). 4. The range of n: 1~ 512 Program example: When X20 = ON, K10 will be moved to the 5 consecutive registers starting from D10 X20 K10 D10 K10 K10 D11 K10 D12 n=5 K10 D13 K10 D14 DVP-PM Operation Instruction 5-32 Mnemonic Operands Function Controllers 20PM 10PM D FMOV P Fill Move Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F FMOV, FMOVP: 7 steps DFMOV, DFMOVP: 13 steps S * * * * * * * * * * * D * * * * * * n * * FMOV K10 D10 K5