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-61
Processing the values
The values displayed in a grid can be modified directly by the end user within the
restrictions of the rights granted by the attributes and within any limits defined.
The next three examples show the assignment between cells and PLC variables
in a standard table (table type=0).
The first line shows the column headers.
Example 1:
//G(MB_TAB/0/4/,1)
(I///,"MB 1 to MB 3"///"MB1"/100/1)
(I///,"MB 4 to MB 6"///"MB4"/100/1)
MB 1 to MB 3 MB 4 to MB 6
Value(MB1) Value(MB4)
Value(MB2) Value(MB5)
Value(MB3) Value(MB6)
Example 2 with offset > 1 in the column definition:
//G(MB_TAB/0/4/,1)
(I///," MB1, MB3, MB5"///"MB1"/100/2)
(I///," MB2, MB4, MB6"/// "MB2"/100/2)
Lines and columns are assigned as follows:
MB1, MB3, MB5 MB2, MB4, MB6
Value(MB1) Value(MB2)
Value(MB3) Value(MB4)
Value(MB5) Value(MB6)
In each line, the index of the variable was increased by the offset (=2).
Example 3 with offset and index number in the column definition:
//G(MB_TAB/0/4/,1)
(IB///,"M1.1, M2.1, M3.1"/// "M1.1"/100/1)
(IB///,"M1.1, M2.1, M3.1"/// "M1.1"/100/0.1)
M1.1, M2.1, M3.1 M1.1, M1.2, M1.3
Value(M1.1) Value(M1.1)
Value(M2.1) Value(M1.2)
Value(M3.1) Value(M1.3)
In the first column, the first variable index for each line was increased by 1.
(Offset1 = 1)
In the second column, the second variable index for each line was increased by 1.
(Offset2 = 1)