Post by abinvest579 on TCP Client
CODESYS Forge
talk
(Post)
Hi All, I am using codesys based plc to read and control magna power DC supply over LXI protocol using SCPI command. To connect device required socket programming for that i am using Net base service library function block TCP_Client to establish connection over TCP/IP , TCP_Write to write SCPI commands and TCP_Read to read data from Magna power DC supply. I have attached screenshot for logic developed. I am able to connect and write commands to device but i not receiving any information from device. For writing Commands i also tried various end of line character like \n,<nl>, A, D, 10, 13, 0x0A, 0x0D but not received any status from device. For testing purpose i am using simple command '*IDN?' to read data. Also if tried to check on hercules software what data actually plc read, first it read correct data after that is read wrong data as see in screen shot. 'Hello World' was correct read and after that Codesys in replaced with 'Codesysorld' that is not correct way. Same issue also appeared for send data. Any one have face same issue how i can read data directly from device correctly and send data please suggest solution on this.</nl>
Last updated: 2024-07-01
Several py file share one external file to get some default value
CODESYS Forge
talk
(Thread)
Several py file share one external file to get some default value
Last updated: 2019-12-12
Retain variables from File, cmpApp
CODESYS Forge
talk
(Thread)
Retain variables from File, cmpApp
Last updated: 2014-11-28
OPCGatewayClient and csv file
CODESYS Forge
talk
(Thread)
OPCGatewayClient and csv file
Last updated: 2007-08-31
htm file name not updating
CODESYS Forge
talk
(Thread)
htm file name not updating
Last updated: 2020-04-21
Codesys StructType in Device Description File
CODESYS Forge
talk
(Thread)
Codesys StructType in Device Description File
Last updated: 2023-10-30
How to generate an "ENI" file
CODESYS Forge
talk
(Thread)
How to generate an "ENI" file
Last updated: 2024-08-09
Problem importing ethercat config file
CODESYS Forge
talk
(Thread)
Problem importing ethercat config file
Last updated: 2024-08-21
problem con file transfer in raspberry
CODESYS Forge
talk
(Thread)
problem con file transfer in raspberry
Last updated: 2024-09-04
CSV file and string manipulation.
CODESYS Forge
talk
(Thread)
CSV file and string manipulation.
Last updated: 2024-09-27
sysfile- transfer file to pc
CODESYS Forge
talk
(Thread)
sysfile- transfer file to pc
Last updated: 2025-04-26
Reading multiple lines from csv file
CODESYS Forge
talk
(Thread)
Reading multiple lines from csv file
Last updated: 2025-07-23
Execute a .py file with Codesys
CODESYS Forge
talk
(Thread)
Execute a .py file with Codesys
Last updated: 2025-09-03
Persistence Manager: Config File not found?
CODESYS Forge
talk
(Thread)
Persistence Manager: Config File not found?
Last updated: 2025-09-26
Download csv file throught web visu
CODESYS Forge
talk
(Thread)
Download csv file throught web visu
Last updated: 2018-04-17
Backup variable to a file.
CODESYS Forge
talk
(Thread)
Backup variable to a file.
Last updated: 2009-06-29
File reading or writing error
CODESYS Forge
talk
(Thread)
File reading or writing error
Last updated: 2020-10-10
Unable to open database file
CODESYS Forge
talk
(Thread)
Unable to open database file
Last updated: 2017-11-25
WAGO PLC target file recovery
CODESYS Forge
talk
(Thread)
WAGO PLC target file recovery
Last updated: 2017-03-15
Codesys saves project as '0 File'
CODESYS Forge
talk
(Thread)
Codesys saves project as '0 File'
Last updated: 2019-11-28
IO Module - CFG file
CODESYS Forge
talk
(Thread)
IO Module - CFG file
Last updated: 2006-08-03
Log file entry every second
CODESYS Forge
talk
(Thread)
Log file entry every second
Last updated: 2018-09-11
Offline conversion of alarm storage file
CODESYS Forge
talk
(Thread)
Offline conversion of alarm storage file
Last updated: 2016-12-12
formatting comments in library file
CODESYS Forge
talk
(Thread)
formatting comments in library file
Last updated: 2012-05-03
Write in a file
CODESYS Forge
talk
(Thread)
Write in a file
Last updated: 2011-08-12
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.