Checksum: Form The Checksum Over An Array - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

1.23

CHECKSUM: Form the checksum over an array

1.23
Function
With CHECKSUM you form a checksum over an array.
Application:
Check to see whether the initial contour has changed during stock removal.
Programming
error=CHECKSUM(VAR STRING[16] chksum, STRING[32]array, INT first,
INT last)
Parameter
CHECKSUM
error
chksum
array
first
last
Note
The parameters first and last are optional. If no column indices are indicated, the checksum
is formed over the whole array.
The result of the checksum is always definite. If an array element is changed, the result
string will also be changed.
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.23 CHECKSUM: Form the checksum over an array
Form the checksum over an array
Error variable for return
0: No error
1: Symbol not found
2: No array
3: Index 1 too large
4: Index 2 too large
5: Invalid data type
10: Check sum overflow
Checksum over the array as a STRING (call-by-reference
parameter of type STRING, with a defined length of 16).
The checksum is indicated as a character string of 16
hexadecimal numbers. However, no format characters are
indicated.
Example: "A6FC3404E534047C"
Number of the array over which the checksum is to be formed.
(call-by-value parameter of type STRING with a max. length of
32).
Permissible arrays:
1- or 2-dimensional arrays of the types
BOOL, CHAR, INT, REAL, STRING
Arrays of machine data are not permissible.
Column number of start column (optional)
Column number of end column (optional)
Flexible NC programming
1-69

Advertisement

Table of Contents
loading

Table of Contents