beautypg.com

2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 87

background image

2-51

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

Sequ

ence C

ontr

ol I

n

stru

ctio

ns

2

MILH/MILR

/MILC

Program operation can be switched more efficiently by using interlocks with MILH(517) or MILR(518).

Instead of switching processing with compound conditions, insert an MILH(517) or MILR(518)
instruction before each process and an MILC(519) instruction after each process.

Unlike the IL(002) interlocks, MILH(517) and MILR(518) interlocks can be nested, so the operation of

similar programs will be different if MILH(517) or MILR(518) is used instead of ILC(002).

Program with MILH(517)/MILC(519) Interlocks

Program with IL(002)/ILC(003) Interlocks

If there are bits which you want to remain ON in a program section interlocked by MILH(517) or

MILR(518), set these bits to ON with SET just before the MILH(517) or MILR(518) instruction.

a

b

a

MILH

0

MILC

1

MILC

0

A1

A1

b

MILH

1

A2

A2

a

b

MILH

0

100.00

MILC

1

MILC

0

A1

MILH

1

100.01

A2

A3

Execution
condition

Program section

a

b

A1

A2

A3

OFF

ON

Interlocked

Interlocked

Not interlocked

OFF

ON

OFF

Not interlocked

Interlocked

Not interlocked

ON

ON

Not interlocked

Not interlocked

Not interlocked

a

b

IL

ILC

ILC

A1

IL

A2

A3

This program section is not
controlled by the interlock.

This ILC(003)
instruction is ignored
so ...

Execution

condition

Program section

a

b

A1

A2

A3

OFF

ON

Interlocked

Interlocked

Not interlocked
(Not controlled
by the
IL(002)/ILC(003)
interlock.)

OFF

ON

OFF

Not interlocked

Interlocked

ON

ON

Not interlocked

Not interlocked

This manual is related to the following products: