Siemens SINUMERIK 840DE sl Commissioning Manual page 1186

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

Advertisement

Graphic and logic elements
7.2 Defining an array
● Access mode example 4:
The search concept is in Z. S contains the column index of the column in which concept is
being searched for. The line index of the concept found is output:
VAR1 = Thread[0.125,1,4]
Explanation:
Search for value 0.125 in column 1 of array "Thread" and transfer the line index of the value
found to VAR1.
● Access mode example 5:
Z contains the line index of line in which concept is being searched for. The search concept
is in S. The column index of the concept found is output:
VAR1 = Thread[4,0.2,5,1]
Explanation:
Search in line 4 of the "Thread" array for the value 0.2 and transfer the column index of the
value found to VAR1. Comparison mode 1 was selected because the values of line 4 are
not sorted in ascending order.
7.2.3
Scanning the status of an array element
Description
The Status property can be used to run a scan to find out whether an array access operation
is supplying a valid value.
Programming
Syntax:
Description:
Parameters:
Return Value:
Example
DEF MPIT = (R///"MPIT",,"MPIT",""/wr3)
DEF PIT
PRESS(VS1)
MPIT = 0.6
IF MET_G[MPIT,0,4,1].VLD == TRUE
ELSE
200
Identifier [Z, S, [M[,C]]] .vld
Status is a read-only property.
Identifier
= (R///"PIT",,"PIT",""/wr3)
PIT
= MET_G[MPIT,1,0].VAL
REG[4] = PIT
REG[1] = "OK"
REG[1] = "ERROR"
;VAR1 has the value 2
;VAR1 has the value 1
Name of array
FALSE =
invalid value
TRUE =
valid value
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
SINUMERIK Integrate Run MyScreens (BE2)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents