Panasonic FP-E Programming Manual page 881

Fp series
Table of Contents

Advertisement

F257
(SCMP)
P257
(PSCMP)
Outline
These instructions compare two specified character strings and output
the judgment results to a special internal relay.
With the FP0R/FPΣ/FP−X, the differential execution type instruction P257 (PSCMP) cannot
be specified.
Program example
Trigger
R10
10
F257 SCMP, DT 0, DT 10
S1
S2
Operands
Relay
Operand
Operand
WX WY WR WL
S1
A
A
S2
A
A
(*1) Cannot be specified with FP0R, FPΣ and FP−X.
(*2) I0 to ID
Explanation of example
When internal relay R10 is on, data register DT1 and DT11 are compared.
In this case, it is determined that "S1" < "S2", and R900C goes on.
10
DT0
(Character string size)
4
DT1
(Number of characters)
"B"
"A"
DT2
(Byte 1)
(Byte 0)
"D"
"C"
DT3
(Byte 3)
(Byte 2)
DT4
(Byte 5)
(Byte 4)
DT5
(Byte 7)
(Byte 6)
DT6
(Byte 9)
(Byte 8)
Higher
Lower
16 bits
16 bits
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Comparing character strings
Ladder Diagram
Ladder Diagram
S1
S2
Character string 1 for comparison
Character string 2 for comparison
Timer/Counter
SV
EV
DT
A
A
A
A
A
A
A
A
DT10
DT11
DT12
DT13
DT14
DT15
Index
Register
register
FL
I
LD
(*1)
(*2)
A
A
A
A
A
A
A
A
8
(Character string size)
5
(Number of characters)
"B"
"A"
(Byte 1)
(Byte 0)
"D"
"C"
(Byte 3)
(Byte 2)
"E"
(Byte 5)
(Byte 4)
(Byte 7)
(Byte 6)
Higher
Lower
16 bits
16 bits
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F257
DT
DT
Constant
modifier
K
H
f
M
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
A:
Available
N/A: Not Available
3 − 617
10
(SCMP)
0
10
Index
Index
A
A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents