EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 372

Siemens SIMATIC S7-1200
1614 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
Loading...
Extended instructions
9.2 String and character
S7-1200 Programmable controller
372 System Manual, V4.2, 09/2016, A5E02486680-AK
Example: Reading a symbol name
In the following example, you read out the name of a tag that is interconnected via the input
parameter of a block.
Create two tags in a global data block for storing the data.
Create an input parameter inputValue with the BYTE data type in the Level1 block. Call the
GetSymbolName instruction in the Level1 block. Interconnect the parameters of the
instruction as follows.
Interconnect the inputValue parameter of the Level1 block as follows.
The GetSymbolName instruction is executed in the Level1 block. Input parameter inputValue
of the Level1 block is examined for its interconnection using input parameter VARIABLE of
the instruction. In doing so, the symbolVALUE tag is read out and output as a character
string at output parameter OUT ("MySymNAME"). According to the value of input parameter
SIZE, the length of the character string is limited to 60 characters.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals