PMAC Product Guide If the correct password has not been entered 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. Examples: {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 PASSWORD=Reagan ; Attempt to enter password ERR002 ; PMAC rejects as incorrect password PASSWORD=BUSH ; Attempt to enter password ERR002 ; PMAC rejects as incorrect (wrong case) PASSWORD=Bush ; Attempt to enter password ; PMAC accepts as correct password LIST PLC 1 ; Request listing of protected program P1=P1+1 ; PMAC responds because password matched RETURN PASSWORD=Clinton ; This changes password to Clinton 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 PASSWORD=Clinton ; Attempt to enter password ; PMAC accepts as correct password LIST PLC 1 ; Request listing of protected program P1=P1+1 ; PMAC responds because password matched RETURN PC Function : Report Program Counter Scope : Coordinate-system specific Syntax : PC This command causes PMAC to report the motion program number and address offset of the line in that program that it will next calculate (in the addressed coordinate system). It will also report the program number and address offset of any lines it must RETURN to if it is inside a GOSUB or CALL jump (up to 15 deep). Online Commands 185