Reference Manual
PMAC 2 Software Reference
PMAC On-Line Command Specification 275
PASSWORD={string}
Function
Enter/Set Program Password
Scope
Global
Syntax
PASSWORD={string}
where:
• {string} is a series of non-control ASCII characters (values from 32 decimal to 255
decimal). The password string is case sensitive.
Remarks
This command permits the user to enter the card’s password, or once entered properly, to
change it. Without a properly entered password, PMAC will not open or list the contents of
any motion program numbered 1000 or greater, or of PLC programs 0-15. If asked to do so,
it will return an error (ERR002 reported if I6 is set to 1 or 3).
The default password is the null password (which means no password is needed to list the
programs). This is how the card is shipped from the factory, and after a $$$*** re-
initialization command. When there is a null password, you are automatically considered to
have entered the correct password on power-up/reset.
If you have entered the correct password (which is always the case for the null password),
PMAC interprets the PASSWORD={string} command as changing the password, and you
can change it to anything you want. When the password is changed, it has automatically
been matched and the host computer has access to the protected programs.
Note:
The password does not require quote marks. If you use quote marks
when you enter the password string for the first time, you must use
them every time you match this password string.
If you have not yet entered the correct password since the latest power-up/reset, PMAC
interprets the PASSWORD={string} command as an attempt to match the existing
password. If the command matches the existing password correctly, PMAC accepts it as a
valid command, and the host computer has access to the protected programs until the PMAC
is reset or has its power cycled. If the command does not match the existing password
correctly, PMAC returns an error (reporting ERR002 if I6=1 or 3), and the host computer
does not have access to the protected programs. The host computer is free to attempt to
match the existing password.
There is no way to read the current password. If the password is forgotten and access to the
protected programs is required, the card must be re-initialized with the $$$*** command,
which clears all program buffers as well as the password. Then the programs must be
reloaded, and a new password entered.
Example
{Starting from power-up/reset with a null password}
LIST PLC 1 ; Request listing of protected program
P1=P1+1 ; PMAC responds because there is no password
RETURN
PASSWORD=Bush ; This sets the password to “Bush”
LIST PLC 1 ; Request listing of protected program
P1=P1+1 ; PMAC responds because password has been
RETURN ; matched by changing it.
$$$ ; Reset the card
LIST PLC 1 ; Request listing of protected program
ERR002 ; PMAC rejects because password not entered