Panasonic FP Series Programming Manual page 613

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Comparison instructions
F64_BCMP
Compares the contents of data block specified by s2 with the contents of data block specified by s3
Description
according to the contents specified by s1 if the trigger EN is in the ON-state.
s1 specifications
1
16#
A
The compare operation result is stored in the special internal relay R900B. When s2 = s3, the
special internal relay is in the ON-state.
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F64_BCMP (see page 1326)
PLC types
The flag R900B used for the compare instruction is renewed each time a
compare instruction is executed. Therefore the program that uses R900B should
be just after F64_BCMP.
Data types
Variable
s1_Control
s2_Start
s3_Start
The variables s2 and s3 have to be of the same data type.
Operands
For
s1
s2, s3
612
Block data compare
0
04
A = Starting byte position of data block specified by s3
1: Starting from higher byte
0: Starting from lower byte
B
C
B = Starting byte position of data block specified by s2
1: Starting from higher byte
0: Starting from lower byte
C = Number of bytes to be compared
range: 16#01–16#99 (BCD)
Data type
Function
WORD
control code specifying byte positions and number of bytes to
be compared
starting 16-bit area to be compared to s3
ANY16
starting 16-bit area to be compared to s2
Relay
WX
WY
WR
WL
WX
WY
WR
WL
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Constant
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents