08/2005 Expanding the Operator Interface (BE1)
3 Syntax
© Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
BE1/3-81
If the value is a String type, it must
be enclosed in quotation marks.
WNP("DB20.DBB1",1) ;Write PLC variable
NC variables
All machine data, setting data and R parameters are available, but only certain
system variables. A list of all accessible system variables can be found in
Section 8.4 or in HMI Advanced under Operating area Parameters/System
variables/Edit view/Insert variable.
All global and channel-specific user variables (GUDs) can be accessed. but local
and program-global user variables cannot be processed.
Note
User variables may not have the same names as system or PLC variables.
Table 3-7
Machine data
Global machine data $MN_...
Axis-specific machine data $MA_...
Channel-specific machine data $MC_...
Table 3-8
Setting data
Global setting data $SN_...
Axis-specific setting data $SA_...
Channel-specific setting data $SC_...
Table 3-9
System variables
R parameter 1 $R[1]
Tool offset data can only be set up by means of PI Service commands
(_N_CRCEDN, _N_CREACE, _N_CREATO). New values for settable zero offsets
must be activated with command _N_SETUFR.
PLC variable
All PLC data are available.
Table 3-10
PLC data
Byte y bit z of data block x DBx.DBXy.z
Byte y of data block x DBx.DBBy