beautypg.com

Subroutine (sbr), Return from subroutine (ret), Subroutine (sbr) return from subroutine (ret) – Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual

Page 338

background image

Chapter 25
Control Instructions

25–6

Subroutine

SBR

Input Instruction

SBR

SUBROUTINE

SBR

F1

F2

F3

F4

F5

ZOOM on SBR –|SBR|– 2.3.0.0.1
NAME: SUBROUTINE

EDT_DAT

HHT Ladder Display:

HHT Zoom Display:

Ladder Diagrams and APS Displays:

(online monitor mode)

This instruction serves as a label or identifier of a program file as a regular
subroutine file (SBR label) versus an interrupt subroutine (INT label).

The target subroutine is identified by the file number that you entered in the
JSR instruction.

This instruction has no control bits. It is always evaluated as true. The
instruction must be programmed as the first instruction of the first rung of a
subroutine.

Return from Subroutine

RET

Output Instruction

(RET)

RET

RETURN

F1

F2

F3

F4

F5

ZOOM on RET –(RET)– 2.3.0.0.2
NAME: RETURN

EDT_DAT

HHT Ladder Display:

HHT Zoom Display:

Ladder Diagrams and APS Displays:

(online monitor mode)

Subroutine (SBR)

Return from Subroutine
(RET)