Regarding the Structured Text Programming Language:
If I have a pointer to a table:
crcTable : ARRAY [0..255] OF WORD;
pcrcTable : POINTER TO WORD;
pcrcTable := ADR(crcTable);
and I want dereference the table at a certain index, what is the syntax to do so? I think the equivalent C code would be:
unsigned short crcTable[256];
unsigned short* pcrcTable = &crcTable[0];
dereferencedVal = pcrcTable[50]; //Grab table value at index = 50