CANopen new pdo data
CODESYS Forge
talk
(Thread)
CANopen new pdo data
Last updated: 2022-09-08
TREND DATA CALLING
CODESYS Forge
talk
(Thread)
TREND DATA CALLING
Last updated: 2011-04-18
Trends from database data
CODESYS Forge
talk
(Thread)
Trends from database data
Last updated: 2017-12-31
store data in file
CODESYS Forge
talk
(Thread)
store data in file
Last updated: 2018-02-26
OPC UA Data Types
CODESYS Forge
talk
(Thread)
OPC UA Data Types
Last updated: 2023-05-09
G code Line Data
CODESYS Forge
talk
(Thread)
G code Line Data
Last updated: 2023-04-12
DI4 USB - Transfer Data
CODESYS Forge
talk
(Thread)
DI4 USB - Transfer Data
Last updated: 2024-02-22
Data Source Limit
CODESYS Forge
talk
(Thread)
Data Source Limit
Last updated: 2024-03-06
Send data to USB
CODESYS Forge
talk
(Thread)
Send data to USB
Last updated: 2024-08-05
Data Source Error 418
CODESYS Forge
talk
(Thread)
Data Source Error 418
Last updated: 2024-10-11
Post by anonymous on Hi, I try to send and receive data using a UDP connection via SysSocket 3.5.17.0. While sending data works fine, I have problems with the receiving part. I am able to capture the received data of client side in wireshark But unable to capture it on the codesys
CODESYS Forge
talk
(Post)
Hi, I try to send and receive data using a UDP connection via SysSocket 3.5.17.0. While sending data works fine, I have problems with the receiving part.I am able to capture the data of client side in wireshark but i am unable to capture it in the codesys. Heres the below part of code of client side. PROGRAM POU_udpclient_program VAR istep : INT := 1;//step variable for state machine xStart: BOOL;// Flag to start the UDP protocol iecSocketId: syssocket_interfaces.RTS_IEC_HANDLE;//socket handle for receiving iecCreateResult: syssocket_interfaces.RTS_IEC_RESULT; ipAddr: syssocket.SOCKADDRESS;//Socket address structure for receiving sIpAddress : STRING := '192.168.0.2'; wPort: WORD:= 12346; iecConnectResult : syssocket_interfaces.RTS_IEC_RESULT;//connect paramters sDataRec : STRING[255];//Buffer for received data xiRecBytes : __XINT;//number of bytes received iecRecResult : syssocket_interfaces.RTS_IEC_RESULT;//receive data parameters iecCloseResult : syssocket_interfaces.RTS_IEC_RESULT; END_VAR syssocket.SysSockInetAddr(sIpAddress,ADR(ipAddr.sin_addr)); ipAddr.sin_family := syssocket.SOCKET_AF_INET; ipAddr.sin_port := syssocket.SysSockHtons(wPort); CASE istep OF 1: //create socket IF xStart THEN iecSocketId:= syssocket.SysSockCreate(syssocket.SOCKET_AF_INET,syssocket.SOCKET_DGRAM,syssocket.SOCKET_IPPROTO_IP,ADR(iecCreateResult)); IF iecSocketId = syssocket_interfaces.RTS_INVALID_HANDLE THEN xStart := FALSE; istep := 1; ELSE istep := 2; END_IF END_IF 2: //connect to socket server using setoption iecConnectResult := syssocket.SysSockSetOption(iecSocketId,syssocket.SOCKET_SOL,syssocket.SOCKET_SO_REUSEADDR,ADR(ipAddr),SIZEOF(ipAddr)); istep := 3; 3: //receive data xiRecBytes := syssocket.SysSockRecvFrom(iecSocketId,ADR(sDataRec),SIZEOF(sDataRec),0,ADR(ipAddr),SIZEOF(ipAddr),ADR(iecRecResult)); istep := 4; 4: //close socket iecCloseResult:= syssocket.SysSockClose(iecSocketId); xStart := FALSE; istep := 1; END_CASE
Last updated: 2024-06-03
How to change data format of 'Trend' time data to DT or something else
CODESYS Forge
talk
(Thread)
How to change data format of 'Trend' time data to DT or something else
Last updated: 2021-05-10
OPC connection with many data
CODESYS Forge
talk
(Thread)
OPC connection with many data
Last updated: 2014-04-26
Beckhoff - Siemens Profinet data exchange
CODESYS Forge
talk
(Thread)
Beckhoff - Siemens Profinet data exchange
Last updated: 2018-10-10
Data storage and Export in Codesys
CODESYS Forge
talk
(Thread)
Data storage and Export in Codesys
Last updated: 2023-10-29
Serial modem data exchange
CODESYS Forge
talk
(Thread)
Serial modem data exchange
Last updated: 2022-10-04
AcuCD 240 data conversions
CODESYS Forge
talk
(Thread)
AcuCD 240 data conversions
Last updated: 2013-06-22
XY chart - pointers for data
CODESYS Forge
talk
(Thread)
XY chart - pointers for data
Last updated: 2020-12-14
data consistency in ProfibusDP
CODESYS Forge
talk
(Thread)
data consistency in ProfibusDP
Last updated: 2008-10-13
Error when importing PLCopen XML data
CODESYS Forge
talk
(Thread)
Error when importing PLCopen XML data
Last updated: 2015-06-23
Recording data to CSV files
CODESYS Forge
talk
(Thread)
Recording data to CSV files
Last updated: 2018-02-13
OPC Datasources No Live Data
CODESYS Forge
talk
(Thread)
OPC Datasources No Live Data
Last updated: 2021-11-19
Webvisu Trace from Application data recorder?
CODESYS Forge
talk
(Thread)
Webvisu Trace from Application data recorder?
Last updated: 2018-10-15
Data Types and following variables comments
CODESYS Forge
talk
(Thread)
Data Types and following variables comments
Last updated: 2014-11-25
CODESYS Sensor App GPS Data
CODESYS Forge
talk
(Thread)
CODESYS Sensor App GPS Data
Last updated: 2021-10-14
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
.