Question:
Is it possible to connect and exchange data with a Telnet server via E3?
Solution:
Yes, it is. To do so, use ASCII driver and create two tags with the following settings:
- WriteTag -> N1 = 5, N2 = 0, N3 = 0, N4 = 0
- ReadTag -> N1 = 2, N2 = 1, N3 = 0, N4 = 0
Then, at Driver’s Extra Settings, configure fields TX and RX on List of Commands as TX:%s e RX:%s. After that, to perform the communication, you must write the following script:
Application.GetObject(“Drv_AscII.Write”).Writeex(“administrator” & chr(13))
Application.GetObject(“Drv_AscII.Write”).Writeex(“administrator” & chr(13))