Remote-processing BASIC for the CX-10 Modbus User Manual Page 31

  • Download
  • Add to my manuals
  • Print
  • Page
    / 84
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 30
BASIC PROGRAMMING GUIDE
2-22
GET
Syntax: A = GET
A = GET(n)
Where:
N = com port number 0, 1, 2, 3 See card for specifics
Function: Gets character from buffer.
Mode: Run
Use: A = GET(n)
DESCRIPTION
GET is similar to INKEY$ in other Basic languages. GET returns the ASCII value of the character rather
than the string. This feature makes it useful when receiving binary information.
When no characters are in the buffer, a value of 256 is returned.
To receive a control-C value (3), set bit 1, address 26H.
DBY(38) = DBY(38) .OR. 1
This disables program breaks when a <Ctrl-C> is received.
GET can extract characters from serial and keypad ports. Not all boards support keypads and multiple serial
ports.
RELATED
INPUT
Page view 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 83 84

Comments to this Manuals

No comments