Hi,
Im new to SCL, but decided to start learning it - if only to be able to do some simple jobs such as indirect addressing.
got some simple code to manipulate a local temporary register:
IF "Tonnage_Data".Cycle_Complete_Hour_Stamp=5 THEN
#East_Byte_Offsett_Address:= (#East_Current_Skip_Number_Converted-1) * 4 + 1318; // Calculating Dynamic Offsett Address To Tonnage Data DB
END_IF;
IF "Tonnage_Data".Cycle_Complete_Hour_Stamp=6 THEN
#East_Byte_Offsett_Address:= (#East_Current_Skip_Number_Converted-1) * 4 + 1414; // Calculating Dynamic Offsett Address To Tonnage Data DB
END_IF;
IF "Tonnage_Data".Cycle_Complete_Hour_Stamp=7 THEN
#East_Byte_Offsett_Address:= (#East_Current_Skip_Number_Converted-1) * 4 + 1510; // Calculating Dynamic Offsett Address To Tonnage Data DB
END_IF;
The above carries on, but follows the same theme.
I had hoped to use the #East_Byte_Offsett_Address as the ByteOffsett within the POKE command.
However the POKE command cannot transfer data types of real!
Hopefully someone has a suggestion of indirect addressing a real value?
Thanks
Im new to SCL, but decided to start learning it - if only to be able to do some simple jobs such as indirect addressing.
got some simple code to manipulate a local temporary register:
IF "Tonnage_Data".Cycle_Complete_Hour_Stamp=5 THEN
#East_Byte_Offsett_Address:= (#East_Current_Skip_Number_Converted-1) * 4 + 1318; // Calculating Dynamic Offsett Address To Tonnage Data DB
END_IF;
IF "Tonnage_Data".Cycle_Complete_Hour_Stamp=6 THEN
#East_Byte_Offsett_Address:= (#East_Current_Skip_Number_Converted-1) * 4 + 1414; // Calculating Dynamic Offsett Address To Tonnage Data DB
END_IF;
IF "Tonnage_Data".Cycle_Complete_Hour_Stamp=7 THEN
#East_Byte_Offsett_Address:= (#East_Current_Skip_Number_Converted-1) * 4 + 1510; // Calculating Dynamic Offsett Address To Tonnage Data DB
END_IF;
The above carries on, but follows the same theme.
I had hoped to use the #East_Byte_Offsett_Address as the ByteOffsett within the POKE command.
However the POKE command cannot transfer data types of real!
Hopefully someone has a suggestion of indirect addressing a real value?
Thanks