Umacro (User-Defined Macro) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

28: U
-
SER
This chapter describes the instruction that executes registered user-defined macros.
A user-defined macro is a ladder program that has been registered with an arbitrary number and name, and that can be used
multiple times within the main program. For creating user-defined macros, see "User-defined macro registration procedure" on
page 28-6.
For the differences between user-defined macros and subroutines, see "Differences between User-defined Macros and
Subroutines" on page A-6.

UMACRO (User-defined Macro)

Executes the user-defined macro with the specified number.
Symbol
UMACRO
Operation
When the input is on, the user-defined macro that corresponds to the specified user-defined macro name will be executed. When
the input is off, the user-defined macro that corresponds to the specified user-defined macro name will not be executed.
You can set the argument devices that will be used in the user-defined macro that is executed by the UMACRO instruction.
Argument devices are devices that the user-defined macro will actually use when the UMACRO instruction is executed. For
example, when I0001 is set for A1, A0001 will operate as I0001 in the user-defined macro.
Valid Devices
Device
Function
S1 (Source 1)
User-defined Macro Name
Argument Device 1 to n
*2
A1 ... An
(n is 1 ≤ n ≤ 100)
*1 The valid range of S1 (user-defined macro name) is 0 to 255.
*2 A1 to A100 are argument devices that will be used in the user-defined macro. The argument devices that will be used can be configured in the
"Argument settings dialog box" on page 28-4, and 0 to 100 argument devices can be used.
For example, when Number of arguments is set to 5 in the "Argument settings dialog box" on page 28-4, argument devices A1 to A5 can be
used. When Number of arguments is set to 0 in the "Argument settings dialog box" on page 28-4, argument devices cannot be used.
M
DEFINED
S1
A1
・・・・
*****
*****
FC6A S
MICROS
ERIES
I
ACRO
NSTRUCTION
An
*****
I
Q
X
X
L
P
MART
ADDER
ROGRAMMING
M
R
T
C
D
P
X
X
X
X
X
M
FC9Y-B1726
ANUAL
Constant
Repeat
*1
X
X
28-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents