TCP Driver

Hi Gents,

I have connected a Vlinx RS232 to Ethernet Server to Ignition.
I can get the Serial Data string when i set the driver up to be of Message type Character Based.

It seems that i can only use the keyboard characters as a delimiter here.

What i require here is the ASCII Hex value for line Feed (CR = 0xD(Hex)).

How can i get the TCP Driver to use the CR Carriage Retrun instead of normal characters.

Thanks for the help guys.
BTW this is used to connect a Weighing Scale to the system.

Using \r should give you a carriage return.

The supported special characters supported as delimiters are:

\r  Carriage-return
\n  Line-feed
\t  Tab
\f  Form-feed

This is somewhat arbitrary so if somebody needs something else added we probably can.

1 Like

Hi Gents,

Is it possible to make the TCP IP drivers read write?
Even have a check box to make it writeable as well.
Would be very usefull for:

  1. Using a Serial Ethernet converter one could write a bit of fancy scripting to write commands back to scales etc.
  2. Custom RS 232 Equipment that require handshake commands etc
    Obviously i mean ASCII protocoll only.

Regards
Sascha

[quote=“info@focus-eng.com”]Hi Gents,

Is it possible to make the TCP IP drivers read write?
Even have a check box to make it writeable as well.
Would be very usefull for:

  1. Using a Serial Ethernet converter one could write a bit of fancy scripting to write commands back to scales etc.
  2. Custom RS 232 Equipment that require handshake commands etc
    Obviously i mean ASCII protocoll only.

Regards
Sascha[/quote]

There are plans to add a writable tag to the driver that sends any values written to it over the TCP connection.

Would this be enough to get what you need done?

Hi Kevin,
I presume so, so long it arrives in the Ethernet to RS232 converter and it gets sent out to the port in ASCII format.

P.S: if you have a beta version of this i wouldn’t mind doing a quick test on it.

Regards
Sascha

I’ll let you have a beta version as soon as I actually get a chance to add the feature :wink:

Can I use multiple by entering like {\n,\r} ?

If you mean something like \r\n being the delimiter, yes that should work. But there’s no syntax or functionality for allowing the logical OR of different delimiters.