24 ioread% function – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 97

7Ć9
ESC [2K Erase all of the line, inclusive.
CLR_TO_ENDLINE% = 0
PRINT;CLRLINE$(CLR_TO_ENDLINE%); (Clears from
cursor to end of display line)ą
When using the CLRLINE$ function with the PRINT statement, a
semicolon should always be located in front of the function call to
tell BASIC not to put the string (generated by the function call) in a
zoned field (a field that is a multiple of 15 characters).
If the semicolon is not used, BASIC will pad the front of the escape
sequence with spaces, which will most likely not have the desired
effect: to move the cursor rather than to print something. Further
information about printing and zoned fields can be found in
PRINT/PRINT USING statements in section 6.8.
7.24
IOREAD% Function
The IOREAD% function is used to access I/O from foreign modules
that are byte accessible only. The function returns an integer value.
Format:
IOREAD%(option,address)
where:
option is an integer variable or expression that defines the type
of read operation to perform:
option 1 =
byte read
option 2 =
double byte read (address must be even)
(address) = MSB
(address + 1) = LSB
This option is used to read from foreign I/O
modules that only support an 8Ćbit data path.
option 3 =
word read
(address) = MSB
(address + 1) = LSB
The 16Ćbit word is read from the designated
address. This option reads data from modules
that support AutoMax addressing and data
conventions.
option 4 =
long word read
(address) = MSB
(address + 1) = next 8 bits
(address + 2) = next 8 bits
(address + 3) = LSB
address is a double integer variable or expression that contains the
address from where data is to be read; the address must be
>220000H.
See JĆ3649, JĆ3750 or J2Ć3045 for more information on accessing
foreign I/O.