Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: connection to common TCP server

connection to common TCP server 6 months 4 weeks ago #2873

  • Anna
  • Anna's Avatar
  • Offline
  • Junior Member
  • Posts: 24
  • Karma: 0
Dear Ruslan,
I hope that you are fine. I have a question for you. The last days i saw your video that you sent me in the past about connection common TCP server, I tried it to simulate.
Unfortunately i can't connet to server and retrieve the string/byte/array it sends me. With other systems I can view the data packet that the server sends me (I'll also attach how I made the connection in another programming language called python).
Could you please tell me if I'm doing something wrong? (I attach the program file in TeslaScada).
Thank you in advance.

Best Regards Ruslan.
Attachments:
The administrator has disabled public write access.

connection to common TCP server 6 months 4 weeks ago #2874

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 855
  • Thank you received: 126
  • Karma: -108
Dear Anna,

Did you check working of your project in TeslaSCADA2 Runtime? Common TCP works only in TeslaSCADA2 Runtime. I don't understand how do you check working of your project.
Especially this part of code: arr=Tags.respnose_array;

Best regards,
Ruslan
The administrator has disabled public write access.

connection to common TCP server 6 months 4 weeks ago #2875

  • Anna
  • Anna's Avatar
  • Offline
  • Junior Member
  • Posts: 24
  • Karma: 0
Yes, I use TeslaSCADA2 runtime.
Tags.response_array is the name of my array variable.
Do you need more images?

Best regards,
Anna
The administrator has disabled public write access.

connection to common TCP server 6 months 4 weeks ago #2876

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 855
  • Thank you received: 126
  • Karma: -108
According your script you read array from the SERVER and in the cycle in the same array place some value from Tags.response_array. So by this step you erasing previous read values from the SERVER.

Best regards,
Rusaln
The administrator has disabled public write access.

connection to common TCP server 6 months 4 weeks ago #2877

  • Anna
  • Anna's Avatar
  • Offline
  • Junior Member
  • Posts: 24
  • Karma: 0
Ok, so i have to cancel the part about for cycle?
Because I overwriting the array, correctly?
It is enough to put commonserverreadarray?

Best regards
The administrator has disabled public write access.

connection to common TCP server 6 months 4 weeks ago #2879

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 855
  • Thank you received: 126
  • Karma: -108
I just want to understand how did you figure out that your script was not working. How do you bind the array you got from your common server to Tag and display it on the Screen?

Best regards,
Ruslan
Last Edit: 6 months 4 weeks ago by fatkhrus.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Go to top