Panasonic fp2/fp2sh User Manual page 343

Programmable controller
Table of Contents

Advertisement

Num-
Name
ber
F235
16-bit binary
data → Gray
P235
code conversion
F236
32-bit binary
data → Gray
P236
code conversion
F237
16-bit gray code
→ binary data
P237
conversion
F238
32-bit gray code
→ binary data
P238
conversion
F240
Bit line to bit
P240
column
conversion
F241
Bit column to bit
P241
line conversion
Binary data →
F250
ASCII
conversion
ASCII → binary
F251
data conversion
F252
ASCII data
check
Character strings instructions
F257
Comparing
P257
character
strings
F258
Character string
P258
coupling
F259
Number of
P259
characters in a
character string
F260
Search for
P260
character string
F261
Retrieving data
P261
from character
strings (right
side)
F262
Retrieving data
P262
from character
strings (left
side)
F263
Retrieving a
P263
character string
from a character
string
F264
Writing a
P264
character string
to a character
string
F265
Replacing
P265
character
strings
: Available,
: Not available,
*1) This instruction is available for FPΣ 32k type.
*2) This instruction is available for FPΣ Ver. 3.10 or later.
*3) This instruction is only available for FP-X Ver.2.0 or later.
Ope-
Boolean
rand
GRY
S, D
Converts the 16-bit binary data of
PGRY
"S" to gray codes, and the
converted result is stored in the "D".
DGRY
S, D
Converts the 32-bit binary data of
PDGRY
(S+1, S) to gray code, and the
converted result is stored in the
(D+1, D).
GBIN
S, D
Converts the gray codes of "S" to
PGBIN
binary data, and the converted
result is stored in the "D".
DGBIN
S, D
Converts the gray codes of (S+1, S)
PDGBIN
to binary data, and the converted
result is stored in the (D+1, D).
COLM
S, n,
The values of bits 0 to 15 of "S" are
PCOLM
D
stored in bit "n" of (D to DC+15).
LINE
S, n,
The values of bit "n" of (S) to (S+15)
PLINE
D
are stored in bits 0 to 15 of "D".
BTOA
S1,
Converts multiple binary data to
S2, n,
multiple ASCII data.
D
ATOB
S1,
Converts multiple ASCII data to
S2, n,
multiple binary data.
D
ACHK
S1,
Checks the ASCII data strings to be
S2, n
used in F251 (ATOB) instruction.
SCMP
S1,
These instructions compare two
S2
specified character strings and
output the judgment results to a
special internal relay.
SADD
S1,
These instructions couple one
S2, D
character string with another.
LEN
S, D
These instructions determine the
number of characters in a character
string.
SSRC
S1,
The specified character is searched
S2, D
in a character string.
RIGHT
S1,
These instructions retrieve a
S2, D
specified number of characters from
the right side of the character string.
LEFT
S1,
These instructions retrieve a
S2, D
specified number of characters from
the left side of the character string.
MIDR
S1,
These instructions retrieve a
S2,
character string consisting of a
S3, D
specified number of characters from
the specified position in the
character string.
MIDW
S1,
These instructions write a specified
S2, D,
number of characters from a
n
character string to a specified
position in the character string.
SREP
S, D,
A specified number of characters in
p, n
a character string are rewritten,
starting from a specified position in
the character string.
: Not available partially
Description
6
8
6
8
8
8
12
*1
12
*1
10
*2
*3
10
12
6
10
8
8
10
12
12
11-75

Advertisement

Table of Contents
loading

Table of Contents