hit counter script

Fnc205 - Left / Extracting Character String Data From The Left - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
26.6
FNC205 – LEFT / Extracting Character String Data from the Left
Outline
This instruction extracts a specified number of characters from the left end of a specified character string.
1. Instruction format
FNC 205
LEFT
2. Set data
Operand Type
S
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
D
n
Explanation of function and operation
1. 16-bit operation (LEFT and LEFTP)
"n" characters are extracted from the left end (that is, from the head) of the character string data stored in
later and stored to
If the number of characters specified by "n" is "0", the NULL code (0000H) is stored to
When characters are extracted from a character string, "00H" is automatically added at the end of the extracted
characters.
- When the number of extracted characters is odd, "00H" is stored in the high-order byte of a device storing the
last character.
- When the number of extracted characters is even, "0000H" is stored in the device after the last character.
Command
input
FNC205
b15----------------------b8b7-----------------------b0
ASCII code for 2nd
S
ASCII code for 4th
S
+1
ASCII code for n-1
ASCII code for n+1
630
Mnemonic
16-bit Instruction
P
LEFT
7 steps
LEFTP
Head device number storing a character string
Head device number storing extracted character string
Number of characters to be extracted
Digit Specification
D
and later.
S
D
LEFT
ASCII code for 1st
character
character
ASCII code for 3rd
character
character
ASCII code for n-2
character
character
ASCII code for n
character
character
ASCII code for last
00H
character
26 Character String Control – FNC200 to FNC209
26.6 FNC205 – LEFT / Extracting Character String Data from the Left
→ For handling of character strings, refer to Section 5.3.
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
T
C D R U \G
V
n
b15----------------------b8b7-----------------------b0
D
ASCII code for 2nd
D
+1
ASCII code for 4th
ASCII code for n-1
Mnemonic
Operation Condition
Data Type
Character string
16-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K
H
E
D
.
ASCII code for 1st
character
character
ASCII code for 3rd
character
character
ASCII code for n-2
character
character
ASCII code for n
00H
character
Pointer
" "
P
and
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents