EasyManua.ls Logo

Siemens SINUMERIK 840DE SL Commissioning Manual

Siemens SINUMERIK 840DE SL
1734 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1186 background imageLoading...
Page #1186 background image
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] ;VAR1 has the value 2
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] ;VAR1 has the value 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:
Identifier [Z, S, [M[,C]]]
.vld
Description: Status is a read-only property.
Parameters: Identifier Name of array
Return Value: FALSE =
TRUE =
invalid value
valid value
Example
DEF MPIT = (R///"MPIT",,"MPIT",""/wr3)
DEF PIT = (R///"PIT",,"PIT",""/wr3)
PRESS(VS1)
MPIT = 0.6
IF MET_G[MPIT,0,4,1].VLD == TRUE
PIT = MET_G[MPIT,1,0].VAL
REG[4] = PIT
REG[1] = "OK"
ELSE
REG[1] = "ERROR"
Graphic and logic elements
7.2 Defining an array
SINUMERIK Integrate Run MyScreens (BE2)
200 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Questions and Answers:

Siemens SINUMERIK 840DE SL Specifications

General IconGeneral
ApplicationHigh-end machine tools
User InterfaceSINUMERIK Operate
Axis CapacityUp to 31 axes
Safety IntegratedYes
Relative Humidity5% to 95% (non-condensing)
Control SystemCNC
TypeSINUMERIK 840DE SL
Programming LanguagesDIN 66025, ISO 6983, G-code
Communication InterfacesEthernet, PROFIBUS, PROFINET
Control LoopsPosition, Speed, Current
PLCIntegrated SIMATIC S7-300 PLC
Data StorageCompactFlash card, hard disk
Operating Temperature0°C to 45°C
Spindle CapacityDependent on machine mechanics

Related product manuals