Uploaded by mayil azhagan

Strings

advertisement
5/13/23, 6:18 PM
*** Strings ***
strings
S_MOVE
The S_MOVE function copies the character string at the IN input ("Set_1") to the tag at the
OUT output ("Set_2").
S_CONV
Google search on MEINE-SCHALTUNG.de:
NE555
NE555 – A microchip is born and has a global career.
The S_CONV function is used to convert a string of numbers into a number or a number
into a string of numbers.
Off delay
The secret of the extended signal.
CTRL_VAL
Impulse switch
One impulse - two functions
Switch-on delay
Why fast when you can do it slowly.
Zener diode
Zener diode - a diode that is out of line.
Frequency converter
Reach your goal gently and gently.
The STRG_VAL function converts a string of numbers into the corresponding number. The conversion begins at
Overview
the point entered at input P (4). The result is output at the output OUT ("Result"). With FORMAT (data type Word)
you can set the display and decimal point format (bit 1 or 0).
circuits overview
VAL_STRG
The VAL_STRG function converts a number into the corresponding character string. The value at input SIZE (6)
determines the number of characters to be written to OUT ("Record_2"). The value at input PREC (2) refers to the
decimal places. The replacement of the characters in the character string OUT begins at the position that is
entered at input P (7). The result is output at the output OUT. With FORMAT (data type Word) you can set the
sign, representation and decimal point format (bit 2, 1 or 0).
https://www.meine-schaltung.de/themen/sps/zeichenketten/
1/5
5/13/23, 6:18 PM
*** Strings ***
Ctrl_TO_Chars
perpetual calendar
The Strg_TO_Chars function copies the character string specified at the Strg ("Satz_1") input into an array of
characters. Target array is specified at IN/OUT terminal Chars ("Var.CharacterArray"). The function overwrites the
characters from the position entered at the pChars (1) input. The number of characters copied is output at the
output Cnt ("Cnt").
Var.CharArray (Array [0..24 of Char] before conversion:
[x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x ][x][x][x][x][x][x][x][x]
After conversion:
[x][M][e][i][n][ ][e][ r][s][t][e][r][ ][S][a][t][z][x][x][x][x][x][x][x][ x]
Chars_TO_Ctrl
The Chars_TO_Strg function copies elements of an array of characters into a character string. The array of
characters is declared at the Chars input ("VAR.CharacterArray"). The number of characters to be copied is
entered at input Cnt (16). Start character is declared at input pChars (1). The previously declared character string
is entered at the Ctrl ("Record_2") output.
Var.CharacterArray = [x][M][e][i][n][ ][e][r][s][t][e][r][ ][S][a][t] [z][x][x][x][x][x][x][x][x]
Set_2 before conversion: ' '
Set_2 after conversion: 'My first set'
MAX_LEN
The MAX_LEN function determines the maximum length of the character string specified at input IN ("Record_1").
The result is output at the output OUT ("Result").
https://www.meine-schaltung.de/themen/sps/zeichenketten/
2/5
5/13/23, 6:18 PM
*** Strings ***
LEN
The LEN function determines the current length of a character string that was entered at input IN ("Record_1").
The result is output at the output OUT ("Result").
CONCAT
The CONCAT function combines two character strings.
LEFT
The LEFT function forms a partial character string from the character string entered at input IN ("Record_1") and
outputs it at output OUT ("Record"). The substring consists of the first L (4) characters of the original string.
RIGHT
The RIGHT function forms a partial character string from the character string entered at input IN ("Sentence_1")
and outputs it at output OUT ("Sentence"). The substring consists of the last L (3) characters of the original string.
MID
The MID function forms a partial character string from the character string entered at input IN ("Record_1") and
outputs it at output OUT ("Record"). The substring consists of L(3) characters of the original string and starts at
the character position input at input P(2).
DELETE
https://www.meine-schaltung.de/themen/sps/zeichenketten/
3/5
5/13/23, 6:18 PM
*** Strings ***
The DELETE (delete) function deletes L (4) characters from character position P (1) from the character string that
is input at input IN ("block_1"). The result is output at the output OUT ("block").
INSERT
The INSERT function inserts the character string entered at input IN1 ("block_2") into the character string entered
at input IN2 ("block_3"). Insertion begins after character position P(4). The result is output at the output OUT
("block").
REPLACE
The REPLACE function replaces L (9) characters in the character string entered at input IN1 ("Record_1") with
the character string entered at input IN2 ("Record_2"). The replacement starts at character position P(1). The
result is output at the output OUT ("block").
FIND
The FIND (find) function returns the position of the character string entered at input IN2 ("block_2") in the
character string entered at input IN1 ("block_1"). The result is output at the output OUT ("Result").
S7 programming TIA Portal (overview):
SPS
PLC terms
data types
bit links
Set / Reset
Set/reset bit field
edge evaluation
time functions
counting functions
comparator
arithmetic
https://www.meine-schaltung.de/themen/sps/zeichenketten/
Mathematics (floating point numbers)
sliding functions
converter
4/5
5/13/23, 6:18 PM
*** Strings ***
converter
strings
SCL
Google search on MEINE-SCHALTUNG.de:
Home Imprint Data protection
https://www.meine-schaltung.de/themen/sps/zeichenketten/
5/5
Download