Citect 2016 Winsock ASCII TCP

Hi all
I'm trying to develop communication from SCADA, Citect 2016, to 3-d party device.
The protocol is ASCII TCP. I cannot find a way to open Winsock in the SCADA with cicode (internal scripting language).
May be someone here can assist with this problem?
Thanks in advance!