Remote Processing Coorporation RPC-320 Dokumentacja Strona 94

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 186
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 93
Commands - 64
LINE
Process Function
SYNTAX: a = LINE(terminal #)
PURPOSE: To return the status of an input on a STB-26 terminal board.
REMARKS: The terminal # has a one-to-one correspondence with the terminals on the STB-26 terminal board.
This feature eases documentation and troubleshooting. Refer to Card Manual for terminal number
range.
The LINE function is similar to the BIT function in that individual I/O bits or channels can be read.
It differs in that it is used specifically with the STB-26 terminal boards and it executes much faster.
RELATED: LINE statement
EXAMPLE: 10 OUT 0,1
20 PRINT LINE(119)
RUN
0
In this example the bit 0 of the port at address 0 was set high. Since the LINE function inverts the
result, a “0” was returned. This would mean that there was not input signal at an opto module in this
location.
ERROR: <Data negative> - terminal #
Przeglądanie stron 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 185 186

Komentarze do niniejszej Instrukcji

Brak uwag