|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectftcomputing.JavaFish
Sources and objects are contained in javaFish.ZIP. umFish20Setup.EXE can be used to install the class files and the DLL's more comfortable. It contains also a tool : InterfacePanel to control the Interface values interactive.
Organisation:
Ulrich Müller, D-33100 Paderborn, Lange Wenne 18
Fon 05251/56873, Fax 05251/55709
eMail: UM@ftcomputing.de
Homepage: www.ftcomputing.de
Field Summary | |
boolean |
emergencyHalt
Abbruchwunsch angemeldet, wenn true ,
Defaultwert = false |
static int |
FT_ERROR
Fehlerwert FT_ERROR = 131071 ,
wenn Verbindung zum Interface fehlgeschlagen istError value, FT_ERROR = 131071 , if connection to
the interface failed
|
static int |
LEFT
Motor-Zustand LEFT = 1 |
static int |
OFF
Motor-Zustand OFF = 0 |
static int |
ON
Motor-Zustand ON = 1 |
static int |
RIGHT
Motor-Zustand RIGHT = 2 |
Constructor Summary | |
JavaFish()
Standard-Konstruktor bei nur einem Interface. Standard constructor, if only one interface |
|
JavaFish(int ftInstanz)
Konstruktor, nur erforderlichen bei mehreren Interfaces. Constructor, if more than one interface in an application |
Method Summary | |
void |
clearCounters()
Löschen aller Zähler, d.h. jeder Zähler wird auf den Wert 0 gesetzt. Clear all Counters ( = 0 ) |
void |
clearMotors()
Ausschalten aller M-Ausgänge Switch off all M-Outputs |
int |
closeInterface()
Schließen der Verbindung zum Interface. Close the connection to the interface |
boolean |
finish()
Prüft, ob die Escape-Taste gedrückt ist. Looks for cancel request (ESC Key only) |
boolean |
finish(int inputNr)
Prüft, ob ein bestimmter digitaler E-Eingang geschlossen oder die Escape-Taste gedrückt ist. Looks for cancel request (ESC Key, E-Input) |
int |
getAnalog(int analogNr)
Liest einen Analog-Eingang aus. Read Analog-Input EX(0) / EY(1) |
int |
getCounter(int counterNr)
Auslesen eines aktuellen Zähler-Wertes Read a single counter value, counter 1 belongs to E1 ... |
boolean |
getInput(int inputNr)
Liest eine Digital-Eingang E1 bis E8 (E9 bis E16) aus. Read one E-Input E1-E8(E16) |
int |
getInputs()
Auslesen aller digitalen E-Eingänge E1 bis E16. Read all E-Inputs E1-E8(E16), E1 = right bit 00000001 (E1 on) |
int |
getOutputs()
Auslesen aller M-Ausgänge M1 bis M8. Read all M-Outputs M1-M4(M8) |
int |
getVersion()
Liefert die Version der eingesetzten javaFish.DLL zurück.Version of javaFish.DLL |
int |
openInterface(java.lang.String portName)
Herstellen der Verbindung zum Interface. Opening a connection to the interface |
void |
pause(int milliSec)
Anhalten des Programmablaufs um n MillisekundenStop the program flow for n milliseconds |
void |
setAnalogScan(boolean onOff)
Legt fest, ob die Analog-Eingänge EX und EY gescannt werden sollen. true : Analog-Inputs (EX(0) and EY(1) will be scanned default : false |
void |
setCounter(int counterNr,
int counterValue)
Setzen eines Zählers auf einen Anfangswert. Write a single counter to a start value (counter is decrremented). Counter 1 belongs to E1 ... Can be changed to beginning with 0 by changing constan 12 to 11 |
int |
setLamp(int lampNr,
boolean onOff)
Schalten der M-Ausgänge M1 bis M4 (M5 bis M8) in "Lampenschaltung" (ein Bein an Erde). Switch the M-Output in "lamp-wiring" (one pin to ground, one to M-Output) 1-8(16). |
int |
setMotor(int motorNr,
int direction)
Schalten der M-Ausgänge M1 bis M4 (M5 bis M8). Switch the M-Outputs M1-M4(M8), (1-4(8)) Left(Links) turn = 1, Right(Rechts) = 2, On(Ein) = 1, Off(Aus) = 0 |
void |
setOutputs(int m)
Setzen aller M-Ausgänge M1 bis M8. Write all M-Outputs M1-M4(M8), M1 right bits (00000010 : M1 right) |
void |
setPollInterval(int pollInterval)
legt die Zeit in Millsisekunden zwischen zwei Abfragen des Interface fest. Time interval (msecs) for polling the interface |
void |
setSlave(boolean onOff)
Legt fest, ob am Intelligenten Interface ein Erweiterungsmodul angeschlossen ist. true : an Extension Module is connected to the Intellingent Interface |
void |
showStatus()
Gibt die aktuellen Daten auf die Konsole aus. Consol output of the actual state values of the interface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO FURTHER ENGLISH TEXT : THERE is NOTHING additional to say
Field Detail |
public static final int OFF
OFF = 0
public static final int ON
ON = 1
public static final int LEFT
LEFT = 1
public static final int RIGHT
RIGHT = 2
public static final int FT_ERROR
FT_ERROR = 131071
,
wenn Verbindung zum Interface fehlgeschlagen ist
public boolean emergencyHalt
true
,
Defaultwert = false
Constructor Detail |
public JavaFish()
public JavaFish(int ftInstanz)
ftInstanz
- die Interface-Nummer (0 bis 3)Method Detail |
public void setAnalogScan(boolean onOff)
onOff
- true für ja, false (default) für neinpublic void setSlave(boolean onOff)
onOff
- true für ja, false (default) für nein
public int openInterface(java.lang.String portName)
portName
- LPT, LPT1 bis LPT3, COM1 bis COM8
FT_ERROR
public int closeInterface()
public int getVersion()
javaFish.DLL
zurück.
public void showStatus()
public int setMotor(int motorNr, int direction)
motorNr
- Motor-Nummer M1 = 1 bis M4 = 4 (ggf. bis M8 = 8)direction
- Motor-Zustand
(OFF
, ON
, LEFT
, RIGHT
)
getOutputs()
public void clearMotors()
public int setLamp(int lampNr, boolean onOff)
lampNr
- Nummer des M-Ausgangs M1 = 1 bis M4 = 4 (ggf. bis M8 = 8)onOff
- true für ein, für aus
getOutputs()
public int getAnalog(int analogNr)
analogNr
- Nummer des Analog-Eingangs EX = 0, EY = 1
public boolean getInput(int inputNr)
inputNr
- Digital-Eingang E1 = 1 bis E8 = 8 (ggf. bis E16 = 16)
public int getOutputs()
public void setOutputs(int m)
m
- Wert aller M-Ausgänge,public int getInputs()
public void clearCounters()
public void setCounter(int counterNr, int counterValue)
counterNr
- Nummer des Zählers (0 bis 8, ggf. bis 16)counterValue
- Anfangswertpublic int getCounter(int counterNr)
counterNr
- Zähler-Nummer (0 bis 8, ggf. bis 16)
public void pause(int milliSec)
n
Millisekunden
milliSec
- Dauer der Pause in Millisekundenpublic boolean finish(int inputNr)
inputNr
- Nummer der E-Eingangs (E1 = 1 bis E8 = 8 ggf. bis E16 = 16)
false
public boolean finish()
false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |