Omron SYSMAC CS Series Operation Manual page 190

Customizable counter units
Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Ladder Library Function
170
Additionally, it is possible to create a ladder library with multiple subroutine
programs at once.
Processing series
Processing series
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.
Section 7-12
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-hca12-v1Cs1w-hca22-v1Cs1w-hcp22-v1Cs1w-hio01-v1

Table of Contents