
Il nome deve essere una stringa composta esclusivamente da caratteri
alfanumerici (0…9, A…Z e a…z). Non sono ammessi spazi o segni di
punteggiatura. La lunghezza massima di un nome non deve superare i
20 caratteri.
Se la password data è una stringa vuota, l’utente avrà accesso al
WebGate con qualsiasi stringa al posto della password (si noti che se
si utilizza la consolle, il comando “passwd=” va usato comunque).
Gli utenti possono modificare le informazioni di utenti che abbiano il
loro stesso livello di accesso o uno inferiore. Ad esempio, un
administrator (livelli da 200 a 249) può cambiare le informazioni dei
supervisor (livelli da 150 a 199), ma un supervisor non può cambiare
la password di un administrator.
Valore di default:
Stringa vuota (nessuna password richiesta)
Esempio consolle:
> UserPwd(3) = Hello
↵
> UserPwd(3)
↵
Hello
> UserPwd(4) =
↵
←
Stringa vuota: l’utente no
4 potrà accedere con qualsiasi password
> _
Var
Descrizione
Lettura
Scrittura
Salvato
Ottiene/imposta il valore di una
variabile di un dispositivo
√
Supervisor
×
Questa funzione visualizza o modifica una variabile di un’unità Carel
collegata all’interfaccia RS485.
Sintassi (lettura):
Var(<address>, <type>, <index>)
Dove <address> rappresenta l’indirizzo dell’unità (da “1” fino al valore
indicato dalla funzione “MaxDevs”),
<type>
il tipo di variabile in lettura. Può essere uno dei
seguenti valori:
“1“: digitale
“2“: analogico
“3“: intero
<index>
indice della variabile nell’unità
Valore restituito in lettura:
Viene restituito uno dei seguenti valori:
- il valore della variabile richiesta, se disponibile e se non si verificano
errori
- un messaggio di avvertimento se il valore non è disponibile, ad
esempio:
"Please wait, checking status!" o "variable not yet updated." se la
variabile non è stata ancora acquisita, "Unit OFF-LINE: unreliable
value!" se il dispositivo non è in linea
- un messaggio di errore se viene immesso un parametro errato
Sintassi (scrittura):
Var(<address>, <type>, <index>, <min>, <max>) =
<value>
Dove <address> rappresenta l’indirizzo dell’unità (da “1” fino al valore
indicato dalla funzione “MaxDevs”),,
<type>
tipo di variabile in scrittura. Può essere uno dei
seguenti valori:
“1“: digitale
“2“: analogico
“3“: intero
<index>
indice della variabile nell’unità
<min>
valore minimo ammesso. E’ richiesto per evitare una
configurazione errata del dispositivo quando si
utilizzano pagine HTML, dovuta ad errori involontari
dell’utente. Il valore minimo ammesso è indicato nel
manuale d’uso di ciascun dispositivo. Non utilizzate
mai un valore più basso, poiché potrebbe causare il
malfunzionamento dell’unità.
The password must be a string composed from alphanumeric characters
only (0…9, A…Z and a…z). No spacing or punctuation characters are
allowed. The maximum password length must not exceed 20 characters.
If the given password is an empty string, the user will access to
WebGate with any string in place of the password (is pointed out that
when using the console, the “passwd=” command must be used
anyway).
Please note that operators are only allowed to change information of
users with their same or lower access level. For example, an
administrator (level 200…249) can change supervisors information
(level 150…199), but a supervisor cannot change the password of any
administrator.
Default Value:
Empty string (no password required)
Console example:
> UserPwd(3) = Hello
↵
> UserPwd(3)
↵
Hello
> UserPwd(4) =
↵
←
Empty string: the user no 4
will enter with any password
> _
Var
Description
Read
Write
Saved
Get/set a device variable value
√
Supervisor
×
This function displays or changes a variable of a Carel unit connected
to the RS485 interface.
Syntax (read):
Var(<address>, <type>, <index>)
Where <address> represents the unit address (from “1” up to the
value indicated from the “MaxDevs” function),
<type>
is the type of variable to read. It can be one of the
following values:
“1“: digital
“2“: analog
“3“: integer
<index>
index of the variable in the unit
Returned value for read:
One of the following values is returned:
- value of the required variable if ready and no error occurred
- warning message if the value is not available, for example:
"Please wait, checking status!" or "variable not yet updated." if the
variable was not acquired yet, "Unit OFF-LINE: unreliable value!" if
the device is not online
- an error message if a bad parameter value is entered
Syntax (write):
Var(<address>, <type>, <index>, <min>, <max>) =
<value>
Where <address> represents the unit address (from “1” up to the
value indicated from the “MaxDevs” function),
<type>
is the type of variable to write. It can be one of the
following values:
“1“: digital
“2“: analog
“3“: integer
<index>
index of the variable in the unit
<min>
minimum value allowed. This is required, when
using HTML pages, to avoid device
misconfiguration of the device. The minimum value
allowed is indicated in the user manual of the
specific device. Don’t use a lower value, since this
may cause unit malfunction.
77
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003