Download User manual
Transcript
17 Software Programming JetWeb 3. Loading by double indirect addressing JetSym REGISTER_LOAD (rVoltage, @@rVPointer) JetSym ST rVoltage := @@rVPointer; The value of the register, the number of which is specified in the register rVPointer, is loaded into register rVoltage. 4. Double Indirect Addressing: Numerical example Register Number Value REG 64 111 REG 111 70035 REG 150 11 REG 11 Any value This example will be carried out using the following instruction: JetSym REGISTER_LOAD (@150, @@64) JetSym ST VAR pDestination: INT AT %VL 150; pSource: INT AT %VL 64; END_VAR; @pDestination := @pSource; This instruction results in the following register values and the graphic representation shown in Fig. 42: Register 64 = 111 remains unchanged Register 111 = 70035 remains unchanged Register 150 = 11 remains unchanged Register 11 = @150 112 = @@64 = @111 = 70035 Jetter AG