Technical data

Appendix
27.3 Data Types and Parameter Types
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 615
SLD 3; //shift the increment 3 digits to the left,
-D ; //subtract the value,
JU test; //and jump to test
pos: SLD 3; //Shift the increment 3 digits to the left
L #Pointer1; //Load pointer address information
+D ; //Add increment
test: T #Int_Value; //Transfer results of calculation to Int_Value
A L 7.3; //If invalid byte address (too large or
S #RET_VAL; //negative), then set RET_VAL
JC End; //and jump to End,
L #Int_Value; //otherwise transfer result
T #Pointer; //to pointer
End: NOP 0;
END_FUNCTION