C Control I Micro Chip 5 Vdc Inputs / outputs 1 x digital I/O, 1 x digital input, 4 x digital I/O or analog input Progra 198275 Hoja De Datos

Los códigos de productos
198275
Descargar
Página de 40
32
GET variable
wartet auf ein seriell empfangenes Byte und speichert den Wert dann in der angege-
benen Variablen.
Beachten Sie bitte, dass GET endlos wartet, wenn kein Byte empfangen wird. Außer-
dem wird während der Wartezeit die Systemuhr RTC nicht weitergestellt.
• Weitere Schnittstellenbefehle und -funktionen
BAUD 9600
BAUD 19200
schaltet beispielsweise Sender und Empfänger auf die entsprechende Rate um und
ist einmalig zur Initialisierung der seriellen Schnittstelle erforderlich. 
Die weiteren Schnittstellenparameter - 8 Datenbits, kein Paritätsbit, 1 Stopbit –sind
fest und können nicht geändert werden. 
ACHTUNG:
Bedingt durch den RC-Oszillator ist die tatsächliche Baudrate grundsätzlich unge-
nau. Der Baudratengenerator wird zwar während dem BASIC-Download kalibriert,
aber die Genauigkeit ist u.U. nicht ausreichend für den Betrieb mit 19200 Baud (vor
allem wenn der RC-Oszillator driftet, oder die Betriebsspannung schwankt) sodass
eine Kalibrierung des Oszillators nötig ist.
Das Programm TOOL_19200_CALIBRATE.BAS hilft Ihnen dabei.
Portbefehle
• der Umschaltbefehl TOG
Prinzipiell erfolgt der Zugriff auf die Ports des Steuercomputers wie auf Variablen.
Um einen Digitalport einzuschalten, schreibt man
P=l und P=O ,um ihn auszuschalten.
Um den Port umzuschalten (EIN nach AUS; AUS nach EIN), kann man schreiben
P = NOT P
oder den Befehl
TOG P
49
Now you can load the program into C-CONTROL. A step-by-step explanation is con-
tained in the chapter "Commissioning".
Once the download is complete, the yellow LED is deactivated and the user program
starts.
If you want to start an application that is already programmed in the controller, slide
the slider to the position ON without pressing the button. 
The program starts once you apply the operating voltage (power On reset), there is
no reset button.
ATTENTION!
Never use Port 3 in applications where it is not sure that Port 3 is log. high when
applying the operating voltage. Otherwise, the download mode is active and
the user program does not run.
Display Elements
You can use the available display elements at wish in the user program.  
The LEDs are connected to the corresponding ports according to their respective
designation.
meaning L3 is connected to Port 3.
When Ports 1 and 2 are not activated in their program (INPUT) or the MICRO waits
for a download, the corresponding LEDs are slightly lit because they are supplied
with power via the RS 232 level converter.  
There is a poti for trying our the AD converter, which provides a variable voltage to
the AD 6
. The voltage increases when you turn the poti counter-clockwise. A beeper enables
acoustic signals.
Jumper for Configuration
So that you are not tied to the available display elements, you can separate these. 
Then you can connect your own application to the post plug.
JUMPER JP1
JP1 enables the operation of the beeper together with the variable input voltage on
Port6/AD6.
An example program installed into the directory "BASIC" shows you how the ports
can be used during a program with different properties.
For operating the beeper together with the variable input voltage on Port6, the
jumper must be put onto the position 1-2.
If you want to forego this and instead have an additional LED available, put the
jumper onto position 2-3.