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 #590 background imageLoading...
Page #590 background image
A
PPENDIX
A-6 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Differences between User-defined Macros and Subroutines
User-defined macros and subroutines are both functions that group the processing used multiple times into a single unit, and then
execute that processing with a call instruction, but they have the following differences.
â– User-defined macro
Item User-defined Macro Subroutine
Created location and call
method
User-defined macros are created in the User-
defined macro editor. The user-defined macro
code for the corresponding user-defined macro
name is inserted into the location of the UMACRO
instruction.
Subroutines are created after the END instruction
in the ladder program. The subroutine of the
corresponding label number is called each time
the LCAL instruction is executed.
User program size
When multiple UMACRO instructions are used
with the same user-defined macro name, the size
of the user program will increase by each use.
The size of the user program will not increase if
the LCAL instruction is used multiple times with
the same label number.
Argument device Argument devices can be used. Argument devices cannot be used.
Nested calls
Another user-defined macro cannot be called in
the user-defined macro.
Another subroutine can be called in the
subroutine.
User-defined macro
(user-defined macro name S1: 1)
User-defined macro
(user-defined macro name S1: 1)
User-defined macro
(user-defined macro name S1: 1)
S1
・・・
1
I0001
UMACRO
S1
・・・
1
I0000
UMACRO
S1
・・・
1
I0001
UMACRO
S1
・・・
1
I0000
UMACRO
Insert
Main program
After the ladder program conversion
User-defined macro editor
While editing

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