![background image](http://html1.mh-extra.com/html/omron/cs1w-hca12-v1/cs1w-hca12-v1_operation-manual_741977189.webp)
169
Ladder Library Function
Section 7-12
7-12-4 Creating a Ladder Library
Procedure for Creating a
Ladder Library
Follow the procedure below to create a "ladder library". Make sure to start the
procedure with erasing the existing ladder library in the unit:
Note
1.
END instruction is required at the end of the program.
2.
When creating a ladder library, make sure to set the unit to the normal ex-
ecution mode. To do so, set "Enable high-speed execution (DM 6615 bit 00
to 15)" of the unit setup area to other than 5A5A.
Step 1. Selecting a
Program that Will Become
a Ladder Library
Decide which program will be made a ladder library.
The program creating method varies depending on whether the encapsulated
program is an "entire program" or "partial programs (subroutine program
group)".
Additionally, only 1 ladder library of either an "entire program" or "partial pro-
grams (subroutine program group)" can be created. For instance, a ladder
library of "partial programs (subroutine program group)" cannot be added and
saved to the Flash memory after a ladder library of an "entire program" has
been already saved to the Flash.
Step 2. Creating a
Program that Will Become
a Ladder Library
To Create a Ladder Library with an "Entire Ladder Program"
Create a normal ladder program. In creating a ladder library with an "entire
program", subroutines can be used in the ladder program.
To Create a Ladder Library with "Partial Programs (Subroutine Program
Group)"
As shown below, create a "program (subroutine program) starting with SBN
and ending with RET and END" that can be executed in this unit.
Create a "normal program"
Partial program
(subroutine program)
See
note 1.
See
note 2.
Switch the unit to program mode in a
state without any errors, then make a
ladder library out of the program/save it
to Flash
Set ladder library execution mode, a
library ID, a library name
Transfer the program that will become
a ladder library
RUN compile the program that will
become a ladder library
Create a “subroutine program” group
only with SBN, RET
Entire ladder program
Encapsulate entire or
partial program?
Summary of Contents for CS1W-HCA12-V1
Page 2: ......
Page 6: ...vi...
Page 20: ...xx Conformance to EC Directives 7...
Page 38: ...18 Models and System Configurations Section 1 2...
Page 78: ...58 Fail safe Circuits Section 3 5...
Page 138: ...118 AR Area Section 6 4...
Page 204: ...184 Improved Instructions Section 7 14...
Page 222: ...202 Cycle Time Section 8 3...
Page 240: ...220 Troubleshooting Flowcharts Section 9 5...
Page 244: ...224 Precautions when Using the CX Programmer Appendix A...
Page 252: ......
Page 253: ......