Mitsubishi Electric M800VW Series Programming Manual page 108

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
6 Explanation of Instructions and Functions
6.1 Instruction List
Process
Instruction
Category
unit
sign
Character
LEN
string
Character
length de-
string
LENP
tection
Floating
ESTR
decimal
point
Single
->
precision
ESTRP
Character
string
Character
EVAL
string
->
Floating
EVALP
decimal
point
Extracting
RIGHT
character
string from
RIGHTP
the right
Extracting
LEFT
character
Character
string from
string
LEFTP
the left
Random
MIDR
selection
from char-
acter
MIDRP
strings
MIDW
Random
replace-
ment in
MIDWP
character
strings
(*1) One step is added when S is a constant.
(*2) When S, or S1 and S2 are character string constants, the number of steps varies depending on the number of charac-
ters. The number of steps is calculated with the following formula:
"The number of steps in the table + ((the number of characters+1) / 3)" (The remainder is rounded up.)
(*3) When S, or S1 and S2 are character string constants, the number of steps varies depending on the number of charac-
ters. The number of steps is calculated with the following formula:
 Even number: "The number of steps in the table + (the number of characters / 2)"
 Odd number: "The number of steps in the table + ((the number of characters+1) / 2)"
(*4) When S, or S1 and S2 are character string constants, the number of steps varies depending on the number of charac-
ters. The number of steps is calculated with the following formula:
"The number of steps in the table + ((the number of characters+1) / 3)" (The remainder is rounded up.)
In addition, one step is added when D is a constant.
(*5) One step is added when S1 is a constant.
Symbol
Process details
Stores data length (number of char-
LEN
S
D
acters) of the character string desig-
nated by (S) in the device designated
LENP
S
D
by (D)
ESTR
S1 S2 D
Converts the 32-bit floating decimal
point data designated by (S) to a
character string, and stores it in the
S1 S2 D
ESTRP
device designated by (D)
EVAL
S
D
Converts the character string desig-
nated by (S) to a 32-bit floating deci-
mal point data, and stores it in the
S
D
device designated by (D)
EVALP
Stores n characters from the end of
S
D
n
RIGHT
the character string designated by
(S) in the device designated by (D)
S
D
n
RIGHTP
Stores n characters from the begin-
LEFT
S
D
n
ning of the character string designat-
ed by (S) in the device designated by
S
D
n
LEFTP
(D)
Stores the designated number of
S1 D S2
MIDR
characters in the character string
designated by (S1) from the position
designated by (S2) in the device des-
S1 D S2
MIDRP
ignated by (D)
S1 D S2
MIDW
Stores the character string of (S1) in
the specified number to the character
string of (D) in the position specified
S1 D S2
MIDWP
by (S2)
87
Counting step
number
Execution
ST
condition
Execu-
Storage
tion
3 (*3)
4 (*4)
3 (*3)
4 (*4)
4/5 (*5) 5/6 (*5) 〇
4/5 (*5) 5/6 (*5) 〇
3 (*3)
4 (*4)
3 (*3)
4 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
4 (*3)
5 (*4)
IB-1501667-B
Refer-
ence
330
332
339
345
349

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents