Instruction 80- subroutine call – Maple Systems MAPware-7000 User Manual

Page 135

Advertising
background image

127

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 80- Subroutine Call

Expression:

Space Requirement: 1 line x 3 column Location Requirement: Middle, Right rail

Function:

When the input is ON, this instruction calls the subroutine number n.

Execution Condition:

Input

Operation

Output

OFF

No execution

OFF

ON

Execution

ON

Operand:

Coil or Bit

Register

Constant

Index

Name

X

Y B

S

T.

C.

M

X
W

Y
W

B
W

S
W

T C

D

I

J

K

M
W

n

Subroutine

number

√ (note)

Example:

When X007 is ON, the subroutine number 8 is called. When the program execution is returned
from the subroutine, the output is turned ON.

Main Program

Subroutine

Note:

The possible subroutine number is 0 to 255.
Refer to the SUBR instruction.

The CALL instruction can be used in an interrupt program. However, it is not allowed that the
same subroutine is called from an interrupt program and from main program.

Advertising