EasyManua.ls Logo

Panasonic FP-E - Page 881

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 617
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
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
10
F257 SCMP, DT0,DT10
S1
Trigger
R10
S2
10
11
ST R 10
F257 (SCMP)
DT 0
DT 10
S1 Character string 1 for comparison
S2 Character string 2 for comparison
Operands
Operand
Relay Timer/Counter Register
Index
register
Constant
Inde
x
Operand
WX WY WR WL SV EV DT LD
FL
(*1)
I
(*2)
K H f M
Index
modifier
S1 A A A A A A A A A A N/A N/A N/A N/A A
S2 A A A A A A A A A A N/A N/A N/A N/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.
4
DT0
DT1
DT2
DT3
10
“B”
“A”
“D”
“C”
(Byte 1)
DT4
DT5
DT6
Higher
16 bits
Lower
16 bits
DT10
DT11
DT12
DT13
8
DT14
DT15
Higher
16 bits
Lower
16 bits
(Character string size)
(Number of characters)
(Byte 2)
(Byte 0)
(Byte 3)
(Byte 4)(Byte 5)
(Byte 6)(Byte 7)
(Byte 8)
(Byte 9)
(Character string size)
(Number of characters)
5
“B”
“A”
“D”
“C”
(Byte 1)
(Byte 2)
(Byte 0)
(Byte 3)
(Byte 4)(Byte 5)
(Byte 6)(Byte 7)
“E”
F257
P257
(PSCMP)
(SCMP)
Comparing character strings
A: Available
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com