Welchen I-Port benötige ich?
CODESYS Forge
talk
(Thread)
Welchen I-Port benötige ich?
Last updated: 2024-10-01
Post by naps on Welchen I-Port benötige ich?
CODESYS Forge
talk
(Post)
Hallo, ich versuche eine 750-653(konfiguriert per iocheck) über die Wago Modbus Lib einzusetzen. Ich scheitere im moment an dem Korrekten I-Port. Ich habe es mit 75x_653 und IoConfig_Globals.75x653 versucht, jedoch bekomme ich folgenden fehler: ------ Übersetzungslauf gestartet: Applikation: Device.Application ------- Code typisieren... Code erzeugen... [FEHLER] Unbenannt7: POU_1 Device: SPS-Logik: Application: C0032: Typ 'DED.CAADiagDeviceDefault(caa device diagnosis, 3.5.20.0 (caa technical workgroup))' kann nicht in Typ 'WagoTypesCom.I_WagoSysComBase(wagotypescom, 1.6.2.3 (wago))' konvertiert werden Übersetzung abgeschlossen -- 1 Fehler, 0 Warnungen : Kein Download möglich Wie kann ich den die Karte benutzen?
Last updated: 2024-10-01
Post by ivanj on Codesys V3 + Rpi + PCA9685 + two robot arms
CODESYS Forge
talk
(Post)
greetings to everyone I have a system consisting of rpi3 computer with codesys v3 installed connected to one pca9685 through which the servo motors of the two robotic arms are connected (each robot arm has 6 motors) I managed to get that the pca9685 can only drive 4 servos on the first arm the other 2 on the same robot arm do not respond, nor do the remaining 6 they do not react on the other robotic arm. Power is connected to the pca9685 for motors of sufficient power or amperage. I tried to put another pca9685 but the same thing happens again. What is the possible problem?
Last updated: 2024-10-02
Post by nano on FB string and naming
CODESYS Forge
talk
(Post)
inside the fb, use the reflection-attribute and get the instancename includibg whole path.when im right, the applicationname will also reflected, if yes. you have to trim it. https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_instance_path.html
Last updated: 2024-10-02
FB string and naming
CODESYS Forge
talk
(Thread)
FB string and naming
Last updated: 2024-10-02
Codesys V3 + Rpi + PCA9685 + two robot arms
CODESYS Forge
talk
(Thread)
Codesys V3 + Rpi + PCA9685 + two robot arms
Last updated: 2024-10-02
TargetVisu for Linux SL not starting
CODESYS Forge
talk
(Thread)
TargetVisu for Linux SL not starting
Last updated: 2024-10-02
Post by rmaas on TargetVisu for Linux SL not starting
CODESYS Forge
talk
(Post)
Hello, I am trying to get TargetVisu for Linux working but i am having some troubles. The problem is that after installation it is not starting automatically on boot and i cannot start it from the update Targetvisu tool. When i try i get the following error (see attached screenshot) The file /opt/codesysvisualization/scripts/codesysvisualization_start.sh is missing... Steps performed: - installed fresh Debian 12.7 on virtual machine - installed all required libraries as described here: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_target_visu_for_linux.html - then installed the TargetVisu for Linux SL 4.13.0.0 using the Codesys IDE Does someone know how i can fix this? Best Regards, Rinie
Last updated: 2024-10-02
Post by mg0815 on CoDeSys bricht beim einloggen mit Fehlermeldung ab
CODESYS Forge
talk
(Post)
Ich hatte gestern (WIRD WOHL ZUFALL SEIN) das selbe Problem ... und heute auch noch Codesys 2.3.9.55 2 verschiedene PC's (win10, win7), der ältere hatte IMMER funktioniert. 3 Controller (2x 891, 881) ... und alle mit dem selben Problem Vielleicht antwortest Du hier mal. Tausend Dank PS: Inzwischen auch mit WAGO in Kontakt (aber noch ohne Lösung)
Last updated: 2024-10-02
Post by olemart on Set REFERENCE to 0 (null) when no longer used
CODESYS Forge
talk
(Post)
Did you find out if this work?
Last updated: 2024-10-02
CoDeSys bricht beim einloggen mit Fehlermeldung ab
CODESYS Forge
talk
(Thread)
CoDeSys bricht beim einloggen mit Fehlermeldung ab
Last updated: 2024-10-02
Post by boris on EtherCAT error: the device is deactivated
CODESYS Forge
talk
(Post)
Hi, I am currently working in BCS-tools (basiscally codesys) and I am trying to run the GN-9386 network adapter in the EtherCAT_master , but when I run the program the Ethercat status shows the error: ''The device is deactivated''. I don't know what to do right now. Can someone explain me how to fix this error? regards, Boris
Last updated: 2024-10-02
Change remote targetvisu updaterate?
CODESYS Forge
talk
(Thread)
Change remote targetvisu updaterate?
Last updated: 2024-10-02
Post by rmaas on Change remote targetvisu updaterate?
CODESYS Forge
talk
(Post)
Hi, Is it possible to change the updaterate for a remote targetvisu? BR, Rinie
Last updated: 2024-10-02
EtherCAT error: the device is deactivated
CODESYS Forge
talk
(Thread)
EtherCAT error: the device is deactivated
Last updated: 2024-10-02
Post by balazska2 on Position values with integer variables
CODESYS Forge
talk
(Post)
Hello guys! https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_elem_label.html My question: Could I give an integer variable to the Position records (in the Element list => Position => width / height)? If yes, how? I defined a TEST integer variable with 300 value. I tried to add this variable to the width record (.TEST or only TEST), but if I saved, the value jumps back to 0. Thanks for your help! :)
Last updated: 2024-10-03
Position values with integer variables
CODESYS Forge
talk
(Thread)
Position values with integer variables
Last updated: 2024-10-03
Post by lsislsis on Alarms Placeholder
CODESYS Forge
talk
(Post)
Hello. Is there any way to set placeholder for Alarms Storage at Usb Flash Disk? Regards
Last updated: 2024-10-03
Migration from ISaGRAF to CODESYS
CODESYS Forge
talk
(Thread)
Migration from ISaGRAF to CODESYS
Last updated: 2024-10-03
Post by kobrakaister on Migration from ISaGRAF to CODESYS
CODESYS Forge
talk
(Post)
Hello everyone, I need to migrate my existing automation projects from ISaGRAF to CODESYS, and I'm looking for guidance and the best tools and strategies to ensure a smooth transition. Are there any reliable software tools or plugins that can help the conversion? What strategies should I adopt to maintain project integrity? Thank you for the help you can provide! Mat
Last updated: 2024-10-03
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 egau on Hard shutdown: no code on device after power on
CODESYS Forge
talk
(Post)
Hi, We have a machine running Codesys on a Windows IPC (CODESYS Control Win v3 - x64). When we hard shutdown the machine, the code on the PLC sometimes becomes "corrupted" after a power on (When trying to login to the PLC, we get the message "The application 'Application' does not exist on device."). I've noticed these errors in the logs, but I'm not sure what to make of them. We are not using any RETAIN variables in our code, although I'm not sure about referenced librairies. (we are using the persistence manager). I'm pretty sure that not doing a graceful shutdown is the root cause of this. This being said, what is the proper way of doing a graceful shutdown? Is putting the Codesys application in "stop" sufficient? I know how to implement this, so if it works then it would be a quick fix. However, I think we need to add a UPS, which would detect power loss and inform the PLC that it needs to initiate its shutdown, and then the PLC would shutdown gracefully. Any help with this will be greatly appreciated :)
Last updated: 2024-10-03
Post by totorovic on Hard shutdown: no code on device after power on
CODESYS Forge
talk
(Post)
I think that the .err file is the .app file renamed by Codesys, so it is compiled. We met this behaviour one time, it was because the runtime goes in exception due to bad Ethercat cables.
Last updated: 2024-10-03
Codesys installation problem
CODESYS Forge
talk
(Thread)
Codesys installation problem
Last updated: 2024-10-03
Post by egau on Hard shutdown: no code on device after power on
CODESYS Forge
talk
(Post)
Hi, thanks for the fast response :) Yes I Have a .err file. Sorry I forgot to upload it. It is a binary file though... "Runtime goes in exception before the shutdown ?" I think it goes into exception at the same time as the power is lost...
Last updated: 2024-10-03
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
.