152 ● <control>L<control>K DMC-40x0 Command Reference
<control>L<control>K
FUNCTION: Lock program
DESCRIPTION:
<control>L<control>K locks user access to the application program. When locked, the ED, UL,
LS, and TR commands will give privilege error #106. The application program will still run
when locked.
The locked or unlocked state can be saved with a BN command. Upon master reset, the controller
is unlocked. Once the program is unlocked, it will remain accessible until a lock command or
a reset (with the locked condition burned in) occurs.
ARGUMENTS: <control>L<control>Kpassword,n where
When n is 1, this command will lock the application program.
When n is 0, the program will be unlocked.
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program No Default Format -
Command Line Yes
Controller Usage
ALL CONTROLLERS
RELATED COMMANDS:
PW Password
ED Edit program
UL Upload program
LS List program
TR Trace program
EXAMPLES:
:PW test,test Set password to "test"
:^L^Ktest,1 Lock the program
:ED Attempt to edit program
?
:TC1
106 Privilege violation
: