Chapter 5 Applied Instructions m 1 : Special module number ( m 1 is in the range of 0 to 255.); m 2 : Control register number ( m 2 is in the range of 0 to 499.); D : Device in which the data read will be stored; n : Quantity of data which will be read (16-bit instruction: 1~(500- m 2 ); 32-bit instruction: 1~(500- m 2 )/2 A motion control module can read the data in a control register in a special module by means of the instruction. Explanation The value in CR#29 in special module 0 is read, and then stored in D0 in the motion control module. The value in CR#30 in special module 0 is read, and then stored in D1 in the motion control module. The two values are read at the same time.
When X0.0 is ON, the instruciton is executed. When X0.0 is turned OFF, the instruction is not executed, and the values which are read remain unchanged. Example X0.0 5-75 API Instruction code Operand Function Reading data from a 78 D FROM P m , m , D, n 1 2 control register in a special module Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z m 1 m 2 D n Pulse instruction 16-bit instruction (9 steps ) 32-bit instruction (12 steps ) FROM K0 K29 D0 K2