Multiple Branch

Multiple Branch: MPS, MRD, MPP

 

Multiple branch instructions are used to connect output coils to the left hand side of a contact.

Without these instructions, connections can only be made to the right hand side of the last contact.

For every MPS instruction, there must be a corresponding MPP instruction.

The last contact or coil circuit must connect to an MPP instruction.

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

MPS

MRD

MPP

S

-

-

-

-

-

-

-

-

-

-

-

-

-

1

-

-

-

 

MPS (Multiple Point Store) 

Function:

-This is used to start branching in a ladder. MPS stores the connection point of the ladder circuit so that further coil branches can recall the value later.

 

MRD (Multiple Read)

Function:

-This is used to relay branching in a ladder. MRD recalls or reads the previously stored connection point data and forces the next contact to connect to it.

 

MPP (Multiple Pop)

Function:

-This is used to finish branching in a ladder. MPP pops (recalls and removes) the stored connection point.

First, it connects the next contact, and then it removes the point from the temporary storage area.

 

Examples)

 

 

 

Steps

Instruction

Device

Steps

Instruction

Device

0

LD

X00

11

ORB

 

1

MPS

 

12

ANB

 

2

LD

X01

13

OUT

Y10

3

OR

X02

14

MPP

 

4

ANB

 

15

AND

X07

5

OUT

Y00

16

OUT

Y20

6

MRD

 

17

LD

X10

7

LD

X03

18

OR

X11

8

AND

X04

19

ANB

 

9

LD

X05

20

OUT

Y30

10

AND

X06

 

 

 

 

 

 

 

 

Steps

Instruction

Device

Steps

Instruction

Device

0

LD

X00

9

OUT

Y00

1

MPS

 

10

MPP

 

2

AND

X01

11

OUT

Y01

3

MPS

 

12

MPP

 

4

AND

X02

13

OUT

Y02

5

MPS

 

14

MPP

 

6

AND

X03

15

OUT

Y03

7

MPS

 

16

MPP

 

8

AND

X04

17

OUT

Y04