L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 460

Advertising
background image

L-force | PLC Designer

The Resources

458

DMS 3.2 EN 02/2011 TD29



Command

Description

setpwd

Set password on controller; Syntax: setpwd <password> [level],
e.g. "setpwd abcde 0"

<level> can be "0" (default) just valid concerning logins from the programming

system, or "1" valid for all applications

delpwd

Delete password on PLC.

Please regard:

• The first word of the command sequence entered is interpreted as keyword

(<KEYWORD>).

• If the first word of the command entry is not recognized by the controller, the

response 'Keyword not found' will appear in the result window.

• If a keyword is preceded by a „?<SPACE>" (e.g. „? mem"), the ini-file will be

searched for the existence of a help section to this keyword. If one is available,

nothing is sent to the controller, but only the help text is displayed in the output
data window.

8.13.3

Use of macros during the command entry in PLC-Browser

If a command associated with a macro is entered in the command line, this is
expanded before it is sent to the controller. Then the response in the result window
appears in a similarly expanded form.

The entry syntax is: <KEYWORD><macro>

<KEYWORD> is the command.

Macros are:

%P<NAME>

If NAME is a POU-name, the expression is expanded to <POU-Index>, otherwise there is
no alteration

%V<NAME>

If NAME is a variable name, the expression is expanded to #<INDEX>:<OFFSET>,

otherwise there is no alteration (this notation #<INDEX>:<OFFSET> is interpreted by the
controller as a memory address)

%T<NAME>

If NAME is a variable name, the expression is expanded to <VARIABLENTYP>, otherwise
there is no alteration.

%S<NAME>

If NAME is a variable name, the expression is expanded to <SIZEOF(VAR)>, otherwise
there is no alteration.

The % character is ignored if the escape symbol \ (Backslash) is placed in front. The
escape symbol as such is only transmitted if written \\.

Advertising