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

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

Advertisement

Flexible NC programming

1.23 Checksum calculation using an array (CHECKSUM)

1.23
Checksum calculation using an array (CHECKSUM)
Function
The
sum 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>
146
command can be used to calculate the checksum using an array. This check-
CHECKSUM
:
Command for calculating the checksum using an array.
:
Variable for returning the error value.
Type.
Value:
:
Result variable to which the result of the checksum calculation is
written (call-by-reference parameter)
Type:
Required string length:
INT
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
STRING
16
The checksum is indicated as a
character string of 16 hexadecimal
numbers. However, no format
characters are indicated.
Example: "A6FC3404E534047C"
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents