Commissioning Manual
01/2017
353
Address
:
Valid S7-200 address identifier
Bit addressing:
– Bit number
<data name = "plc/mb170">1</data>
<data name = "i0.1"> 1 </data>
<op> "m19.2" = 1 </op>
Addressing the NC variables starts with the path section
.
This section is followed by the data address; its structure should be taken from the SINUMERIK 808D/SINUMERIK 808D
ADVANCED Parameter Manual.
<LET name = "tempStatus"></LET>
<OP> tempStatus ="nck/channel/state/chanstatus" </OP>
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.
"$$$variable name"
<PRINT name="var_adr" text="plc/DB9000.DBW%d"> 2000</PRINT>
<OP> "$$$var_adr" = 1 </OP>
Addressing drive components
Addressing the drive components starts with the path section
.
Then the drive device is specified:
- Control Unit
Drive Control
The parameter to be set is added to this section.
Drive component addresses are defined as follows:
● do1: drive with address 11
● do2: drive with address 12
● do3: drive with address 13
● do4: drive with address 14
● do5: drive with address 15