Checksum Calculation Using An Array (Checksum) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming

1.23 Checksum calculation using an array (CHECKSUM)

1.23
Checksum calculation using an array (CHECKSUM)
1.23
Function
The CHECKSUM command can be used to calculate the checksum using an array. This
checksum can be compared with the result of an earlier checksum calculation to ascertain
whether the array data has changed.
Application
Check to see whether the initial contour has changed during stock removal.
Syntax
DEF INT <error>
DEF STRING[<string length>] <checksum>
DEF ... <array>[<n>,<m>,<o>]
<error>=CHECKSUM(<checksum>,"<array>"[,<start column>,<end column>])
Significance
CHECKSUM:
<error>:
<checksum>:
162
Command for calculating the checksum using an array.
Variable for returning the error value.
Type.
INT
Value:
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
Result variable to which the result of the checksum calculation is
written (call-by-reference parameter)
Type:
STRING
Required string length:
16
The checksum is indicated as a
character string of 16 hexadecimal
numbers. However, no format
characters are indicated.
Example: "A6FC3404E534047C"
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents