
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
Hallo Ich habe folgendes Problem. Ich möchte am Eingang Port 4 eine Frequenz von 4hz mit der C Controll Mirco messen. Diese Freq Variable soll mir der Simulator anzeigen.Aber irgendwie Funktioniert es nicht. Hier das Programm Danke im Vorraus '-------------------------- '------ I/O PORTS --------- '-------------------------- define FREQ_IN port[4] '-------------------------- '---- SYSTEM MEMORY ------- '-------------------------- define a byte[1] define b byte[2] '-------------------------------------------------- '----------- SHOWING FREQUENCY RANGE ---------- '-------------------------------------------------- 'SET COUNTER GATE TIME ( 20ms UNITS )AND MAKE PORT INPUT #Zählerstand FREQ=200 if FREQ >2 then goto run b=1 goto Zählerstand #run a=5 end |
| Antwort schreiben |