Apr 19th, 2024, 10:40am
Welcome, Guest. Please Login or Register.
Pages: 1  Reply Reply  Notify of replies Notify of replies  Print Print
   Author  Topic: Serial Port Control Write  (Read 3818 times)
virusz
FabulaTech Forum Newbie
*



View Profile         
Posts: 1
Serial Port Control Write
« on: Nov 13th, 2015, 10:49pm »
Quote Quote  Modify Modify

 
 Hello, in the past i downloaded and programmed with Serial Port Control component in delphi7, i was succesfull, now i'm trying to write a program to send signals (decimal 255 1 1 or hex FF 01 01) to port, but i dont know how to do this, i remember i'm used something to convert hex to string or something like this, if you can help me, i'm thankful.
 
sorry for my english, i hope you understand what i want.
« Last Edit: Nov 13th, 2015, 10:49pm by virusz » IP Logged
Sergey_Jarovski
FabulaTech Forum Moderator
FabulaTech Forum God
*****



View Profile   WWW         
Gender: male Posts: 556
Re: Serial Port Control Write
« Reply #1 on: Nov 16th, 2015, 3:36am »
Quote Quote  Modify Modify

Hi!
You can look at this resource:
http://www.serial-port-control.com/serial-port-control-api/delphi-Control-method-WriteArray.html
In the "Code Example" (where the "DataToWrite[i] := i;") you can write something like this:
DataToWrite: array[1..3] of byte;
DataToWrite[0] := 255;
DataToWrite[1] := 1;
DataToWrite[2] := 1;
FTSPCControl1.WriteArray(DataToWrite);
IP Logged

Sergey Jarovski

FabulaTech
===================
http://www.fabulatech.com
Pages: 1  Reply Reply  Notify of replies Notify of replies  Print Print

« Previous topic | Next topic »
Online Talk to our
support team or
sales department.