Denso RC5 Dokumentacja Strona 384

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 692
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 383
13-2
OUT (Statement) [Conforms to SLIM]
Function
Outputs data to the I/O port designated by an I/O variable.
Format
OUT <I/O variable> = <Output data>
Explanation
This statement outputs the value of <Output data> to the port address
designated by <I/O variable>.
<I/O variable> is declared using a DEFIO statement or I/O type variable.
Related Terms
IN, DEFIO
Example
DEFINT Li1, Li2
DEFIO samp1 = INTEGER, 220 'Declares samp1 as an INTEGER type I/O variable
'beginning at port 220.
IN Li1 = samp1 'Assigns the samp1 data to Li1.
IN Li2 = IO[240] 'Assigns the port 240 data to Li2.
OUT samp1 = Li1
'Outputs theLi1 data from the port declared in samp1.
OUT IO[240] = Li2 'Outputs the Li2 data from port 240.
Przeglądanie stron 383
1 2 ... 379 380 381 382 383 384 385 386 387 388 389 ... 691 692

Komentarze do niniejszej Instrukcji

Brak uwag