Omron FQM1-MMP21, FQM1-CM001, FQM1-MMA21 operation manual Programming, Appendix A, Flags, Operands

Models: FQM1-MMP21 FQM1-MMA21 FQM1-CM001

1 414
Download 414 pages 44.52 Kb
Page 293
Image 293
Flags

Programming

Appendix A

The following instructions are used in pairs to set and cancel certain instruction conditions. Each pair of instructions must be in the same task.

Instruction

Description

Setting

Canceling

condition

 

instruction

instruction

 

 

 

 

Interlocked

An interlock turns OFF part of the program. Special conditions, such as

IL(002)

ILC(003)

 

turning OFF output bits, resetting timers, and holding counters, are in

 

 

 

effect.

 

 

 

 

 

 

Block program

A program block from BPRG(096) to BEND(801) is executed.

BPRG(096)

BEND(801)

execution

 

 

 

 

 

 

 

Flags

In this context, a flag is a bit that serves as an interface between instructions.

Input flags

Output flags

 

 

• Differentiation Flags

• Condition Flags

Differentiation result flags. The status of these flags

Condition Flags include the Always ON/OFF Flags, as well as

are input automatically to the instruction for all dif-

flags that are updated by results of instruction execution. In user

ferentiated up/down output instructions and the

programs, these flags can be specified by labels, such as ER, CY,

DIFU(013)/DIFD(014) instructions.

>, =, A1, A0, rather than by addresses.

• Carry (CY) Flag

 

The Carry Flag is used as an unspecified operand

 

in data shift instructions and addition/subtraction

 

instructions.

 

 

 

Operands

Operands specify preset instruction parameters (boxes in ladder diagrams) that are used to specify I/O mem- ory area contents or constants. An instruction can be executed by entering an address or constant as the oper- ands. Operands are classified as source, destination, or number operands.

Example

MOV

#0000 Operands S (source)

D00000 Manual background D (destination)

JMP

3

Manual background N (number)

 

Operand types

Operand

 

Description

 

 

symbol

 

 

 

 

 

 

 

Source

Specifies the address of the data

S

Source operand

Source operand other than control

 

to be read or a constant.

 

 

data (C)

 

 

 

 

 

 

 

C

Control data

Compound data in a source oper-

 

 

 

 

and that has different meanings

 

 

 

 

depending bit status.

 

 

 

 

 

Destination

Specifies the address where data

D

---

 

(Results)

will be written.

 

 

 

 

 

 

 

 

Number

Specifies a particular number used

N

---

 

 

in the instruction, such as a jump

 

 

 

 

number or subroutine number.

 

 

 

 

 

 

 

 

Note Operands are also called the first operand, second operand, and so on, starting from the top of the instruction.

MOV

#0000 Manual background First operand

D00000 Manual backgroundManual background Second operand

270

Page 293
Image 293
Omron FQM1-MMP21, FQM1-CM001, FQM1-MMA21 operation manual Programming, Appendix A, Flags, Operands