LinuxCNC Documentation

SYNOPSIS

loadrt opto_ac5 [portconfig0=0xN] [portconfig1=0xN]

BESCHREIBUNG

Diese Pins und Parameter werden durch das Echtzeitmodul opto_ac5 erstellt. Die Variablen portconfig0 und portconfig1 werden zur Konfiguration der beiden Ports jeder Karte verwendet. Die ersten 24 Bits einer 32-Bit-Zahl stellen die 24 E/A-Punkte jedes Ports dar. Das niedrigste (ganz rechte) Bit wäre HAL-Pin 0, der Pin 47 des Header-Anschlusses ist. Das nächste Bit auf der linken Seite wäre dann HAL-Pin 1, Stiftleiste Pin 45 usw., schließlich wäre Bit 24 HAL-Pin 23, Stiftleiste Pin 1. Mit "1"-repräsentierte Bits stellen Ausgangspunkte dar. Kanal 0..11 als Eingänge und 12..23 als Ausgänge würden also durch (binär) 111111111111000000000000 dargestellt, was hexadezimal 0xfff000 entspricht. Das ist die Zahl, die Sie verwenden würden, z.B.

loadrt opto_ac5 portconfig0=0xfff000

Wenn keine portconfig-Variable angegeben wird, beträgt die Standardkonfiguration 12 Eingänge und 12 Ausgänge.

Es werden bis zu 4 Karten unterstützt. Die Boards werden von 0 an nummeriert.

Portnummer kann 0 oder 1 sein. Port 0 ist der Kartenhalterung am nächsten.

PINS

opto-ac5.BOARDNUMBER.portPORTNUMBER.in-PINNUMBER OUT bool

+

opto-ac5.BOARDNUMBER.portPORTNUMBER.in-PINNUMBER-not OUT bool

Connect a HAL bool signal to this pin to read an i/o point from the card. The PINNUMBER represents the position in the relay rack. E.g., PINNUMBER 0 is position 0 in a opto22 relay rack and would be pin 47 on the 50 pin header connector. The -in pin is TRUE when the input is on (the line is pulled LOW). The -not pin is always the inverse of the -in pin.

opto-ac5.BOARDNUMBER.portPORTNUMBER.out-PINNUMBER IN bool

Connect a HAL bool signal to this pin to write to an i/o point of the card. The PINNUMBER represents the position in the relay rack. E.g., PINNUMBER 23 is position 23 in a opto22 relay rack and would be pin 1 on the 50 pin header connector. TRUE turns the output on (the line is driven LOW).

opto-ac5.BOARDNUMBER.ledNUMBER IN bool

Schaltet eine der LEDS an Bord ein/aus. Die LEDS sind mit 0 bis 3 nummeriert.

PARAMETER

opto-ac5.BOARDNUMBER.portPORTNUMBER.out-PINNUMBER-invert RW bool

When TRUE, invert the meaning of the corresponding -out pin so that TRUE turns the output off and FALSE turns it on.

FUNKTIONEN

opto-ac5.BOARDNUMBER.digital-read

Fügen Sie dies zu einem Thema hinzu, um alle Beiträge zu lesen.

opto-ac5.BOARDNUMBER.digital-write

Fügen Sie dies zu einem Thread hinzu, um alle Ausgangspunkte und LEDS zu schreiben.

BUGS

Alle Karten werden mit den gleichen Anschlusskonfigurationen wie die erste Karte geladen.

SIEHE AUCH