Addressing Nc Variables; Generating Nc/Plc Addresses During The Runtime; Addressing Drive Components - Siemens SINUMERIK 808D ADVANCED Commissioning Manual

Hide thumbs Also See for SINUMERIK 808D ADVANCED:
Table of Contents

Advertisement

Address x:
Valid S7-200 address identifier
Bit addressing:
b – Bit number
Examples:
<data name = "plc/mb170">1</data>
<data name = "i0.1"> 1 </data>
<op> "m19.2" = 1 </op>
14.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 SINUMERIK 808D/SINUMERIK 808D
ADVANCED Parameter Manual.
Example:
<LET name = "tempStatus"></LET>
<OP> tempStatus ="nck/channel/state/chanstatus" </OP>
14.9.3

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="plc/DB9000.DBW%d"> 2000</PRINT>
<OP> "$$$var_adr" = 1 </OP>
14.9.4

Addressing drive components

Addressing the drive components starts with the path section drive.
Then the drive device is specified:
CU - Control Unit
DC - 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
Commissioning Manual
01/2017
353

Advertisement

Table of Contents
loading

Table of Contents