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
Post by pascaljt on Function block for Ethernet/IP
CODESYS Forge
talk
(Post)
Hello, I program a function for an Ethernet/IP controller. I made a structure with input and output corresponding with the map of my controller for the function block. My problem is that I don't know how to do the link between the controller and my PLC (CC 100 from Wago). The addresses declare in Codesys are illogic, The first addresses are 12 and 13 then 7 then 4. How to do corresponding the addresses of the controller and the input / output structure ? IP adress ? Does I must create the all variables of controller with the controller adresses to use with the function block ? Thanks for your help. (I hope I'm clear, I'm not english)
Last updated: 2023-10-26
Having trouble using the CRC function
CODESYS Forge
talk
(Thread)
Having trouble using the CRC function
Last updated: 2023-02-14
Oscat Basic - Array sort function
CODESYS Forge
talk
(Thread)
Oscat Basic - Array sort function
Last updated: 2021-06-25
Questions about CheckPointer Function
CODESYS Forge
talk
(Thread)
Questions about CheckPointer Function
Last updated: 2023-08-16
[SOLVED] Function with additional outputs
CODESYS Forge
talk
(Thread)
[SOLVED] Function with additional outputs
Last updated: 2017-11-06
invalid value from function call
CODESYS Forge
talk
(Thread)
invalid value from function call
Last updated: 2016-06-01
SEMA function in standard.lib
CODESYS Forge
talk
(Thread)
SEMA function in standard.lib
Last updated: 2016-01-11
Softmotion user manual CNC function question
CODESYS Forge
talk
(Thread)
Softmotion user manual CNC function question
Last updated: 2023-06-30
System events Callback function
CODESYS Forge
talk
(Thread)
System events Callback function
Last updated: 2017-02-09
read function 10 for Modbus RTU
CODESYS Forge
talk
(Thread)
read function 10 for Modbus RTU
Last updated: 2017-08-08
How to use SysSaveRetains Function
CODESYS Forge
talk
(Thread)
How to use SysSaveRetains Function
Last updated: 2012-03-22
Call "Download missing libaries" function
CODESYS Forge
talk
(Thread)
Call "Download missing libaries" function
Last updated: 2018-05-09
Problem READ function Serial COM
CODESYS Forge
talk
(Thread)
Problem READ function Serial COM
Last updated: 2020-03-19
CR1084 problem with function keys
CODESYS Forge
talk
(Thread)
CR1084 problem with function keys
Last updated: 2018-01-18
Running Python Script From Function
CODESYS Forge
talk
(Thread)
Running Python Script From Function
Last updated: 2020-10-20
Codesys 2.3.9.44 ; Function : STRING_COMPARE
CODESYS Forge
talk
(Thread)
Codesys 2.3.9.44 ; Function : STRING_COMPARE
Last updated: 2015-05-18
how to FUNCTION type VOID
CODESYS Forge
talk
(Thread)
how to FUNCTION type VOID
Last updated: 2013-10-18
Calling a User function
CODESYS Forge
talk
(Thread)
Calling a User function
Last updated: 2012-02-21
VisuUserManagement.g_VisuUserMgmt2 : How to use this function
CODESYS Forge
talk
(Thread)
VisuUserManagement.g_VisuUserMgmt2 : How to use this function
Last updated: 2021-06-21
Call function from library in ST
CODESYS Forge
talk
(Thread)
Call function from library in ST
Last updated: 2020-10-12
Help me understand Oscat time function
CODESYS Forge
talk
(Thread)
Help me understand Oscat time function
Last updated: 2019-08-28
Project compilation error from generate_code function
CODESYS Forge
talk
(Thread)
Project compilation error from generate_code function
Last updated: 2020-10-08
Warning when using ROL function
CODESYS Forge
talk
(Thread)
Warning when using ROL function
Last updated: 2010-12-04
Function overloading with ANY_<type>
CODESYS Forge
talk
(Thread)
Function overloading with ANY_<type></type>
Last updated: 2021-07-09
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
.