Chapter 6 Applied Instructions 6.4.2 Explanation of Data Transfer Instructions Symbol S : Data source D : Data destination 6_ Explanation 1. This instruction transfers the data in S to D . 2. You must use a 32-bit instruction when the data in S is a floating-point number. 3. Only the 32-bit instructions can use the 32-bit counter, but not the device E. Example 1. To transfer 16-bit data, use MOV. When X0.0 is OFF, the data in D0 is unchanged. When X0.0 is ON, the instruction transfers 10 to the data register D0. When X0.1 is OFF, the data in D10 is unchanged. When X0.1 is ON, the instruction transfers the current value of T0 to the data register D10.
6-121 API Instruction code Operand Function 0300 D MOV P S, D Transferring data Device X Y M S T C HC D FR SM SR E K 16# “$” F S D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S D Pulse instruction 16-bit instruction 32-bit instruction AS AS AS