IDEC MICROSmart FC6A Series Ladder Programming Manual page 577

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

Advertisement

Operation Example
The following ladder program will execute the UMACRO instruction when main program input I0000 is turned on. When the
UMACRO instruction is executed, user-defined macro name 0 will be executed.
A0001 will operate as I0001 in the user-defined macro because A1 of the UMACRO instruction has been set to I0001. Therefore,
the MOV instruction will be executed when I0001 is turned on.
Main program
I0000
User-defined macro (user-defined macro name S1: 0)
A0001
Note: You can save time and effort in writing similar ladder programs and creating new ladder programs by turning a ladder program into a user-
defined macro.
Note: The UMACRO, JMP, JEND, MCR, MCS, LCAL, LJMP, LRET, LABEL, DJNZ, and END instructions cannot be used in a user-defined macro.
Settings
(1)
(2)
(1) S1 (source 1): User-defined Macro Name
Select the user-defined macro to execute.
Click Settings to display the Argument settings dialog box.
In the Argument settings dialog box, configure the argument settings for each user-defined macro number.
For details, see "Argument settings dialog box" on page 28-4.
(2) Argument Settings
Use this area to configure the devices that will be passed to the user-defined macro that is set with the user-defined macro
name (1). The device address or tag name is set according to the device type of each argument displayed in the Tag Name
column. The number of arguments and the device types can be changed in the Argument settings dialog box.
UMACRO S1
0
MOV(W) S1 -
D1 -
D0000
D0001
FC6A S
MICROS
L
ERIES
MART
28: U
A1
I0001
REP
P
M
ADDER
ROGRAMMING
ANUAL
-
M
SER
DEFINED
ACRO
FC9Y-B1726
I
NSTRUCTION
28-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents