EasyManuals Logo

Siemens SINUMERIK 840D sl Programming Manual

Siemens SINUMERIK 840D sl
1334 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 #427 background imageLoading...
Page #427 background image
Program code Comment
DEF BOOL IS_VAR=FALSE
N100 IS_VAR=ISVAR("$MC_GCODE_RESET_VALUES[1]" ; Transfer parameter is a machine
data item, IS_VAR is TRUE.
Program code Comment
DEF BOOL IS_VAR=FALSE
N10 IS_VAR=ISVAR("$P_EP") ; IS_VAR is in this case TRUE.
N20 IS_VAR=ISVAR("$P_EP[X]") ; IS_VAR is in this case TRUE.
3.1.1.16 Reading attribute values / data type (GETVARPHU, GETVARAP, GETVARLIM,
GETVARDIM, GETVARDFT, GETVARTYP)
The attribute values of system/user variables can be read with the predefined GETVARPHU,
GETVARAP, GETVARLIM, GETVARDIM and GETVARDFT functions, the data type of a
system/user variable with GETVARTYP.
Read physical unit
Syntax:
<Result>=GETVARPHU(<name>)
Meaning:
<result>: Numeric value of the physical unit
Data type: INT
Range of values: See Table in "Attribute: Physical unit (PHU) (Page 410)"
In case of fault
- 2 The specified variable name has not been assigned to a
system parameter or a user variable.
GETVARPHU: Reading of the physical unit of a system/user variable
<name>: Name of the system/user variables
Data type: STRING
Example:
The NC contains the following GUD variables:
DEF CHAN REAL PHU 42 LLI 0 ULI 10000 electric
Program code Comment
DEF INT result=0
result=GETVARPHU("electric") ; Determine the physical unit of the GUD var-
iables.
IF (result < 0) GOTOF error
The value 42 is returned as result. This corresponds to the physical unit [kW].
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 427

Table of Contents

Other manuals for Siemens SINUMERIK 840D sl

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 840D sl Specifications

General IconGeneral
Control TypeCNC
Number of AxesUp to 31
Max Number of Channels10
InterfacesEthernet, PROFIBUS, PROFINET, USB
Interpolation5-axis interpolation
Operating Temperature0°C to 45°C
Relative HumidityUp to 95% (non-condensing)
DisplayTFT color display, various sizes
Programming LanguagesDIN/ISO
Safety FeaturesSafety Integrated
PLCIntegrated PLC S7-300
Drive InterfaceSINAMICS S120
Data StorageCF card, USB
Operating SystemWindows-based

Related product manuals