Counter area – Omron HOME SECURITY SYSTEM - MOTION SENSOR FQM1-MMA21 User Manual

Page 329

Advertising
background image

306

I/O Memory

Appendix B

The following table shows when timer PVs and Completion Flags will be reset.

Note The present value of TIM, TIMH(015), and TMHH(540) timers programmed will be updated even when

jumped between JMP and JME instructions.

Counter Area

The 256 counter numbers (C0000 to C0255) are shared by the CNT and CNTR(012) instructions.
Counter Completion Flags and present values (PVs) for these instructions are accessed with the
counter numbers.

When a counter number is used in an operand that requires bit data, the counter number accesses the
Completion Flag of the counter. When a counter number is used in an operand that requires word data,
the counter number accesses the PV of the counter.

Note It is not recommended to use the same counter number in two counter instructions because the

counters will not operate correctly if they are counting simultaneously. If two or more counter instructions
use the same counter number, an error will be generated during the program check, but the counters will
operate as long as the instructions are not executed in the same cycle.

The following table shows when counter PVs and Completion Flags will be reset.

Counter Completion Flags can be force-set and force-reset.

Counter PVs cannot be force-set or force-reset, although the PVs can be refreshed indirectly by force-
setting/resetting the Completion Flag.

There are no restrictions in the order of using counter numbers or in the number of NC or NO conditions
that can be programmed. Counter PVs can be read as word data and used in programming.

Instruction

Mode change

between

PROGRAM and

RUN/MONITOR

FQM1 startup

Operation in jumps

(JMP-JME) or tasks on

standby

Operation in interlocks

(IL-ILC)

TIMER: TIM

PV

→ 0

Flag

→ OFF

PV

→ 0

Flag

→ OFF

PVs refreshed in operat-
ing timers

PV

→ SV

(Reset to SV.)

Flag

→ OFF

HIGH-SPEED TIMER:
TIMH(015)

ONE-MS TIMER:
TMHH(540)

Instruction

Reset

Mode change

between

PROGRAM and

RUN/MONITOR

FQM1

startup

At reset input

Operation in

interlocks (IL-

ILC)

COUNTER: CNT

PV

→ 0000

Flag

→ OFF

Maintained

Reset

Reset

Maintained

REVERSIBLE
COUNTER: CNTR(012)

Advertising