
Esempio consolle:
> Dev(1)
↵
Low-Level Unit ON-LINE: Type code 10
> _
DevInfo
Descrizione
Lettura
Scrittura
Salvato
Visualizza informazioni estensive su
un dispositivo
√
×
×
Restituisce un rapporto completo sullo stato di un dispositivo Carel
collegato.
Sintassi:
DevInfo(<address>)
<address> rappresenta l’indirizzo fisico dell’unità desiderata.
Se questo valore è minore di ‘1’ o maggiore del valore
restituito dalla funzione “MaxDevs”, il WebGate invia un
messaggio di avvertimento.
Valore restituito:
Le informazioni restituite possono essere utili per
identificare un dispositivo o per risolvere i problemi di una connessione
di rete non ideale. Vedi anche la funzione “Dev” per la descrizione dei
“codici tipo”
Esempio consolle:
> DevInfo(1)
↵
Low-Level Unit ON-LINE: Type code 10
Forcing by master to read all variables completed.
Software Release 13
No answer counter 0
CheckSum error counter 0
Timeout counter 0
Software release min.: 13
Software release max.: 13
> _
Eval
Descrizione
Lettura
Scrittura
Salvato
Elabora un’espressione numerica
√
×
×
Questa funzione elabora un’espressione aritmetica e ne restituisce il
risultato. Può essere utile nella realizzazione di pagine HTML.
Sintassi:
Eval(<expression>)
<expression> Le espressioni aritmetiche vengono spiegate al capitolo
Espressioni, Registri e Funzioni: queste possono
essere numeri, registri o una combinazione di entrambi
Valore restituito:
Il risultato numerico delle operazioni comprese
nell’espressione.
Esempio consolle:
> Set(Address)=7
↵
> Eval(Address – 1)
↵
6
> Set(Index)=2
↵
←
NON inserire spazi qui
> Eval(Index – A 1)
↵
3
> _
Console example:
> Dev(1)
↵
Low-Level Unit ON-LINE: Type code 10
> _
DevInfo
Description
Read
Write
Saved
Get extended information about
a device
√
×
×
Returns a complete status report of a connected Carel device.
Syntax:
DevInfo(<address>)
<address> represents the physical address of the unit of interest.
If this value if less than ‘1’ or greater than the value
returned from the “MaxDevs” function, WebGate returns a
warning message.
Returned Value:
The information returned can be useful to identify a
device or to debug network conections that seems to be poor. Please
refer to “Dev” function for a description of “type codes”
Console example:
> DevInfo(1)
↵
Low-Level Unit ON-LINE: Type code 10
Forcing by master to read all variables completed.
Software Release 13
No answer counter 0
CheckSum error counter 0
Timeout counter 0
Software release min.: 13
Software release max.: 13
> _
Eval
Description
Read
Write
Saved
Evaluate a numerical expression
√
×
×
This function evaluates an arithmetic expression and returns the result.
It may prove useful when creating HTML pages.
Syntax:
Eval(<expression>)
<expression> Arithmetic expressions are explained in About
Expressions, Registers and Functions: they may be
numbers, registers, or a combination of the two
Returned Value:
Numerical result of the operations implied in the
expression.
Console example:
> Set(Address)=7
↵
> Eval(Address – 1)
↵
6
> Set(Index)=2
↵
←
DO NOT insert blanks here
> Eval(Index – A 1)
↵
3
> _
57
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003