171
Ladder Library Function
Section 7-12
Step 3. Setting Ladder
Library Execution Mode, a
Ladder Library ID, and a
Ladder Library Name
• Decide the method of executing a ladder library.
The ladder library executing method can be set in the following unit setup
area:
• Put a ladder library ID and name on what will be a ladder library.
To set them, store a desired ID and name in the following unit setup area
before creating a ladder library:
Ladder library ID is used to give control over the backup to the memory card
of CPU unit. See
Back Up Function
on page 175 for details.
Step 4. Transferring the
Program that Will Become
a Ladder Library
1.
Set the unit to "program" mode.
2.
Transfer the created program and unit setup area to the unit
Step 5. Compiling the
Program that Will Be a
Ladder Library
Set the unit to "RUN" or "Monitor" mode and compile the program once.
Step 6. Program
Becoming a Ladder
Library/Saving to the
Flash Memory
The program currently being executed is converted to a ladder library and the
library is saved to the Flash memory. Follow the procedure below:
1.
Set the unit to "program" mode. (No error should be present.)
2.
Turn ON "ladder library set flag (SR 252 bit 15)". When it is turned ON, the
program created on Step 2 is saved to the Flash memory as a "ladder li-
brary".
7-12-5 Erasing a Ladder Library
Follow the procedure below to erase a ladder library:
1.
Set "ladder library execution mode (DM 6624)" of the unit setup area to
0000 Hex and turn the power OFF once, then ON again, or restart the unit.
2.
Set the unit to "program" mode.
3.
Turn ON "ladder library set flag (SR 252 bit 15)".
4.
When "ladder library set flag (SR 252 bit 15)" turns OFF, erasing the ladder
library is complete.
7-12-6 Executing a Ladder Library
The method for executing a ladder library varies depending on whether the
ladder library has been created with either an "entire program" or "partial pro-
grams (subroutine program group)".
When a ladder library has been created with an "entire program", Boot mode
(executed at starting an operation) is used to execute the library.
Item
Unit setup area
Description
Ladder library
execution mode
DM 6624
Specify either "Boot mode execution" where a
ladder library stored in the Flash is opened
and executed at starting an operation, or "exe-
cution with MCRO instruction" where a ladder
library is called by MCRO subroutine and
used.
Other than 5A5A, A5A5: Ladder library not
used
5A5A Hex: Boot mode
A5A5 Hex: Execution with MCRO instruction
Item
Unit setup area
Data format
Ladder library ID
DM 6625
0000 to FFFF Hex
Ladder library name
DM 6626 to DM6629 ASCII code (max. of 8 characters)
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: ......