1
02.98 Flexible NC Programming
1.21 CHECKSUM: Creation of a checksum over an arra
> SW 5.2
1
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1-89
Additional notes
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.
Programming example
N10 DEF INT ERROR
N20 DEF STRING[16] MY_CHECKSUM
N30 DEF INT MY_VAR[4,4]
N40 MY_VAR=...
N50 ERROR=CHECKSUM
(CHECKSUM;"MY_VAR", 0, 2)
...
returns in MY_CHECKSUM the value
"A6FC3404E534047C"