Magnavox W-10CR Installationsanleitung Seite 131

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 322
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 130
Programming Commands 115
IN I/O Function
ACTION: Returns the state’s of the specified digital I/O inputs.
PROGRAM SYNTAX: IN(bnn) - used in an expression
IN(bnn,len) - used in an expression
REMARKS: bnn specifies the I/O point terminal.
board 1 board 2 board 3 board 4
101-124 201-224 302-324 401-424
len is the number of I/O points to return (1-24).
A true (1) is returned if the state of the input is active. Otherwise, a false
(0) is returned.
IN(bnn) - used in an expression
Returns a single input state.
IN(bnn,len) - used in an expression
Returns a number corresponding to the states of multiple inputs, binary
weighting of inputs bnn to (bnn+len-1). IN(bnn,len) is equivalent to:
IN(bnn) + (2*(bnn+1) + (4*(bnn+2) + ... +(2
len-1
*(bnn+len-1)
EXAMPLES: x=IN(207)
The state of board 2 input 7 is returned to variable x.
x=IN(207,3)
The sum of the input states from board 2 inputs 7-9 is returned to x.
The value returned will be: IN(207) + (2*IN(208) + (4*IN(209).
INCHAR I/O Function
ACTION: Return the ASCII code of a character from the designated serial port.
PROGRAM SYNTAX: INCHAR(n) - used in an expression
REMARKS: The n specifies the serial port (1 or 2). Port 1 is the Host port and Port
2 is the Auxiliary port.
If no character has been received by the designated serial port a 0 is
returned. Otherwise, the ASCII code value equivalent is returned.
EXAMPLES: DO
x=INCHAR(2)
LOOP UNTIL x > 0 ‘ wait for Auxiliary port character.
A$=A$+chr$(x) ‘ add character to A$
Seitenansicht 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 321 322

Kommentare zu diesen Handbüchern

Keine Kommentare