Układam programik i mam problem nr35
Kod: Zaznacz cały
If R_in = 255 Then
R_in = 47
End If * to działa
If Pind 1 = 0 Then * a to nie
R_in = R_in + 1
Waitms 50
If Pind. 1 = 0 Then * i to też nie
R_in = R_in + 10
End If
End If
O co chodzi?
Kod: Zaznacz cały
If R_in = 255 Then
R_in = 47
End If * to działa
If Pind 1 = 0 Then * a to nie
R_in = R_in + 1
Waitms 50
If Pind. 1 = 0 Then * i to też nie
R_in = R_in + 10
End If
End If
Kod: Zaznacz cały
Goto Ruszaj
Pisz:
R_in = R_fakt
Writeeeprom R_in , 5
Return
Ruszaj:
R_fakt = 47
Do
Readeeprom R_in , 5
If R_in = 255 Then
Gosub Pisz
If R_in <> R_fakt Then
Gosub Pisz
End If
End IfKod: Zaznacz cały
If (Pind.1 = 0) Then
Kod: Zaznacz cały
Channel1 = 0 ' napięcie wyjściowe
Channel2 = 1 'pobór prądu - spadek na oporze
Channel3 = 2 'ograniczenie prądowe
For A = 1 To 3 Step 1
V(a) = Getadc(channela)
Next AKod: Zaznacz cały
Channel(1) = 0
Channel(2) = 1
Channel(3) = 2
For A = 1 To 3 Step 1
V(a) = Getadc(channel(a))
Next A