comport.write ile hex value nasıl yazılır
Forum kuralları
Forum kurallarını okuyup, uyunuz!
Forum kurallarını okuyup, uyunuz!
comport.write ile hex value nasıl yazılır
Tcomport komponentini kullanarak com-1 seri portuna hexadecimal 02 ve 03 değerini nasıl gönderebiliriz?
comporta hexadecimal değer gönderimi
evet daha öncede rs232 ye veri seri porta nasıl hexadecimal kod gönderebiliriz demiştik bunun bir cevabı şu şekildeymiş en nihayet göndermeyi başardım.
comport1.open;
comport1.writestr(chr($02)+chr($02)+chr($31)+chr($03));
burada comport1 e 02h 02h 31h ve 03h değerlerini gönderiş olduk vede 02 start bit ve 03 ise stop bit konumunda kullanıldılar.
comport1.open;
comport1.writestr(chr($02)+chr($02)+chr($31)+chr($03));
burada comport1 e 02h 02h 31h ve 03h değerlerini gönderiş olduk vede 02 start bit ve 03 ise stop bit konumunda kullanıldılar.