beautypg.com

Subroutines instructions, Applicable program areas operands, Combined-use instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 326: Flags, 2 instructions, N: subroutine number, Operand specifications

background image

2 Instructions

2-290

CP1E CPU Unit Instructions Reference Manual(W483)

Subroutines Instructions

SBS

Applicable Program Areas

Operands

N: Subroutine number

Specifies the subroutine number between 0 and 127 decimal.

Operand Specifications

Combined-use instructions

SBN (subroutine entry) instructions and RET (subroutine return) instructions

Flags

Instruction

Mnemonic

Variations

Function

code

Function

SUBROUTINE CALL

SBS

@SBS

091

Calls the subroutine with the specified subroutine
number and executes that program.

Symbol

SBS

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

Operand

Description

Data type

Size

N

Subroutine number

---

1

Area

Word addresses

Indirect DM addresses

Constants

CF

Pulse bits

TR bits

CIO

WR

HR

AR

T

C

DM

@DM

*DM

N

---

---

---

---

---

---

---

---

---

OK

---

---

---

Name

Label

Operation

Error Flag

P_ER

ON if nesting exceeds 16 levels.

ON if the specified subroutine number does not exist.

ON if a subroutine calls itself.

ON if a subroutine being executed is called.

ON if the specified subroutine is not defined in the current task.

OFF in all other cases.

N: Subroutine number

SBS(091)

N

This manual is related to the following products: