Remote Processing Coorporation RPC-320 Especificações Página 39

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 186
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 38
Commands - 9
BIT
Process Function
SYNTAX: n = BIT(I/O address,bit)
PURPOSE: To read a specified bit at a specified I/O address.
REMARKS: This function returns a “1” if the bit is high and a “0” if it is low.
This function will operate only with I/O addresses, not memory addresses.
RELATED: BIT statement, INP, ON BIT, OUT
EXAMPLE: 10 OUT &10,209
15 FOR X = 0 TO 7
20 PRINT BIT(&10,X) ;
30 NEXT : PRINT
RUN
1 1 0 1 0 0 0 1
ERROR: <Data negative > – for I/O address, bit
<Data out of range > – if bit > 7
<Data > 65,535> – for I/O address
Vista de página 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 185 186

Comentários a estes Manuais

Sem comentários