I've always liked codesys, but sometimes it drives me crazy
Hi, again after spending a lot of time finding more information with no results, by chance I changed the device ID from 1 to 255 and the transmission works. Unfortunately the documentation is very very poor.
Hi, again after spending a lot of time finding more information with no results, by chance I changed the device ID from 1 to 255 and the transmission works. Unfortunately the documentation is very very poor.
Hi all, this is my situation : plc weidmuller UC20 WL200 AC target version 4.12.0.0 codesys 3.5.20.0 Actually i'm testing the program without license (2 hours). i'm trying to use the function block ModbusServer. I used it on the past with codesys 3.5.14.40 an it worked. Now not. i can connect (as you see byClientConnctions = 1) but i dont recive a reply from server. Someone can help me?
Hi, i think you are right. Did you press the key shopping cart? Codesys tells you the license. What I don't appreciate is that i need an additional license for communication. The system reports opc ua but this cheats you. This is communication that also concerns the tag symbols that codesys eth v3 exchanges with an operator panel. Attached is a screenshot of my case where you can see that communication opc ua is cheating you. 512 tags included in the program license are few. So, I had to buy 2 licenses....
Hi, i think you are right. Did you press the key shopping cart? Codesys tells you the license. What I don't appreciate is that i need an additional license for communication. The system reports opc ua but this cheats you. This is communication that also concerns the tag symbols that codesys eth v3 exchanges with an operator panel. Attached is a screenshot of my case where you can see that communication opc ua is cheating you. 512 tags included in the program license are few. So, I had to buy 2 licenses....
did you try setup two eth ? on ethO you set ip to communicate with pc, example 192.168.0.1 on eth1 ip to communicate with weidmuler I/O, example 192.168.100.1 note : ip need the same of ip setup under system setting of hmi.
Hi, something like this ?
Hi, something like this
No. As you can see in the uploaded image, in my test project, I have a variable list GVL_1 which is located in appication_1. But if I write in POU_2, which is instead found in application 2, I cannot find the variables of GVL_1. it seems that the GVLs are children of each app
Hello, I'm experimenting with two applications. I was able to start stop applications with the CmpApp library. Currently in my test the variables declared in the first application are not visible and writable in the second. I ask if there is the possibility of having variables that are visible both in the first application and in the second.
Hi can you give more details? Are you talking about a danfoss? wich model? Can post the configuration of channel' I used, on the past, serial modbus with danfoss fc280 I remember ((id x 10)-1) I remember that you couldn't use continuous reading/writing of the directors but you had to use them one at a time. it seemed that reading empty registers (caused by x10) was not accepted by danfoss. So I had created a scan that used just one register, then the next etc etc with a timed interval. But this was...
Hi , use union
will be on the order of a few seconds good luck
HI, i used FC302 and FC280 over modbus RS485 My application was read stw amp alarms and i used a step by step read beacuse only one parameter can be read at a time. When reading many parameters, the refresh is also several seconds, this is not nice. The writing of the speed reference was also in the loop and therefore took place with a slow refresh. But I didn't have to constantly vary the speed. To control the drives I preferred to use the terminal board, instead of ctw. I currently use FC VFDs...
HI, i used FC302 and FC280 over modbus. My application was read stw amp alarms and i used a step by step read beacuse only one parameter can be read at a time. When reading many parameters, the refresh is also several seconds, this is not nice. The writing of the speed reference was also in the loop and therefore took place with a slow refresh. But I didn't have to constantly vary the speed. To control the drives I preferred to use the terminal board, instead of ctw. I currently use FC VFDs with...
Do you have just one gateway or more ? In my case i have one gateway and everything's work, I don't know why in your case not. I select the ip, not the device name. Maybe someone else can help you here, or you can ask that plc's support. Good luck. Ciao.
Well done, if you can ping the ip, maybe the tab communication is not properly setted
But in device, right click you can add an ethernet interface and here set directly the ip. Do you have this ?
But in device, right click you can add an ethernet interface and here set directly the ip. Do you have this ?
But in device, right click you can add an ethernet interface and here set directly the ip. Do you have this ?
Hi, i don't know this chinese plc, it seems there are 2 ethernet ports. Do these ports have the same ip or do they each have their own? About you block, it's a custom plc function, it's not codesys standard, so i don't know it. If you are sure that the function changes the ip correctly, then you should be able to ping the new ip. In the ethernet card of your pc you can set 2 ip at the same time, so you can manage the old and the new ip. In codesys with double click on device you have the communication...
Hi, i don't know this chinese plc, it seems there are 2 ethernet ports. Do these ports have the same ip or do they each have their own? About you block, it's a custom plc function, it's not codesys standard, so i don't know it. If you are sure that the function changes the ip correctly, then you should be able to ping the new ip. In the ethernet card of your pc you can set 2 ip at the same time, so you can manage the old and the new ip. In codesys with double click on device you have the communication...
Hi, please describe what type of plc you have and what operations you do. Do you change the ip in the hw configuration of the ethernet card and then do a new download of the project? If the plc first had ip 192.168.1.10 and communicated with your pc, then make sure your pc is in the new address class
hello, maybe this solution is for you
About 4.0 I did a few works with modbus tcp/ip. In codesys there is a modbus server. Scada can read or write holding register from 40001
Hi, please write in English. Our Italian is a beautiful language but it is very difficult to understand. I have never used those devices. For the communication between plc and hmi, in the plc you have to create the variables that you want to exchange for example GVL_HMI group MyVar1: word; MyVar2: real; Then in the symbols select the object In the project folder you will find an .xml file that contains the symbols. This file is usually imported into the hmi project and you end up with the tags with...
Hi, you need to give more information about the two devices and what protocol you use. Maybe are you using a plc and an HMI ?
last but not least: jmobile studio and related ide codesys must be downloaded from the exor site which also provides the package with the ex700 target
Hi, English is not my native language, I always try to write in a simple way so that English and non-English people can understand me. I have a lot of trouble understanding your latest post. however you cannot use any version of codesys for exor hmi. The version depends on the runtime of the project jmobile studio. From what I remember, for a while with jmobile 2.8 they used codesys 3.5.10 then with jmobile 4.0 they used codesys 3.5.14. Now they just released jmobile 4.5 and I don't know which version...
Hi, I use exor, I have installed Codesys 3.5.14.40 in a virtual machine with win 10. Once, I used the PLIO06 modules, now not anymore. However I still have a module here in the office and I have tried to make a project and control the outputs. Everything works for me. As you see in the figure.
And of course like dFx suggest you can't use Functions because haven't internal status information. As i wrote i used a FB
Ciao, il blocco POU, dove viene richiamato l' FB, deve essere elaborato. Io nel main task richiamo un POU di nome Main e poi in Main richiamo tutti gli altri blocchi. Quindi anche il POU_lorenzo deve essere richiamato nel Main. Un modo per vedere se un blocco viene richiamato Γ¨ inserire al suo interno un controllo. Per esempio dentro al tuo Fb dichiari la tag control:WORD; Nel codice del tuo FB scrivi control := control + 1 ; Andando online devi vedere la tag che incrementa ad ogni ciclo. Hello,...
Ciao, for me, it work see attached files
hi, here I am in 3.5.14 and although in the options, smartcoding, there is no tick in insert with namespace, when you insert a variable the system automatically puts the namespace on it. The tick seems to have no effect π
An other ladder example of FF using xor. Programming in ST create a FF is very easy π Ti saluto ancora, ciao
Hi Fabrizio, looking just a bit of your code, I think the set of u1 is done from w1 but on the branch below reset is done, so the result is zero. if you place a contact false on the branch below, you see the set of u1. I leave you an example of flip flop in ladder, hope this can help you. Ciao.
Hi Fabrizio, looking just a bit of your code, I think the set of u1 is done from w1 but on the branch below reset is done, so the result is zero. if you place a contact false on the branch below, you see the set of u1. I leave you an example of flip flop in ladder, hope this can help you. Ciao.
Hi all I'm not an expert programmer, but I would like to be able to send messages in a telegram bot chat when I have alarms in my system managed by a plc programmed in codesys. Searching on google i found only examples with raspberry. Has anyone ever done this with a plc? Are there libraries? Or other solutions? (for example I saw that there are flows in nodered but you need a machine where in addition to being codesys there are also nodered) If I said something wrong, I apologize.
Hi, from what I know this is not possible. It would have been nice.
Hi. I don't think is a setting of UI. About light blue squares i see it, like on my first image. About select a group of contact, like you see in my second image, the group is pink, then i click it and with mouse i drag the group near first contact. When i drag the diamonds appear. This on codesys 3.5.12 and 3.5.16 Is your UI pure codesys or a customization of some brand ?
Just one thing... for me when i click between first contact and left side, the orange square is on the middle, not like your screenshot
Hi, for me it work ! First i click between the contact and the left side, after i click the button add branches and i have the some light blue square. So i can click on it and realize the parallel. A workaround is click on first contact, right click and insert contact parallel (below) so you have two contact in parallel and after select with shift+click the second contact, the third, and son on, and with mouse, move it on green diamond near the first contact.
ok, you are right. Just PN controller. My regards.
Hi, codesys users. I am doing some tests here in the office to connect a siemens plc and a device codesys. I am using an exor hmi with softplc codesys 3.5.14 patch4. I entered a codesys profinet device. I exported the device and imported correctly in Tia-portal v15. In the siemens hardware configuration I inserted the same 2 input and output cards that I inserted in codesys (see images) I'm doing some tests and I haven't entered the license but I use it in demo for 2 hours. Codesys side seems to...
Hi, codesys users. I am doing some tests here in the office to connect a siemens plc and a device codesys. I am using an exor hmi with softplc codesys 3.5.14 patch4. I entered a codesys profinet device. I exported the device and imported correctly in Tia-portal v15. In the siemens hardware configuration I inserted the same 2 input and output cards that I inserted in codesys (see images) I'm doing some tests and I haven't entered the license but I use it in demo for 2 hours. Codesys side seems to...
Hi, codesys users. I am doing some tests here in the office to connect a siemens plc and a device codesys. I am using an exor hmi with softplc codesys 3.5.14 patch4. I entered a codesys profinet device. I exported the device and imported correctly in Tia-portal v15. In the siemens hardware configuration I inserted the same 2 input and output cards that I inserted in codesys (see images) I'm doing some tests and I haven't entered the license but I use it in demo for 2 hours. Codesys side seems to...
Hi, codesys users. I am doing some tests here in the office to connect a siemens plc and a device codesys. I am using an exor hmi with softplc codesys 3.5.14 patch4. I entered a codesys profinet device. I exported the device and imported correctly in Tia-portal v15. In the siemens hardware configuration I inserted the same 2 input and output cards that I inserted in codesys (see images) I'm doing some tests and I haven't entered the license but I use it in demo for 2 hours. Codesys side seems to...
Hello codesys users, i am evaluating the weidmuller plc UC20-SL2000-OLAC-EC. Is there anyone who has ever used it? The documentation I found is not much, and I have some doubts about the possibility of using recipes and copy files from/to the folders of the plc via FTP. Thanks.
Hello codesys users, i am evaluating the weidmuller plc UC20-SL2000-OLAC-EC. Is there anyone who has ever used it? The documentation I found is not much, and I have some doubts about the possibility of using recipes and reading / writing files in the folders of the plc in FTP. Thanks.
Hi all, is there a possibility to change the comment of Q timer in ladder? Because the comment is : | ``FALSE`` if ``IN`` is ``FALSE`` | ``TRUE`` if ``IN`` is ``TRUE`` and delay time ``PT`` elapsed and is not so beauty... Codesys is 3.5.12. Thanks !
Hi all, is there a possibility to change the comment of Q timer in ladder? Because the comment is : | ``FALSE`` if ``IN`` is ``FALSE`` | ``TRUE`` if ``IN`` is ``TRUE`` and delay time ``PT`` elapsed and is not so beauty... Codesys is 3.5.12. Tanks !
Hi all I am using a schneider m262 plc that is programmed with ecostruxure 1.2 (based on codesys 3.5.12) In this plc when the IDE connects online, the user and password are asked. First time i need inpunt Administrator , Administrator and after I am invited to change password. From now on, online access requires Administrator and the password I have chosen. When I am online I see below the access as Administrator. This is good for plc security. But with these settings, an hmi (not schneider) cannot...
Hi, for control a temperature with one output that heats and one that cools, you can use Three-point controls. ThreePointController: Function block for implementing a three-point control ThreePointControllerWithValueHysteresis: Function block for implementing a three-point control with value-based modulation (Part of Control Loop Library)