Search talk: TCP/IP Communication

 
<< < 1 .. 34 35 36 37 38 .. 42 > >> (Page 36 of 42)

Post by bfunk on Wago 750-8101 (mit Codesys V3) als Profinet device CODESYS Forge talk (Post)
Moin, ich habe da ein Problem und komme einfach nicht weiter... Ich moechte eine Wago 750-8101 (mit Codesys V3) zu einem ModBus TCP Slave und einem Profinet slave machen. ModBus habe ich hinbekommen, Profinet bekomme ich einfach nicht hin. habt ihr das evtl. einen hilfreichen Tip fuer mich? Programmiert wird mit Codesys V3.5 SP19 Patch 2 Auf dem Zielsystem (PFC100) ist die Zielsystemversion 4.6.0.0 Das es nicht optimal ist PN und ModBus TCP auf einer Schnittstelle zu haben ist mir bewusst. Wollte aber erstmal ModBus und Profinet zum laufen bekommen bevor ich das Profinet auf die 2. Ethernet-Schnittstelle bringe. /etc/CODESYSControl_User.cfg [SysSocket] Adapter.0.Name="br0" Adapter.0.EnableSetIpAndMask=1 Adapter.1.Name="br1" Adapter.1.EnableSetIpAndMask=1 ist eingetragen. so sieht der Status fuer das PN-device aus. Anbei ein Screenshot.
Last updated: 2024-01-16

Post by jens on Modbus tcp - channel CODESYS Forge talk (Post)
Help wanted This is the first time i'm doing a Modbus Tcp project. I have some VLT with a extension module MCA-122. i'm currently unable to write to the VLT slave, but i can read from status word parameter=1603 and address := 16029 where the address is calculated from parameter is ((id x 10)-1). in the manual the functions that are supported are 3 hex, 6 hex, 10 hex, b hex and 11 hex. read holdin registers, write single register, write multiple registers, get comm. event counter, report slave id. i'm only using the Modbus Slave Channel is this wrong when trying to write to the vlt ?
Last updated: 2024-06-13

Post by wbj0t on Global variable access by Programms and Modbus Devices (attach device to bus) CODESYS Forge talk (Post)
Hi everyone. I use Raspberry Pi 4, one core codesys SL. I have a question about global variable access via programm when I glued the same variable to MODBUS SERIAL/TCP DEVICE holding register. So, the question: what behavior of this modifying? When I set "Always update variables (in bus cycle)" and set some task as bus for the Device, then in another task I cant change this varible (can, but immediatly the old value setted again). But the same things works with MODBUS SLAVE: again "Always update..." and master attached to some task, then I change variable in another task and all works. I cant set up my variables from retains file at PrepareStart event because of this behavior with MODBUS SERIAL/TCP DEVICE. Thanks, wbj0t.
Last updated: 2024-07-18

Post by seppi on Establishing communication between a Raspberry Pi 4 and an Arduino UNO R3 using I²C. CODESYS Forge talk (Post)
Hello everyone, I want to establish communication between my Arduino and my Raspberry Pi via I²C, but I have no idea how to make it work. However, it should work because there are many examples available, although none of them were programmed using Codesys, but rather using Python. My Raspberry Pi will be the master and is supposed to exchange measurement data such as speed and battery capacity with the slave (Arduino). I would be very grateful if someone could help me with my problem. Here is another link that could be helpful. However, I can't find the mentioned libraries
Last updated: 2023-12-03

Post by arundara on OPC UA Server Stops after 5 consecutive disconnections of ethernet port CODESYS Forge talk (Post)
Hello Every one, During testing of OPC UA communication between UA Expert software and the CODESYS SoftPLC on a Linux environment, an observation was made. When the Ethernet cable was disconnected and reconnected with 2-minute intervals, on the 5th attempt, the OPC UA connection failed to establish in UA Expert software. At this juncture, restarting the CODESYS SoftPLC enabled the reestablishment of OPC UA communication. The same result was obtained when testing on a Raspberry Pi SoftPLC. What is the reason behind this phenomenon? and whether there are settings to stop this behavior? Please help. Thanks & Regards.
Last updated: 2024-02-13

Post by tomast on WAGO 750-8212 nad Sinamics v20 modbus RTU speed control CODESYS Forge talk (Post)
Hi Guys, I am new to this forum and i would like to ask od anyone got communication with Siemens v20 vfd working via Modbus RTU? I followed many websites and finally got the communication working but have problema with read/write registers. For example if i try to read holding register 40011 which is accel time i get noth but when i set the offset 0x0000 en length 113 i get ale the registers. I cannot get speed control working. I read someth about stw (control Word) and hsw but have some problems to understand it en get it working. It would be really nice if someone could help me with it. Thx
Last updated: 2024-03-05

Post by esave on OPC UA Server with on Codesys + OPC UA Client on Labview CODESYS Forge talk (Post)
Hello everyone I want a communication between my PLC as an OPC UA Server and Labview on my PC as the OPC UA Client. I have an Festo CPX-E-CEC-C1-PN PLC and I have the OPC UA Toolkit from Labview. I created some Variables for testing (see picture 1) on Codesys. I tried to use this Labview block diagram (see picture 2) but I cant connect the PLC to it. What do I have to type in the Server Endpoint URL and what in the Node ID? Is this a good way for communication with a PLC to a PC? If not is there another way?
Last updated: 2024-04-12

Post by alexgooi on FB_INIT in library CODESYS Forge talk (Post)
Dear Forum, I currently have a challenge. I have a library with some communication classes. These communication classes need to be linked to an interface like this: Devices_and_controllers.Comm_Frame.Modbus_GVL_Link.KNX_TCP[Interface_Index] := THIS^; This is executed via a FB_Init() method. When I try to do this in a program this works fine. But when I declare the FB_Init() in the library the FB_Init() method is being called but the link is not made (interface still has the value 0000000000). The Objects and interfaces are defined in the library (GVL), so I’m assuming the data should be there. When I call the FB_Init method explicitly in the program it also works fine. Whys is this not working when it is all defined in the library? And is it even possible to create a structure like this in Codesys? Kind regards Alex
Last updated: 2024-05-22

Post by c3po on SNMP Communication with WAGO 750-8212 PFC CODESYS Forge talk (Post)
Hello folks, my problem is a bit bigger for just one question. So let's start with the easiest. But first, my system setup: It's a WAGO 750-8212 PFC with some I/O-modules. I try to communicate with the controlsystem over SNMP using the IIoT library from codesys. https://content.helpme-codesys.com/de/CODESYS%20Examples/_ex_iot_snmp_service.html Is there some expirience with this kind of communication? It's just about transfering some data from PFC to network and setting some analogsettings from network to the PFC. So my easiest question: Do I ever need the SNMP_Agent or can I use the SET / GET function as standalone, without the agent? (maybe some more questions will follow, if someone will answer to my request) thanks so far
Last updated: 2024-08-21

Post by kezicris on (no subject) CODESYS Forge talk (Post)
Bonjour, J'essaie de tester cette application : Je suis bloqué sur les 2 chapitres suivants : Pour la toute première configuration de communication : ajout de la passerelle Spécification du canal de communication En suivant le tutoriel, j'ai bien le point vert disant que la passerelle est OK en localhost sur mon PC Ensuite, en choisissant le chemin vers le controleur et en faisant un scan réseau à partir de cette boite de dialogue, ça ne trouve rien et je finis par avoir un message d'erreur disant que la passerelle n'est pas configuré... De plus, Je ne comprends pas pourquoi il faut passer par une pseudo connexion alors que toute l'appli et donc la simu est sur mon PC... Merci pour vos lumières Bonne soirée Désolé, ça plante quand je joins un fichier
Last updated: 2024-10-20

Post by jari-koivuluoma on Problem trying Net Base Services 3.5.15.0 TCP connection CODESYS Forge talk (Post)
I have a need to send messages between 2 PLCs and I cant use network variables (because of size limit) so I tried writing this simple test program. This seems to work fine. I can send messages back and forth when a first "Start server" and then "Connect client". See the attached image. However, if I disconnect the client by setting ClientConnect to false and try to re-connect then the TCP_Client just gives me TIMEOUT error. When I stop and start the server again, then Im able to reconnect. How is this supposed to work? Why reconnecting wont work. There is not other way of disconnecting the client than setting xEnable of the TCP_Client to false. This is just a testing program and I will try it on 2 seperate devices once this works. PROGRAM PLC_PRG VAR CONSTANT mySize : UDINT := 255; END_VAR VAR Server: NBS.TCP_Server; ServerIpStr: STRING := '127.0.0.1'; ServerIP: NBS.IP_ADDR; ServerPort: UINT := 50000; ServerConnection: NBS.TCP_Connection; Client: NBS.TCP_Client; ServerRead: NBS.TCP_Read; ServerWrite: NBS.TCP_Write; ServerSend: STRING(mySize); ServerReceive: STRING(mySize); ServerConnect: BOOL; bServerSend: BOOL; IP: NBS.INADDR; ConnectedClientIP: STRING; ClientPort: UINT := 50000; ClientIpStr: STRING := '192.168.1.49'; ClientIP: NBS.IP_ADDR; ClientRead: NBS.TCP_Read; ClientWrite: NBS.TCP_Write; ClientSend: STRING(mySize); ClientReceive: STRING(mySize); ClientConnect: BOOL; bClientSend: BOOL; Error: BOOL; Message: BOOL; END_VAR // Server ServerIP.sAddr := ServerIpStr; Server( ipAddr := ServerIP, uiPort := ServerPort ); ServerConnection( xEnable := Server.xEnable, hServer := Server.hServer, ); IP := ServerConnection.IPAddress; ConnectedClientIP := F_Concat7( BYTE_TO_STRING(IP.S_un_b.s_b1),'.', BYTE_TO_STRING(IP.S_un_b.s_b2),'.', BYTE_TO_STRING(IP.S_un_b.s_b3),'.', BYTE_TO_STRING(IP.S_un_b.s_b4)); ServerRead( xEnable := ServerConnection.xActive, hConnection := ServerConnection.hConnection, szSize := SIZEOF(ServerReceive), pData := ADR(ServerReceive) ); IF ServerRead.xReady AND ServerRead.szCount > 0 THEN Message := TRUE; END_IF IF ServerRead.eError > 0 THEN Error := TRUE; END_IF ServerWrite( xExecute := ServerConnection.xActive AND bServerSend, hConnection := ServerConnection.hConnection, szSize := LEN(ServerSend)+1, pData := ADR(ServerSend) ); IF ServerWrite.xDone THEN bServerSend := FALSE; END_IF IF ServerWrite.eError > 0 THEN Error := TRUE; END_IF // Client ClientIP.sAddr := ClientIpStr; Client( xEnable := ClientConnect, ipAddr := ClientIP, uiPort := ServerPort, udiTimeOut := 10000000 ); ClientRead( xEnable := Client.xActive, hConnection := Client.hConnection, szSize := SIZEOF(ClientReceive), pData := ADR(ClientReceive) ); IF ClientRead.xReady AND ClientRead.szCount > 0 THEN Message := TRUE; END_IF IF ClientRead.eError > 0 THEN Error := TRUE; END_IF ClientWrite( xExecute := Client.xActive AND bClientSend, hConnection := Client.hConnection, szSize := LEN(ClientSend)+1, pData := ADR(ClientSend) ); IF ClientWrite.xDone THEN bClientSend := FALSE; END_IF IF ClientWrite.eError > 0 THEN Error := TRUE; END_IF
Last updated: 2024-10-03

Post by sonnh on How to use more 4 instances of CANopen/Profibus/Modbus with The application-based license CODESYS Control CODESYS Forge talk (Post)
The codesys application license allows the use of up to 4 fieldbus instances (eg Modbus). I need to use more instances than that. Can I use the Modbus library instead? Does this usage require a license? Similar to other libraries such as CanOpen, Modbus TCP...
Last updated: 2023-11-02

Post by hagroth on v3.5 SP19 - Modbus TCP Devices - Channel Limit? CODESYS Forge talk (Post)
Today I was struggling with the same problem. in search for a solution i found this thread. Then i tried some things. It doesn't seem to be just a libraries' fault. In addition to 3.5.19, we also have a 3.5.18 version installed, the library versions of Modbus_TCP_Master and Modbus_TCP_Slave are the same, but more than 10 slave channels can be added in 3.5.18
Last updated: 2024-02-02

Post by thysonfury on OPTO22 Groov Epic PR2 Modbus Comms Dropping out every 2 hours and 4 Mins CODESYS Forge talk (Post)
Hi after some assistance with an error on a Groov PR2 PLC. We have a few different communications set up as shown below: One Modbus TCP Slave Connection - ( Sending / Receiving Data from a PC ) Two Modbus TCP Master Connection - ( Reading Data from a UPS Panel and Reading Data Gas Chromatograph) One Modbus RTU Slave Connection 485 - (Reading Data from a fire and gas panel) One Modbus RTU Master Connection 485 - (Sending Data to a Telemetry Unit) All Licenses have been installed as per OPTO22 suggestions of the order below: Modbus TCP Master Modbus TCP Slave Modbus RTU Master Modbus RTU Slave When I check on License manager the RTU Master license seems to disappear on installing the RTU. (What ever reason I’ve been told this is “normal”). If I use Device License Read It will successfully read all the licenses correctly. Now the issue is every 2 hours and between 4. For what ever reason the communications seems to end and lock up for about 20 seconds. During this time even if I was logged into the PLC it would kick me off and I’d have to re type the password to enter. Most of the devices can handle this however the RTU flags up a communications failure at the SCADA and is raising alarms every 2 hours and 4 mins. We’ve had multiple people go through the code to check for anything obvious. Does anyone have any ideas?
Last updated: 2024-04-15

Post by thysonfury on OPTO22 Groov Epic PR2 Modbus Comms Dropping out every 2 hours and 4 Mins CODESYS Forge talk (Post)
Hi after some assistance with an error on a Groov PR2 PLC. We have a few different communications set up as shown below: One Modbus TCP Slave Connection - ( Sending / Receiving Data from a PC ) Two Modbus TCP Master Connection - ( Reading Data from a UPS Panel and Reading Data Gas Chromatograph) One Modbus RTU Slave Connection 485 - (Reading Data from a fire and gas panel) One Modbus RTU Master Connection 485 - (Sending Data to a Telemetry Unit) All Licenses have been installed as per OPTO22 suggestions of the order below: Modbus TCP Master Modbus TCP Slave Modbus RTU Master Modbus RTU Slave When I check on License manager the RTU Master license seems to disappear on installing the RTU. (What ever reason I’ve been told this is “normal”). If I use Device License Read It will successfully read all the licenses correctly. Now the issue is every 2 hours and between 4. For what ever reason the communications seems to end and lock up for about 20 seconds. During this time even if I was logged into the PLC it would kick me off and I’d have to re type the password to enter. Most of the devices can handle this however the RTU flags up a communications failure at the SCADA and is raising alarms every 2 hours and 4 mins. We’ve had multiple people go through the code to check for anything obvious. Does anyone have any ideas?
Last updated: 2024-04-15

Post by thysonfury on OPTO22 Groov Epic PR2 Modbus Comms Dropping out every 2 hours and 4 Mins CODESYS Forge talk (Post)
Hi after some assistance with an error on a Groov PR2 PLC. We have a few different communications set up as shown below: One Modbus TCP Slave Connection - ( Sending / Receiving Data from a PC ) Two Modbus TCP Master Connection - ( Reading Data from a UPS Panel and Reading Data Gas Chromatograph) One Modbus RTU Slave Connection 485 - (Reading Data from a fire and gas panel) One Modbus RTU Master Connection 485 - (Sending Data to a Telemetry Unit) All Licenses have been installed as per OPTO22 suggestions of the order below: Modbus TCP Master Modbus TCP Slave Modbus RTU Master Modbus RTU Slave When I check on License manager the RTU Master license seems to disappear on installing the RTU. (What ever reason I’ve been told this is “normal”). If I use Device License Read It will successfully read all the licenses correctly. Now the issue is every 2 hours and between 4. For what ever reason the communications seems to end and lock up for about 20 seconds. During this time even if I was logged into the PLC it would kick me off and I’d have to re type the password to enter. Most of the devices can handle this however the RTU flags up a communications failure at the SCADA and is raising alarms every 2 hours and 4 mins. We’ve had multiple people go through the code to check for anything obvious. Does anyone have any ideas?
Last updated: 2024-04-15

Post by nano on Cant login to Rpi4 but can see it in codesys communications settings. CODESYS Forge talk (Post)
which ports in detail are configured. the search of the rts works via broadcast-messages, programming with tcp-port on p2p-connection woth port-hopping, handled by runtime after siccesfully handshake. look at this entry on forge https://forge.codesys.com/forge/talk/Runtime/thread/4078a2ed28/
Last updated: 2024-06-23

Post by oymyakon on Modbus Lockup CODESYS Forge talk (Post)
Hi i have a project where i am communicating with many modbus devices using TCP to serial. This is all working extremely well except when i turn one of the remote devices off. If i leave the auto reconnect on it still doesn't talk to the rmianing devices and if i turn Auto reconnect off it locks up. Any help would be appreciated. Paul.
Last updated: 2024-08-07

Post by oymyakon on Modbus Lockup CODESYS Forge talk (Post)
Hi i have a project where i am communicating with many modbus devices using TCP to serial. This is all working extremely well except when i turn one of the remote devices off. If i leave the auto reconnect on it still doesn't talk to the rmianing devices and if i turn Auto reconnect off it locks up. Any help would be appreciated. Paul.
Last updated: 2024-08-07

Post by rh-pk on v3.5 SP19 - Modbus TCP Devices - Channel Limit? CODESYS Forge talk (Post)
Hello jacobwago, I believe that the limit is fixed in the editor, but not in the driver package. There seems to be no link between the driver setting and the editor. Otherwise, I don't know why the input (>10) is blocked, but the function is available. Unfortunately, I cannot offer you any other solution apart from the one mentioned above. Kind regards
Last updated: 2024-09-30

Post by ulad on SPI Communication CODESYS Forge talk (Post)
Hello. I created a project that uses SPI. This project is working well. I can see with an oscilloscope that the SPI pins are actually changing. But when I resave this project in the IDE and open it later in the system, I see a constant error. What do I need to fix? What am I doing wrong? Thank you.
Last updated: 2023-12-23

Post by francescoc on Access to the path *** is denied CODESYS Forge talk (Post)
Hello, I encountered similar problems, and it appears they were linked to certain add-ons. Resolving this issue turned out to be quite complex. However, we managed to find a solution by downgrading both the "CODESYS Communication" and "CODESYS Recipes" components via the CODESYS Installer, accessible under the "Tools" section.
Last updated: 2024-02-12

Post by timvh on when going online, stuck on "Syncing file "visuelemsdatetime.tl_datetime.txt" CODESYS Forge talk (Post)
I don't know the root cause... But what could help to continue when it seems to hang, is stop the CODESYS (communication) Gateway. Go to the Windows SysTray, find the icon for the Gateway and then stop it and start it again. This will interrupt the connection between CODESYS and your controller.
Last updated: 2024-03-05

Post by tomast on Communication between PLC and HMI- sending DUT data CODESYS Forge talk (Post)
Hi everyone, I am working with project where i have DUT wihth struct. I would like to fill this data trough a form on HMI. I use NVL to communicate and i would like to know how is it possible to do this? Thanks for all your advice in advance.
Last updated: 2024-08-23

Post by tomast on Communication between PLC and HMI- sending DUT data CODESYS Forge talk (Post)
Hi everyone, I am working with project where i have DUT wihth struct. I would like to fill this data trough a form on HMI. I use NVL to communicate and i would like to know how is it possible to do this? Thanks for all your advice in advance.
Last updated: 2024-08-23

<< < 1 .. 34 35 36 37 38 .. 42 > >> (Page 36 of 42)

Showing results of 1047

Sort by relevance or date