Omron CP1H CPU Operation Manual page 414

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Program Protection
380
X, Y, and Z in the lot number are converted to 10, 11, and 12, respectively, in
A310 and A311. Some examples are given below.
Lot number
A311
01805
0005
30Y05
0005
Application Examples
The following instructions can be added to the program to create a fatal error
and thus prevent program execution if an attempt is made to execute the pro-
gram on a CPU Unit with the incorrect lot number. A password can also be set
to read-protect the program so that it cannot be copied, e.g., using a Memory
Cassette.
• The following instructions will create a fatal error to prevent the program
from being executed when the lot number is not 23905.
First Cycle Flag
<>L(306)
D0
#050923
• The following instructions will create a fatal error to prevent the program
from being executed when the lot number does not end in 05.
First Cycle Flag
<>L(306)
D0
#050000
• The following instructions will create a fatal error to prevent the program
from being executed when the lot number does not begin with 23Y.
First Cycle Flag
<>L(306)
D 0
#1123
A310
0801
1130
ANDL(610)
A310
#00FFFFFF
D0
FALS(007)
1
D100
ANDL(610)
A310
#00FF0000
D0
FALS(007)
1
D100
ANDL(610)
A310
#0000FFFF
D0
FALS(007)
1
D100
Section 6-6

Advertisement

Table of Contents
loading

Table of Contents