Post by spareparts on SPI Master not running/MCP3008 Missing driver.
CODESYS Forge
talk
(Post)
Up and running thank you.
Last updated: 2023-09-13
Post by transmin01 on CANbus issue
CODESYS Forge
talk
(Post)
Hi, I have been trying to get a CANbus device working with Codesys 3.5SP19 patch1 via a Beckhoff EL6751 gateway without success. I have the CANOpen_Manager and CANopen device configured but this will not run. Is there any code required to kickstart the CANbus comms into action? Regards Trevor
Last updated: 2023-09-13
WebVisu on mobile devices
CODESYS Forge
talk
(Thread)
WebVisu on mobile devices
Last updated: 2023-09-13
Post by egret on Issue with J1939, PGN 65267 (Vehicle Position)
CODESYS Forge
talk
(Post)
I have a J1939 network (ISOBUS) connected to my PLC. I can receive various PGNs such as 65256 (Vehicle Direction/Speed) and 65254 (Time/Date). However, I cannot receive 65267 (Vehicle Position). PGN 65267 (VP) contains SPN 584 (Latitude) and SPN 585 (Longitude). On the network both SPNs return a value of -210 (meaning the CAN message payload is zero in both cases). The conversion settings are the default values and appear to be correct (see attached screenshot). Using a CAN analyser I can see that PGN 65267 (Vehicle Position) is being transmitted over the network with valid (non-zero) data that matches the latitude and longitude coordinates I would expect. I've created a program to read the raw J1939 data and this also returns valid data. It seems that the Codesys J1939 database has a problem with reading PGN 65267 messages. Can anybody else confirm this? I'm using Codesys Version 3.5 SP16 Patch 5.
Last updated: 2023-09-13
Post by kdasystems on WebVisu on mobile devices
CODESYS Forge
talk
(Post)
Hello I have a problem with web visu. When I open it to normal screen it is with good quality, but when I use it on mobile phone or tab then it is really bad quality, almost not possible to read the information. Can somebody help me what are the exact settings in the visu manager for this
Last updated: 2023-09-13
Issue with J1939, PGN 65267 (Vehicle Position)
CODESYS Forge
talk
(Thread)
Issue with J1939, PGN 65267 (Vehicle Position)
Last updated: 2023-09-13
Post by chris12345 on OPC UA datasource low read frequency
CODESYS Forge
talk
(Post)
Hi yr00, the default sampling interval is set to 1s. you can generate your own client settings, this link should help you:- https://content.helpme-codesys.com/en/CODESYS%20Communication/_comm_use_dynamic_opc_ua_server_comm_settings.html
Last updated: 2023-09-13
OPC UA datasource low read frequency
CODESYS Forge
talk
(Thread)
OPC UA datasource low read frequency
Last updated: 2023-09-13
Post by chris12345 on OPC UA datasource low read frequency
CODESYS Forge
talk
(Post)
Hi yr00, the default sampling interval is set to 1s. you can generate your own client settings, this link should help you:- https://content.helpme-codesys.com/en/CODESYS%20Communication/_comm_use_dynamic_opc_ua_server_comm_settings.html
Last updated: 2023-09-13
RPI zero W - cant install edge gateway
CODESYS Forge
talk
(Thread)
RPI zero W - cant install edge gateway
Last updated: 2023-09-13
Post by danwoodlock on RPI zero W - cant install edge gateway
CODESYS Forge
talk
(Post)
I see now this is the wrong section. Please close this thread, and I'll repost in the runtime section.
Last updated: 2023-09-13
Post by danwoodlock on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
Hello all, First post. I recently acquired an RPI zero W from amazon, and have been using it with Codesys v3.5 SP19 patch 2. I first got it working yesterday, and after installing the runtime on the Pi, I was prompted to install the edge gateway. Installation of the edge gateway failed because of unsupported architecture, undeterred I was able to connect to the pi and program as I wanted. The issue I've noticed is that if I do not load anything to the pi overnight, I can then no longer connect to the pi and download, although I can still ping it from my pc. I found that if I power cycle the PI, I am then able to connect again, and it works as normal. I did some googling and found instances where people recommended downloading the newest edge gateway, which brings me here. Wondering if there are any suggestions, or if this is a known issue. I actually tried installing all 3 versions of edge gateway for science, but all fail with the same message. Thanks -Dan
Last updated: 2023-09-13
Post by danwoodlock on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
I believe the reason that I eventually lose my ability connect is because of exceeding the time limit for demo mode. Still unsure why I cannot update the edge gateway though.
Last updated: 2023-09-13
Post by ernesto881124 on ernesto881124
CODESYS Forge
talk
(Post)
Hello good morning everyone I would like to ask a question, is it possible to directly connect a device that only contains modbus RTU communication through an R-45 connector, directly to the PC? Or would you need an intermediate device to achieve communication? It would be of great help to me because I cannot achieve communication between the Codesys simulator plc and a Fuji Frenic mini VFD, please help me if anyone has had the same experience. Thank you so much
Last updated: 2023-09-13
Post by eschwellinger on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
check 'uname -a' by ssh connection - addtional you'll probaly find the reason for not running with application by 'cat /var/opt/codesys/codesyscontrol.log' incase you are using 4.9.0.0 runtime version
Last updated: 2023-09-13
Post by danwoodlock on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
Thank you for the recommendation! attached result of 'usname -a'
Last updated: 2023-09-13
Post by danwoodlock on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
Thanks very much for the explanation. I am basically new to the rpi world, but somewhat familiar with the indraworks/CtrlX versions of codesys. Appreciate your help.
Last updated: 2023-09-13
RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Thread)
RPI Zero w - Edge gateway cant install
Last updated: 2023-09-13
Post by eschwellinger on RPI Zero w - Edge gateway cant install
CODESYS Forge
talk
(Post)
ok now it is clear - this is a single core Pi Zero W. For this device there is no edge device available. But just for working with CODESYS it is not really needed and yes plc runs only for 2h unlicensed.
Last updated: 2023-09-13
Post by transmin01 on EtherCat Master cannot open network adaptor on Win10x64 target
CODESYS Forge
talk
(Post)
Thanks @eschwellinger installed WinPcap. Regards Trevor
Last updated: 2023-09-14
Post by fefefede on Get the numer of day
CODESYS Forge
talk
(Post)
Hello i tro to create a program to turn on or off the air condition in relationship temperature and numer of day. I can't get the number of day. I try this after installing SysTime library but this not work and have this error on debug ------ Build started: Application: Device.Sim.Device.Application ------- Typify code... Generate code... [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0032: Cannot convert type 'Unknown type: 'SysTimeCore(TRUE)'' to type 'TIME' [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0035: Program name, function or function block instance expected instead of 'SysTimeCore' [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0032: Cannot convert type 'Unknown type: 'DayOfWeek(CurrentTime)'' to type 'INT' [ERROR] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0035: Program name, function or function block instance expected instead of 'DayOfWeek' [INFORMATION] giorno_accensione_aria: PLC_PRG Device: PLC Logic: Application: C0181: Related position Build complete -- 4 errors, 0 warnings : No download possible PROGRAM PLC_PRG VAR Temperatura: UDINT; AriaCondizionata: BOOL := FALSE; CurrentDayOfWeek: INT; //Variabile Giorno CurrentTime: TIME; GiornoDellaSettimana: INT; DayOfWeek: INT; END_VAR CurrentTime := SysTimeCore(TRUE); // Ottieni l'ora corrente CurrentDayOfWeek := DayOfWeek(CurrentTime); CASE GiornoDellaSettimana OF 1: // Azioni per Lunedì 2: // Martedì se più 10° accend altrimenti spegni IF Temperatura >= 10 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 3: // Mercoledì se più di 50° accendi altrimenti spegni IF Temperatura >=50 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 4: // Giovedì se più di 40° accendi altrimenti spegni IF Temperatura >=40 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 5: // Venerdì se più di 50° accendi altrimenti spegni IF Temperatura >=50 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 6: // Sabato se più di 25° accendi altrimenti spegni IF Temperatura >=25 THEN AriaCondizionata := TRUE; ELSE AriaCondizionata := FALSE; END_IF 7: // Domenica sempre spenta AriaCondizionata := FALSE; END_CASE
Last updated: 2023-09-14
EtherCat Master cannot open network adaptor on Win10x64 target
CODESYS Forge
talk
(Thread)
EtherCat Master cannot open network adaptor on Win10x64 target
Last updated: 2023-09-14
Post by transmin01 on EtherCat Master cannot open network adaptor on Win10x64 target
CODESYS Forge
talk
(Post)
Hi, If I utilise an EtherCat master with a Beckhoff EK1100 coupler on a Win10x64 target I get a "Network Adaptor could not be opened" error. I have tried this on both a VM and a physical PC. Has anyone experienced this issue? Regards Trevor
Last updated: 2023-09-14
Post by transmin01 on CANbus issue
CODESYS Forge
talk
(Post)
Update: This initial issue was when using a Linux target PLC. Since then I have created a Win10 target PC and the Codesys software reported an issue associated with the device version (see attached). I am assuming this is an incompatibility with the xml file from the manufacturer and the firmware version on the module and I am chasing this up with Beckhoff. Question is, why would this not report with a Linux target?
Last updated: 2023-09-14
Post by transmin01 on PCAN serial "No CAN driver found"
CODESYS Forge
talk
(Post)
Hi, I am using a PCAN mini CAN board which has the Windows drivers installed on the target PLC. PCAN board can be seen in device manager. However, I am getting "No CAN driver found" error. I have read the post https://forge.codesys.com/forge/talk/CODESYS-V2/thread/44aae19318/ and have uncommented the CmpPCANBasicDrv driver in the CodesysControl.cfg file in development PC and have copied it to the target PC. Current CodesysControl.cfg file attached. Is there anything else I am missing? Regards
Last updated: 2023-09-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
.