text file STX, ETX

vishalkbhatt

Member
Joined
Oct 7, 2010
Messages
12
Programming Experience
Beginner
Hi friends, I am working on an application in which I have to send a data of a text file to a PLC machine. Now the convention is that
send start of file (0x02)
send data bytes (file data)
send end of file (0x03)

Now I dont have any idea that how to send the STX and ETX before and after the file data respectively. The PLC should receive them as 02 and 03 i.e. in their Hex values. If there is any ready function like vbCrLf for STX and ETX or any other way to achieve this then please reply . Thank you
 
Back
Top