UNLOCK(OPCS)             Optical Printer Control System          UNLOCK(OPCS)
	unlock - (CUSTOM) unlock motors for manual adjustment
	unlock [no arguments] 
	Unlocks some or all of the motors to faciliate manual adjustment.

	This command is actually a script defined with a RUNCMD(OPCSDEFS)
	command, and is normally customized by your local site engineer.

	Some sites may prefer NOT to configure this command, since the
	LOAD(OPCS) and LINEUP(OPCS) prevent the need for manual adjusting.

	This command normally does the following operations:

	    > Deenergize the motors

	    > Pause to allow user to manipulate the freewheeling axes

	    > Re-energize the motors

	    > Home them all

	An example implementation of the unlock command might be done as
	follows. Add the following command to the 'runcmd' section of your 
	opcsdefs.opc file:

	    runcmd unlock unlock.run 0

	..then create a file called 'unlock.run' which contains the 
	following text:

	    --- cut here -----------------------
	    @ # Deenergize the motors. Clearing port 379 bit #7.
	    @ ! echo @ clrbit 0379 80 00 > foo.defs ! ldefs foo.defs
	    @ pse -noabort
	    @ # Re-energize motors by setting the bit.
	    @ ! echo @ setbit 0379 80 00 > foo.defs ! ldefs foo.defs
	    @ # Home all the motors we deenergized
	    @ home a b c d e f
	    --- cut here -----------------------

	Note use of leading '@' signs to disable echoing of the commands,
	to avoid cluttering the screen with unwanted text.

        ANSI characters can be added to the script to embolden messages,
	and erase them when the user hits a key to continue.

	Gregory Ercolano, Los Feliz California 04/12/98
© Copyright 1997 Greg Ercolano. All rights reserved.