Denso RC5 Especificações Página 383

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 692
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 382
Chapter 13 Input/Output Control Statements
13-1
13.1 I/O Port
IN (Statement)[Conforms to SLIM]
Function
Reads data from the I/O port designated by an I/O variable.
Format
IN <Arithmetic variable name> = <I/O variable>
Explanation
This statement assigns the I/O port data designated by <I/O variable> to the
variable designated by <Arithmetic variable name>.
The <I/O variable> is declared using a DEFIO statement or an I/O type
variable.
Related Terms
OUT, 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 the Li1 data from the port declared in samp1.
OUT IO[240] = Li2 'Outputs the Li2 data from port 240.
Vista de página 382
1 2 ... 378 379 380 381 382 383 384 385 386 387 388 ... 691 692

Comentários a estes Manuais

Sem comentários