Siemens SINUMERIK 828D Programming Manual page 147

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

<array>
<start column>
<end column>
Note
The
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
N10 DEF INT ERROR
N20 DEF STRING[16] MY_CHECKSUM
N30 DEF INT MY_VAR[4,4]
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"
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
:
Name of the array to be used to generate the checksum (call-by-
value parameter)
Type:
Max. string length:
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.
:
Number of the start column of the array for calculating the
checksum (optional parameter)
:
Number of the end column of the array for calculating the
checksum (optional parameter)
and
<start column>
<end column>
1.23 Checksum calculation using an array (CHECKSUM)
STRING
32
parameters are optional. If no column indices are
Comment
; Definition of error variables.
; Definition of result
; Array definition.
Flexible NC programming
variables.
147

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents