tmithun
Member
Hi, all ),
I'm very new to CitectSCADA and Cicode programming, however have good programming experience in most major programming languages (Java, py, js, etc); so please excuse my ignorance .
What I'm trying to do is send a string message to another application running on the same machine, hopefully through sockets.
I have a java application running on my Windows 10 that listens on a particular port for TCP/IP socket communication. I am running the Cicode script running on my local CitectSCADA V7.20 very similar to the ComOpen (https://johnwiltshire.com/citect-help/Subsystems/CicodeReferenceCitectHTML/Content/ComOpen.html) docs, after setting up a TCP board (config screenshot below) as per suggestions here.
I am getting error 257 on the line ComWrite (have attached script file), and have tried to see if any variables are out of range but am unable to figure out what I'm doing wrong.
1. Any clues as to what I'm doing wrong?
2. Is it possible to communicate with another process this way in Cicode?
3. Is there a better way for communicating with the server? I was thinking of synchronized file access as a last-ditch attempt.
Thank you so so much in advance for any help, I am stuck on this for a requirement for quite some time!
If you need any additional info, please let me know.
I'm very new to CitectSCADA and Cicode programming, however have good programming experience in most major programming languages (Java, py, js, etc); so please excuse my ignorance .
What I'm trying to do is send a string message to another application running on the same machine, hopefully through sockets.
I have a java application running on my Windows 10 that listens on a particular port for TCP/IP socket communication. I am running the Cicode script running on my local CitectSCADA V7.20 very similar to the ComOpen (https://johnwiltshire.com/citect-help/Subsystems/CicodeReferenceCitectHTML/Content/ComOpen.html) docs, after setting up a TCP board (config screenshot below) as per suggestions here.
I am getting error 257 on the line ComWrite (have attached script file), and have tried to see if any variables are out of range but am unable to figure out what I'm doing wrong.
1. Any clues as to what I'm doing wrong?
2. Is it possible to communicate with another process this way in Cicode?
3. Is there a better way for communicating with the server? I was thinking of synchronized file access as a last-ditch attempt.
Thank you so so much in advance for any help, I am stuck on this for a requirement for quite some time!
If you need any additional info, please let me know.