P4: PLC for SINUMERIK 828D
14.6 Function interface
Variable index
The variable index refers to the name of the NC variable. The variable index consists of a start
value 100 and the offset of the NC variable in the list (0 to 41).
The variable index is entered as DBB1000 A_VarIdx in the DB120x RW_NCDx user interface.
The comment contains the following data record with space as separator:
● Area
● Block
● VariablenName
● VarType
● Column
● VarAnzByte
Extended user interface
The data test in data blocks means the value of a variable can be written to an address in the
data block that has the same type, e.g. a REAL value can be written only to a REAL address
(e.g. with MOV_R). The "Read/write NC variable " user interface contains currently only one
address of the DWORD type for the value to be written (DBD1008). This means a REAL value
can be written only via a temporary variable, flag or accumulator. The same is also true for
reading (DBD3004). For this reason, the "Read/write NC variable" user interface is extended.
For reading and writing one address for each type is added: REAL, DWORD/DINT, WORD/
INT, BYTE and BOOL (DBD1016 ... DBB1027 or DBD3016 ... DBB3027). These new
addresses are used by the PLC firmware only for those variables selected with the NC variables
editor – and entered into DB9910 NC_DATA when compiled (variable index ≥ 100). The NC
variables currently defined in the "Read/write NC variable" user interface continue to use the
old addresses (DBD1008 or DBD3004).
14.6.2
Program instance services (PI services)
14.6.2.1
User interface
Job specification
PI services are specified via the job interface (DB1200 from offset 4000).
DB1200
Byte
Bit 7
DBB 4000
-
DBB 4001
DBB 4002
DBB 4003
1114
PI service [r/w]
Bit 6
Bit 5
-
-
PLC → NCK interface
Bit 4
Bit 3
-
-
PI index
2)
-
-
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Bit 2
Bit 1
-
-
Basic Functions
Bit 0
Start
1)