170
Ladder Library Function
Section 7-12
Additionally, it is possible to create a ladder library with multiple subroutine
programs at once.
Restrictions in Creating Ladder Libraries
The following restrictions will apply in creating ladder libraries:
• The ladder library already created (saved to the Flash memory) cannot be
edited.
• In creating a ladder library with "partial programs (subroutine program
group)", the maximum number of storages for the ladder library is 50 (up
to 50 subroutine programs). With an "entire program", only 1 ladder library
can be created.
• Ladder libraries cannot be created in the high-speed execution mode (unit
setup area (DM 6615 = 5A5A Hex)). Make sure to create ladder libraries
in the normal execution mode (unit setup area (DM 6615 = other than
5A5A Hex)).
• When creating a ladder library with "partial programs (subroutine program
group)", it is not possible to use the subroutines within the ladder library. A
memory error will occur in the process of creating the library. On the con-
trary, it is possible to use the subroutines within the subroutines when cre-
ating a ladder library with an "entire program".
• When creating a ladder library with "partial programs (subroutine program
group)", the programs cannot contain the following instructions. A mem-
ory error will occur in the process of creating a ladder library with the pro-
gram containing them:
DIFD instruction, SBS instruction, MCRO instruction
• When creating a main program to call a ladder library with CX-Program-
mer, prepare a dummy subroutine program corresponding to the subrou-
tine No. specified by MCRO instruction in the main program (the same
procedure as in starting an external interrupting task of CPU unit). With-
out the dummy, a compile error will occur at transferring the program.
Meanwhile, a dummy subroutine is not needed when creating the main
program directly with the programming console.
Ladder libr
ar
y prog
ram b
loc
k
Processing series
Processing series
SBN must be used.
Only subroutine
numbers 000 to 049 can
be used in ladder library.
The macro argument area can
be used to pass arguments to
the ladder library program.
The macro return area can be
used to return values to the
main program that called the
ladder library program.
RET and END must be used.
Содержание CS1W-HCA12-V1
Страница 2: ......
Страница 6: ...vi...
Страница 20: ...xx Conformance to EC Directives 7...
Страница 38: ...18 Models and System Configurations Section 1 2...
Страница 78: ...58 Fail safe Circuits Section 3 5...
Страница 138: ...118 AR Area Section 6 4...
Страница 204: ...184 Improved Instructions Section 7 14...
Страница 222: ...202 Cycle Time Section 8 3...
Страница 240: ...220 Troubleshooting Flowcharts Section 9 5...
Страница 244: ...224 Precautions when Using the CX Programmer Appendix A...
Страница 252: ......
Страница 253: ......