19.1 Common precautions
The FP7 series differs from the existing FP series in the following points:
■
Operations of the carry flag and comparison flags (●: Change, -: Do not change)
Type of
instruction
Mnemoni
c
Name of instruction
System relay number
Carry flag Comparison flags
SR9(CY) SRA (>) SRB (=) SRC(<)
Data
comparison
instructions
CMP Data compare - ● ● ●
WIN Band compare - ● ● ●
BCMP Block comparison - - ● -
Bit comparison
instructions
BTT 16-bit data specified bit test - - ● -
STC Carry-flag set ● - - -
CLC Carry-flag reset ● - - -
String
operation
instructions
ACHK ASCII data check - - ● -
SCMP String compare - ● ● ●
● When operation is executed, the carry flag SR9 (CY) and comparison flags SRA (>), SRB
(=), and SRC (<) are respectively activated by the instructions listed above.
● The flags do not change even if the operation result is "0" in the case of overflow or
underflow with instructions other than listed above.
■
Operation at the time of overflow and underflow
● The carry flag SR9 (CY) does not change even in the case of overflow or underflow.
● Note that overflow or underflow may result if incorrect operation unit is specified.
■
Error flag
● Operation error flags are not cleared even in the case of normal operation.
● Use ERR instruction for clearing error flags.
■
Operation device areas
● When the operation unit is 32 bits (UL, SL, SF) or 64 bits (DF), if an area near the end of an
operation device is specified, the device memory with a consecutive address within PLC is
overwritten. Specify an operand so that areas are not incorrectly read or written.
Example) When a transfer instruction is used, and the operation unit is specified as
32 bits, if WY511 is selected for the transfer instruction [D], the starting area of WL0
is overwritten.
19.1 Common precautions
19-2 WUME-FP7CPUPGR-12