FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
28-7
28: U
SER
-
DEFINED
M
ACRO
I
NSTRUCTION
4.
Create a ladder program in the Editor for the created user-defined macro in the same manner as the main program and
subroutines. The content of the argument devices (A1 to A100) configured in the
Argument settings
dialog box can be
checked in the
User-defined Macro Arguments Allocation List
window and used in the ladder program as required.
The created user-defined macro can be executed with the UMACRO instruction.
Note:
The UMACRO, JMP, JEND, MCR, MCS, LCAL, LJMP, LRET, LABEL, DJNZ, and END instructions cannot be used in a user-
defined macro.
Note:
The arguments configured in the
Argument settings
dialog box can be used in the user-defined macro as devices. For
example, if the device type of A1 is set to data register in the
Argument settings
dialog box, A1 can be used in the same manner
as a data register.
This concludes registering a user-defined macro.
User-defined Macro Arguments Allocation List window
This window displays the content of arguments set for the user-defined macro.
1.
On the
View
tab, in the
Work Space
group, click
User-defined Macro Arguments Allocation List
.
The
User-defined Macro Arguments Allocation List
window is displayed.
2.
The content that was set in the
Argument settings
dialog box can be checked here.
(1) User-defined Macro Name
Displays the user-defined macro name that was registered in the
Argument settings
dialog box.
(2) Editing
Opens the
Argument settings
dialog box. The user-defined macro settings can be edited in this dialog box.
(3) Argument information
Displays the setting content of arguments set for the selected user-defined macro.
User-defined macro simulation and monitoring
This section describes the simulation and monitoring of a user-defined macro set for the UMACRO instruction. For how to use
these operations, see "Simulate Operation" on page 1-9 and "Monitor Operation" on page 1-12.
(1)
(2)
(3)
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...