Set or Reset Master Control

Master Control Set or Reset: MC, MCR

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

MC, MCR

S

-

-

-

-

-

-

-

-

-

-

-

-

o

1

-

-

-

 

 

n

Nesting (0 – 7)

 

 

Functions

  • If the input condition of the MC is turned ON, instructions within the boundary from MC (n) to MCR (n) are executed. If the input condition is turned OFF, no instructions will be operated.

  • Nesting is available up to 8 pairs (n0 – n7). In case of nesting, the MC is operated from a lower nesting number while the MCR is executed from a higher nesting number.

  • The MCR instruction is used to terminate and mark the end (reset) of the Master Control instruction. MCR terminates from the specified nesting (n) number and thereafter.

  • If the MC-operated block with a higher priority is terminated, the MC-operated blocks with lower priorities also get terminated.

 

Example 1)

If X01 is turned ON, the MC is set. If it is turned OFF, the MC is reset.

X01 has to be ON in order to execute MC 0.

In order to execute MC 1, MC 0 has to be operated first and then X03 has to be ON.

In order to execute MC 2, MC 0 has to be operated first, then MC 1 the second, and X05 the last.

 

 

 

Example 2)

 

 Turning on the input condition (M01) of MC 0 allows D10 to increase as the time passes by.

On the other hand, because the input condition (M02) of MC 1 is turned OFF, D11 will not increase its value. Notice how D11 stays ‘0.’