EasyManua.ls Logo

Siemens SINUMERIK 828D

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Flexible NC programming
1.23 Checksum calculation using an array (CHECKSUM)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
147
Name of the array to be used to generate the checksum (call-by-
value parameter)
Type: STRING
Max. string length: 32
<array>:
Permissible arrays are 1- to 3-dimensional arrays of the following
types:
BOOL, CHAR, INT, REAL, STRING
Note:
Arrays of machine data are not permissible.
<start column>: Number of the start column of the array for calculating the
checksum (optional parameter)
<end column>: Number of the end column of the array for calculating the
checksum (optional parameter)
Note
The
<start column> and <end column> parameters 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.
Example
Program code Comment
N10 DEF INT ERROR
;
Definition of error variables.
N20 DEF STRING[16] MY_CHECKSUM
;
Definition of result
variables.
N30 DEF INT MY_VAR[4,4]
;
Array definition.
N40 MY_VAR=...
N50 ERROR=CHECKSUM(MY_CHECKSUM,"MY_VAR",0,2)
...
The example could return the following result in the MY_CHECKSUM result variable, for
example:
"A6FC3404E534047C"

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals