4. Motion Control Instruction 4.6.57. Offset_DI Explanation of the instruction: When EN is on, add the In_E value to S register address and the result is the address of source index register; add the Out_E value to D register address and the result is the address of the destination index register. The destination index register value changes with the changing source index register value. When S is linked to the output pin of other instruction with a line, the In_E value is invalid; When D is linked to the input pin of other instruction with a line, the Out _E value is invalid. Offset_DI is used for operation of 32-bit integer index register.
Explanation of input and output parameter of the instruction : Example 1 Program Explanation: When M0 is on, S is D100; In_E= 3 and the source index register address is D(100+3)=D103; D is D200; Out_E= 5 and the destination index register address is D(200+5)=D205; At the moment, move the content of D103 to D205. 4-156 DVP-MC operating manual API 32-bit integer index register instruction Controller 184 Offset DI _ 10MC11T Parameter Available Explanation Type name device EN “Offset Dl” is executed as “EN” turns on.
_ BOOL M,I,Q, constant S The start address of source register DINT D In E _ The address offset length of source register INT D Out E _ The address offset length of destination register INT D D The start address of destination register DINT D