FLOAT
result = FLOAT (integer expression%
Syntax
This function converts an integer variable into a floating-point variable.
Example
error% = 123
result = error% / 1000
This produces an output of [result = 0] since 123 / 1000 = 0 in integer
arithmetic. To produce the correct answer, one of the operands need to be
converted to floating-point.
error% = 123
result = FLOAT(error%) / 1000
This produces the correct answer: result = 0.123
See also
INT
GETCHAR
Syntax
result% = GETCHAR
This is a
RS485
communications port.
The returned value is – – 1 1 if no characters have been received in the buffer,
otherwise the value is the
See also
PUTCHAR
GETKEY
Syntax
result% = GETKEY
This is a
RS232
communications port. This function can be used only when Toolkit
PC
communications are disabled (see Disable Toolkit communications in
Chapter 10, Parameters).
This function can only be used if Dumb-terminal Mode is enabled (see Enable
dumb-terminal mode in Chapter 10 Parameters).
The returned value is the
character, the value is – – 1 1 .
The data format of the
19200 baud, 8 data bits, No parity, 1 start bit, 1 stop bit.
See also
PUTKEY
UD70
Issue code: 70nu2
result = 0.123
instruction.
port function which reads in a character from the
code for the character read in.
ASCII
instruction.
port function which reads in a character from the
code of the character read in. If there is no
ASCII
port is fixed as follows:
RS232
instruction.
RS485
RS232
Reference
7-13
Need help?
Do you have a question about the UD70 and is the answer not in the manual?
Questions and answers