Znaleziono 1 wynik

autor: djronin
05 maja 2018, 14:55
Forum: Mach 2 / 3 / 4 (ArtSoft software)
Temat: Przyciski
Odpowiedzi: 1
Odsłony: 943

Re: Przyciski

Przycisk aby było wiadomo że jest wciśnięty musi zmienić stan czegoś (jakiegoś parametru a najlepiej elementu typu LED aby operator widział że aktywny jest dany przycisk)
no więc jeśli masz 4 przyciski i cztery LEDy o numerach 1500-1503 to jako kod wykonywany do przycisków musisz wpisać:

'PRZYCISK -1-

SetUserLED(1500,1)
SetUserLED(1501,0)
SetUserLED(1502,0)
SetUserLED(1503,0)

'PRZYCISK -2-

SetUserLED(1500,0)
SetUserLED(1501,1)
SetUserLED(1502,0)
SetUserLED(1503,0)

'PRZYCISK -3-

SetUserLED(1500,0)
SetUserLED(1501,0)
SetUserLED(1502,1)
SetUserLED(1503,0)

'PRZYCISK -4-

SetUserLED(1500,0)
SetUserLED(1501,0)
SetUserLED(1502,0)
SetUserLED(1503,1)

Wróć do „Przyciski”