Siemens SINUMERIK 840DE sl Commissioning Manual page 804

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Generating user dialogs
1.9 Addressing components
1.9.2
Addressing NC variables
Addressing the NC variables starts with the path section nck.
This section is followed by the data address; its structure should be taken from the List Manual
NC Variables and Interface Signals.
Example:
<LET name = "tempStatus"></LET>
<OP> tempStatus ="nck/channel/state/chanstatus" </OP>
1.9.3
Channel-specific addressing
If no channel number is defined in the address token, access is always to Channel 1 of the
operating software.
If it is necessary to read data from a specific channel, the identifier u (Unit) with the desired
channel number is added to the address.
Example:
nck/Channel/MachineAxis/actFeedRate[3]
nck/Channel/MachineAxis/actFeedRate[u1, 3]
1.9.4
Generating NC/PLC addresses during the runtime
It is possible to generate an address identifier during runtime.
In this case, the content of a string variable is used as address in an operation statement as
well as in the nc.cap.read and nc.cap.write functions.
Observe the following for this type of addressing mode:
● Write the variable names in quotation marks.
● Use three ‚$' characters as prefix for variable names.
Syntax:
"$$$variable name"
Example:
<PRINT name="var_adr" text="DB9000.DBW%d"> 2000</PRINT>
<OP> "$$$var_adr" = 1 </OP>
86
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Easy XML

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents