EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #275 background imageLoading...
Page #275 background image
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 13-3
13: P
ROGRAM
B
RANCHING
I
NSTRUCTIONS
LCAL (Label Call)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Since the LCAL instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Note: Make sure that a LABEL instruction of the label number used for a LCAL instruction is programmed. When designating S1 using other than a
constant, the value for the label is a variable. When using a variable for a label, make sure that all probable LABEL numbers are included in the user
program. If a matching label does not exist, a user program execution error will result, turning on special internal relay M8004 and the ERR LED on
the FC6A Series MICROSmart.
LRET (Label Return)
Valid Devices
When input is on, the address with label 0 through 255 assigned by S1 is called. When input is off, no call
takes place, and program execution proceeds with the next instruction.
The LCAL instruction calls a subroutine, and returns to the main program after the branch is executed. A
LRET instruction (see below) must be placed at the end of a program branch which is called, so that normal
program execution resumes by returning to the instruction following the LCAL instruction.
Note: The END instruction must be used to separate the main program from any subroutines called by the
LCAL instruction.
A maximum of four LCAL instructions can be nested. When more than four LCAL instructions are nested, a
user program execution error will result, turning on special internal relay M8004 and the ERR LED on the
FC6A Series MICROSmart.
LCAL S1
*****
Device Function I Q M R T C D P Constant Repeat
S1 (Source 1) Label number to call ——————X — 0-255 —
This instruction returns to the address of the LCAL (label call) instruction.
This instruction is placed at the end of a subroutine called by the LCAL instruction. When the subroutine is completed,
normal program execution resumes by returning to the instruction following the LCAL instruction.
The LRET must be placed at the end of the subroutine starting with a LABEL instruction. When the LRET is programmed
at other places, a user program execution error will result, turning on special internal relay M8004 and the ERR LED on
the FC6A Series MICROSmart.
LRET
Device Function I Q M R T C D P Constant Repeat
— — ———————— — —

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals