SYS1 Password setting

This changes the password specified by the controller, based on the contents specified by the character constant.

This changes the password specified by the controller to the contents specified by the second keyword. The first and second keywords are separated by a comma.

Remarks

  • When this instruction is executed, writing to the internal FROM takes approximately 100ms.

  • If the specified password is the same as the password that has already been written, the password is not written to the FROM.

  • We recommend using differential execution with this instruction.

  • Separate first and second keywords with a comma "," and do not use spaces.

  • Keyword setting for 4-digit hexadecimal password

    PASS,ABCD

    PASS

    fixed

    ABCD

    Password, e.g. set password to ABCD

  • Keyword setting for 8-digit alphanumeric password

    Enter for example 'PAS,FP-Xv3'. Spaces at the end of the password are not significant.

    PAS,FP-X v 3

    PAS

    fixed

    FP-X v 3

    Password, e.g. set password to FP-X v 3

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if any character other than a keyword is specified

  • if no comma is between the first and second keywords

  • if small letters of the alphabet are used to specify the keyword

  • if the data specified for the password setting is any character other than 0 to 9 or A to F, or the specified data consists of other than four digits.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if any character other than a keyword is specified

  • if no comma is between the first and second keywords

  • if small letters of the alphabet are used to specify the keyword

  • if the data specified for the password setting is any character other than 0 to 9 or A to F, or the specified data consists of other than four digits.

Example

POU header

All input and output variables used for programming this function have been declared in the POU header.

The same POU header is used for all programming languages.

	VAR
		bSetEdge: BOOL:=FALSE;
		DT_value: DT:=DT#2010-06-30-11:15:00;
		bEno: BOOL:=FALSE;
	END_VAR

POU body

When ChangePassword turns on, the controller password is changed to "ABCD".

LD body

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
B(B_F,E_SET_RTC_DT!,Instance,20,1,28,5,,?DEN?DIN?AENO);
B(B_VARIN,,DT_value,18,3,20,5,);
B(B_CONTACT,,bSetEdge,7,2,9,4,R);
B(B_COIL,,bEno,37,2,39,4,);
L(1,3,7,3);
L(9,3,20,3);
L(28,3,37,3);
L(1,0,1,5);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY
NOTE

The values entered at s* will be right aligned automatically by the compiler.

Modified on: 2024-03-08Feedback on this pagePanasonic hotline