Pointers on GX Developer

XIO

Member
Join Date
Oct 2007
Location
Los Angeles
Posts
64
Can someone explain me how to use the pointer feature on GX developer. I believe to be following the instructions on a manual I have but when I try to convert the ladder it will not convert the pointer.
 
When you say pointer do you mean indirect address of a variable or a pointer to a subroutine.

To use a pointer to a variable X,Y,M,D then use the following

mov k 10 Z 'Move the index to the index register.

Mov D0 D0Z ' mov the contents of D0 to D10.

if you do Mov D0 D10Z then it will move the contents of D0 to D10+10 (D20).

If you mean a pointer to a subroutine or jump then

Call P1 ' call subroutine P1

Rest of main program

'''''

FEND

P0 (note this is the text in the left hand side of the + rail.

.... 'This is the function routine

SRET Return from sub

END End of program
 

Similar Topics

Hi all, The thing I'm trying to achieve is actually quite difficult to explain, but since there's no use posting this topic if I can't explain...
Replies
3
Views
6,155
Hello, I've just came out of a call where a program that was modified two weeks ago threw the processor into fault. The program has been done...
Replies
9
Views
3,463
I'm trying to get a 5069-L306er to talk to a Automation Direct ProSence Controller by using RA's AOI for modbus client but its stuck not getting a...
Replies
9
Views
1,877
The last time I did anything with Wonderware was just after the dot com bust. Boy, I feel old. Anyway, it looks like I will get the chance to...
Replies
3
Views
1,510
Hi guys, Some pointers needed: Having PC with WIN7 pro X64 and Amsamotion clone of 6ES7 972-0CB20-0XA0 cable and need to backup VIPA cpu...
Replies
14
Views
3,111
Back
Top Bottom