Siemens sinumerik 840d Programming Manual page 89

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

02.98
1
1.21 CHECKSUM: Creation of a checksum over an array (> SW 5.2)
840D
840D
NCU 571
NCU 572
NCU 573
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"
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
810D
840Di
Flexible NC Programming
1
1-89

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents