
Esempio consolle:
> IPAddress=192.168.0.200
↵
IP value updated!
> IPAddress
↵
192.168.0.200
> _
IsSelBaudrate232
Descrizione
Lettura
Scrittura
Salvato
Restituisce una stringa specifica se il
baudrate attuale corrisponde al
parametro dato
√
×
×
Questa funzione restituisce un valore a seconda della corrispondenza
del parametro dato con il valore attuale del baudrate RS232. E’ utile in
combinazione con le liste di selezione.
Sintassi:
IsSelBaudrate232(<expression>)
<expression>
rappresenta il baudrate da comparare.
Valore restituito:
• Stringa vuota se il baudrate non corrisponde, oppure
• selected se il baudrate è lo stesso.
Esempio consolle:
> Baudrate232=19200
↵
> IsSelBaudrate232(2400)
↵
> IsSelBaudrate232(19200)
↵
Selected
> _
Esempio HTML:
IsSelBaudrate485
Descrizione
Lettura
Scrittura
Salvato
Restituisce una stringa specifica se il
baudrate attuale corrisponde al
parametro dato
√
×
×
Questa funzione restituisce un valore a seconda della corrispondenza
del parametro dato con il valore attuale del baudrate RS485. E’ utile in
combinazione con le liste di selezione.
Sintassi:
IsSelBaudrate485(<expression>)
<expression>
rappresenta il baudrate da comparare.
Valore restituito:
• Stringa vuota se il baudrate non corrisponde, oppure
• selected se il baudrate è lo stesso.
Esempio consolle:
> Baudrate485=19200
↵
> IsSelBaudrate485(2400)
↵
> IsSelBaudrate485(19200)
↵
Selected
> _
Console example:
> IPAddress=192.168.0.200
↵
IP value updated!
> IPAddress
↵
192.168.0.200
> _
IsSelBaudrate232
Description
Read
Write
Saved
Return a specific string when the
current baudrate match the given
parameter
√
×
×
This function returns a value depending on the match of the given
parameter with the current RS232 baudrate value. It is useful in
combination with drop-down selection lists.
Syntax:
IsSelBaudrate232(<expression>)
<expression>
represents the baudrate to compare with.
Returned value:
• Empty string if the baudrate doesn’t match, or
• selected if the baudrate is the same.
Console example:
> Baudrate232=19200
↵
> IsSelBaudrate232(2400)
↵
> IsSelBaudrate232(19200)
↵
Selected
> _
HTML example:
IsSelBaudrate485
Description
Read
Write
Saved
Return a specific string when the
current baudrate match the given
parameter
√
×
×
This function returns a value depending on the match of the given
parameter with the current RS485 baudrate value. It is useful in
combination with drop-down selection lists.
Syntax:
IsSelBaudrate485(<expression>)
<expression>
represents the baudrate to compare with.
Returned value:
• Empty string if the baudrate doesn’t match, or
• selected if the baudrate is the same.
Console example:
> Baudrate485=19200
↵
> IsSelBaudrate485(2400)
↵
> IsSelBaudrate485(19200)
↵
Selected
> _
61
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003
<select name="select3" size="1">
<option value="?script:baudrate232=1200" <%IsSelBaudrate232(1200)%>>1200</option>
<option value="?script:baudrate232=2400" <%IsSelBaudrate232(2400)%>>2400</option>
<option value="?script:baudrate232=4800" <%IsSelBaudrate232(4800)%>>4800</option>
<option value="?script:baudrate232=9600" <%IsSelBaudrate232(9600)%>>9600</option>
<option value="?script:baudrate232=19200" <%IsSelBaudrate232(19200)%>>19200</option>
<option value="?script:baudrate232=38400" <%IsSelBaudrate232(38400)%>>38400</option>
</select>
risultato grafico
graphical result