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 #679 background imageLoading...
Page #679 background image
Additional functions
14.6 Function call ISVAR and read machine data array index
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
679
Example: Function call ISVAR
Program code Comments
DEF INT VAR1
DEF BOOL IS_VAR=FALSE ; Transfer parameter is a general variable
N10 IS_VAR=ISVAR("VAR1") ; IS_VAR is in this case, TRUE
DEF REAL VARARRAY[10,10]
DEF BOOL IS_VAR=FALSE ; Various syntax versions
N20 IS_VAR=ISVAR("VARARRAY[,]") ; IS_VAR is TRUE with a two-dimensional array
N30 IS_VAR=ISVAR("VARARRAY") ; IS_VAR is TRUE, variable exists
N40 IS_VAR=ISVAR("VARARRAY[8,11]") ; IS_VAR is FALSE, array index is not permitted
N50 IS_VAR=ISVAR("VARARRAY[8,8") ; IS_VAR is FALSE, syntax error for missing "]"
N60 IS_VAR=ISVAR("VARARRAY[,8]") ; IS_VAR is TRUE, array index is permitted
N70 IS_VAR=ISVAR("VARARRAY[8,]") ; IS_VAR is TRUE
DEF BOOL IS_VAR=FALSE ; Transfer parameter is a machine data
N100 IS_VAR=ISVAR("$MC_GCODE_RESET_VALUES[1]" ; IS_VAR is TRUE
DEF BOOL IS_VAR=FALSE ; Transfer parameter is a system variable
N10 IS_VAR=ISVAR("$P_EP") ; IS_VAR is in this case TRUE
N10 IS_VAR=ISVAR("$P_EP[X]") ; IS_VAR is in this case TRUE
Example: Read machine data array with and without index.
The first element will be read for
R1=$MC_EXTERN_GCODE_RESET_VALUES
as previous, this corresponds to
R1=$MC_EXTERN_GCODE_RESET_VALUES[0]
or the first element will be read
R1=$MA_POSTCTRL_GAIN[X1]
The corresponds to as before
R1=$MA_POSTCTRL_GAIN[0, X1]
The first element in synchronized actions is also read for
WHEN TRUE DO $R1 = $MC_EXTERN_GCODE_RESET_VALUES
The corresponds to as before
WHEN TRUE DO $R1 = $MC_EXTERN_GCODE_RESET_VALUES[0]
and would previously not be read with alarm 12400.
The alarm 12400 will still be issued for
R1=$MA_POSTCTRL_GAIN

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