4. Motion Control Instruction 4.6.56. Offset Explanation of the instruction: Offset instruction is used for operation of 16-bit integer index register. 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.
Explanation of input and output parameter of the instruction : Example 1 Program Explanation: When M0= on, S is D100; In_E=2 and the source index register address is D(100+2)=D102. When D is D200 and Out_E=3, the destination index register address is D(200+3)=D203 and meanwhile, the content of D102 is moved to D203. 4-154 DVP-MC operating manual API 16-bit integer index register instruction Controller 183 Offset 10MC11T Parameter Data Available Explanation name type device EN “Offset” is executed as “EN” turns on.
BOOL M,I,Q, constant S The start address of source register INT D In E _ Address offset length of source register INT D Out E _ Address offset length of destination register INT D D The start address of destination register INT D