Search talk: codesys box with en/eno

 
<< < 1 .. 306 307 308 309 310 .. 919 > >> (Page 308 of 919)

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

web visu on IFM CODESYS Forge talk (Thread)
web visu on IFM
Last updated: 2023-08-18

Project size increasing continuously CODESYS Forge talk (Thread)
Project size increasing continuously
Last updated: 2023-08-23

Function block not autofilling CODESYS Forge talk (Thread)
Function block not autofilling
Last updated: 2023-08-24

Connection to device closed CODESYS Forge talk (Thread)
Connection to device closed
Last updated: 2023-08-25

Modbus Extended Registers CODESYS Forge talk (Thread)
Modbus Extended Registers
Last updated: 2023-08-26

Ping By Name CODESYS Forge talk (Thread)
Ping By Name
Last updated: 2023-08-29

XY Chart CODESYS Forge talk (Thread)
XY Chart
Last updated: 2023-08-30

gateway problem CODESYS Forge talk (Thread)
gateway problem
Last updated: 2023-08-31

EtherCAT - Force Control Word CODESYS Forge talk (Thread)
EtherCAT - Force Control Word
Last updated: 2023-08-31

Trun off webvisu CODESYS Forge talk (Thread)
Trun off webvisu
Last updated: 2023-09-02

Error C0521 - unknow compiler CODESYS Forge talk (Thread)
Error C0521 - unknow compiler
Last updated: 2023-09-02

Webvisu auf Iphones CODESYS Forge talk (Thread)
Webvisu auf Iphones
Last updated: 2023-09-04

Schaltflächen in Visualisierung CODESYS Forge talk (Thread)
Schaltflächen in Visualisierung
Last updated: 2023-09-05

Code Size CODESYS Forge talk (Thread)
Code Size
Last updated: 2023-09-08

EL6751 Canopen_Manager issue CODESYS Forge talk (Thread)
EL6751 Canopen_Manager issue
Last updated: 2023-09-12

WebVisu on mobile devices CODESYS Forge talk (Thread)
WebVisu on mobile devices
Last updated: 2023-09-13

CANbus issue CODESYS Forge talk (Thread)
CANbus issue
Last updated: 2023-09-14

Post by eschwellinger on Codesys läuft nicht hoch CODESYS Forge talk (Post)
du startest so nur die SPS selber nicht die CODESYS Entwicklungsumgebung. Die kannst du entweder über den CODESYS Installer oder aber ueber das Startmenu starten. By the way, die SPS: Control Win 64 kannst du auch ueber den Tasktray unten starten ihne dieses Fenster.
Last updated: 2023-09-19

Hex string CODESYS Forge talk (Thread)
Hex string
Last updated: 2023-09-19

CANopen Example: CODESYS Forge talk (Thread)
CANopen Example:
Last updated: 2023-09-21

CANOPEN SDO configuration CODESYS Forge talk (Thread)
CANOPEN SDO configuration
Last updated: 2023-09-25

Ethercat bus CODESYS Forge talk (Thread)
Ethercat bus
Last updated: 2016-10-29

Lizenzdatei sichern CODESYS Forge talk (Thread)
Lizenzdatei sichern
Last updated: 2016-10-20

OPC Client not connect. CODESYS Forge talk (Thread)
OPC Client not connect.
Last updated: 2016-05-12

<< < 1 .. 306 307 308 309 310 .. 919 > >> (Page 308 of 919)

Showing results of 22968

Sort by relevance or date