EasyManuals Logo

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #147 background imageLoading...
Page #147 background image
Flexible NC programming
1.23 Checksum calculation using an array (CHECKSUM)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
147
Name of the array to be used to generate the checksum (call-by-
value parameter)
Type: STRING
Max. string length: 32
<array>:
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.
<start column>: Number of the start column of the array for calculating the
checksum (optional parameter)
<end column>: Number of the end column of the array for calculating the
checksum (optional parameter)
Note
The
<start column> and <end column> parameters 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.
Example
Program code Comment
N10 DEF INT ERROR
;
Definition of error variables.
N20 DEF STRING[16] MY_CHECKSUM
;
Definition of result
variables.
N30 DEF INT MY_VAR[4,4]
;
Array definition.
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"

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 828D and is the answer not in the manual?

Siemens SINUMERIK 828D Specifications

General IconGeneral
Control TypeCNC
Operating SystemWindows Embedded
ProcessorIntel Atom
Display10.4" color TFT display
InterfacesEthernet, USB
ProgrammingShopMill, ShopTurn
Operation Panel Size10.4"
Protection ClassIP65
PLC Memory2 MB
Spindle Capacity4 spindles
Hard DriveCompactFlash

Related product manuals