Activity for DavidBo

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    When I use the FUNCTION_BLOCK ModbusChannel I have to sepcify the integer iChannelIndex It can easily go wrong if one has many channels. It would be better if one could use the name. Is that possible? Attached a snippet of the channel name and the channel index to the left.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    CODESYS Control for Raspberry Pi MC SL v4.4.0.0 CANopen_Manager 4.2.0.0 I did not call rm directly from my TASK-i2c, it was trough the attached python script. It is not always a problem happens, but sometimes a rm takes a long time. I reduced the amount of calls to logi2c.py but I don't understand why TASK-i2c sometimes can cause problems for TASK-CAN

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    CODESYS Control for Raspberry Pi MC SL v4.4.0.0 CANopen_Manager 4.2.0.0 I did not call rm directly from my TASK-i2c, it was trough the attached python script. It is not always a problem happens, but sometimes a rm takes a long time. I reduced the amount of calls to logi2c.py but I don't understand why TASK-i2c sometimes can cause problems for TASK-CAN

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    3.5 18 SP2 I think the control is 4.2.0.0. I am not in the office before on Wednesday.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have noticed that a rm file1.txt command on a shell has an impact on the cycle time for a TASK writing to file2.txt. Seen in the Monitor fane of the Task configuration Furthermore if a TASK makes a system call like rm, its cycle time increases of course but it seems to have an invisible impact on other TASKs too. I have a TASK for handling communication over the CANbus (SPI) where it stops sending "Heartbeats" for many seconds when another TASK does a system rm. Why is that not seen on the Monitor...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I try with BYTE_TO_HEXinASCII but I cant get it right. How do I convert a word value like 15432 to the HEX text string '3C48'

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    CODESYS Control for Raspberry Pi MC Does CODESYS use its own native driver for I2c? I have a python script communicating with a device simultaneously with a CODESYS doing the same. The bus is not saturated. But I get many read errors

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    If my application does some kind of violation which makes it cast an exception it will trigger my real watchdog which results in a reboot. Unfortunately the log it seems only shows the boot sequence. Is it possible to see what happen before reboot?

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    For Raspberry Pi I have made a python script which regularly read a bulk of data over the ic2 from a device. Sometimes I get an Exception an IOError. I assume similar things can happen in CODESYS. So how does CODESYS handle that? Can I get any info about such an event?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    For Raspberry Pi I have made a python script which regularly read a bulk of data over the ic2 from a device. Sometimes I get an Exception an IOError. I assume similar things can happen in CODESYS. So how does CODESYS handle that?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have made an I2C library where writing happens by calling write8 I now see that I do not call BeforeWriteOutputs at all, however it seems to work data are sent at least for an hour. So is BeforeWriteOutputs needed

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    We have several old project written with 3.5.17 and 3.5.18 and also some older Until now when a customer ordered a product from us. We just installed (we have a tested image) and added a license Now the license policy has changed and we have to buy a License Control Basic S or M However it only works with CODESYS Development System Version 3.5.19.10 or higher Does that mean we have to upgrade all our old products? That is not a simple task as a previous post has explained with weird error messages...

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    What does CODESYS expect me to do when I get such an error message:

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    What does CODESYS expect to do when I get such an error message:

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Well. One can do that, I have found a python script which can modify /etc/dhcpcd.conf and I suppose there is a way I can execute it from CODESYS and it seems to be the only way

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    With CODESYS V3.5 it is possible for a user to do the following things among many others. 1) Handling certificates especially move a certificate to the trusted folder. 2) Change password and create new users for OPC UA access However it requires access to the whole projects and its source code. Something you might not want to hand over to an end user for a stand alone product. Is there a way out of this problem?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I want to make an application with a UI for CODESYS Control for Raspberry Pi MC SL which make it possible to switch between dynamin and fixed IP address and to set the IP address. However I do not know whether that is possible?

  • DavidBo DavidBo posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    It was but is running again

  • DavidBo DavidBo posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    I try to install license on server license.codesys.com.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I had one RPI device where I could login. I copied the SD-flash over to another SC-flash. This new SD-flash was inserted in the new device. I can boot the new device but I cannot login why? How can I install an application on this new device? Control 4.4.0.0 cat os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums"...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I was just wondering is the following option possible and what the settings should be. Is OPC communication possible with only and mandatory server certificate but no client certificate?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have attached a file there is a delay for about 10 seconds after "Read connection settings.." I suppose the webserver is not up during that time. Why do we have that delay?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Pi Bullseye, CODESYS 4.4.0.0, running kiosk mode The chromium browser is set to access http://127.0.0.1/webvisu.htm but it does not happen without a DHCP-server on the network. It comes up with a reload page button which can reload the page after a while. I think http://127.0.0.1/webvisu.htm always immediately should be accessible. What is wrong?

  • DavidBo DavidBo posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Do you also use the I2C_master at the same time?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    FUNCTION_BLOCK Pump VAR idStr: STRING:=' '; pstr: POINTER TO STRING:=ADR(idStr); END_VAR In the declaration above I get the following error SA0175: Suspicious operation on string: Possible index access 'ADR(idStr)'. How do I solve that problem?

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    We have now discovered. That enabling of the I2C interface and after adding an I2C_master but without any devices will have an impact on the traffic on the spi interfaces (or the canopen manager) and here by on the traffic on the can bus as well. We thought that the OS or CODESYS behind the scene with a critical region or semaphores ensured protection of the above. Because in the above example we had an I2C_master as well as one device. Without any I2c_master it can run for days, with an I2C_master...

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Raspberry Pi 2 & 4 I suppose that that the I2C_master doesn't do anything as long no device are added. But my experiments have shown tha it interferes with spi. However it requires a great deal of traffic to see it. How can I make sure that SPI and I2c are not used simultaneously?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Raspberry Pi 2 & 4 I suppose that that the I2C_master doesn't do anything as long no device are added. But my experiments have shown tha it interferes with spi. How can I make sure that SPI and I2c are not used simultaneously?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    We have now discovered. That enabling of the I2C interface and after adding an I2C_master but without any devices will have an impact on the traffic on the spi interfaces and here by on the traffic on the can bus as well. We thought that the OS or CODESYS behind the scene with a critical region or semaphores ensured protection of the above. Because in the above example we had an I2C_master as well as one device. Without any I2c_master it can run for days, with an I2C_master only for <3 hours

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Raspberry Pi I have in the log for the CANOpen_Manager the following message [-img src=canopen manager.jpg width=50%: missing =-] "Tx message pool is empty. Tx queue contains still messages" My problem is that the CANopen_Manager stops sending heartbeat, but can still receive.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    We are talking about cyclic PDO. It means a loss of some frames (messages) is not a problem. The problem is that in the above example the transmitting of any message PDOs or heartbeat from the master simply stops and a warm reset has to be done. I don't think the load in the above example is high. However, it can be the driver (or stack) for the can bus, which cannot figure out to queue messages properbly if they come fast from the CANOpen_manager. I will later try it out with a newer version (Bullseye)...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Can anyone explain how the CANopen manager schedules the PDO for each node at every PLC cycle. What happens if the CANBus controllers buffer is full (PiCAN2 is using MCP2515)? It seems only a limited number of frames from the master can be sent from the master, one for each node of total 6. Above that after a while the transmitting from the Pi just stops. The CANOpen Manager version 3.15.17.0 does not it seems scale well.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Have you enabled SPI in Pi using raspi-config

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    CAN bus speed calculation Raspberry Pi 2 with a HAT PiCAN 2 250kbit/s, 8 identical nodes, 1m A Bus cycle task for the CANopen manager is a special created task with a cycle time of 10ms Each Node Receives 1 PDO and transmits 3 PDO cyclic Pi produces SYNC Cycle period 400ms Windows length 40ms Pi produces heartbeat. Producer time 800ms Each node is set to consume a heartbeat within 1800ms Assuming that each PDO is sent in one frame of 8 data bytes we get the amount of bits transmitted at every SYNC...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have a CANbus device which can do a special operation during it cannot send a heartbeat. The error behaviour is that the CANopen manager stops the device. How can I temporarily disable the error behavior for this device? CANRemoteDevice_Diag.ErrorControlActivated can only be get not set.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I deleted the .cmact_license/ directory and then installed my backup license CMLicenseNew.WibuCmRaU with the license manager. It seems to work now

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    License installed but still in demo mode as seen: I have deleted the cmact_licenses/ directory since it was empty.

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    License installed but still in demo mode as seen: I have deleted the cmact_licenses/ directory since it was empty.

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    License installed but still in demo mode as seen: I have deleted the cmact_licenses/ directory since it was empty.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    License installed but still in runtime mode as seen: I have deleted the cmact_licenses/ directory since it was empty.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    When I choose: Install or update the add-ons in this installation I get "Package Installation Error: This application requires at least IPackageEngine13." Where do I find this engine and what should I do to ensure that my CODESYS is using it?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I tried to open the project from an archive with CODESYS V3.5 SP17 Patch 2 and I got this: Why does CODESYS recommend "Harmonia-EZO-0.17p (CODESYS V3.5 SP17 Patch 2)" considering the fact that this actual is what I am doing?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Why cannot I open this project? See the error message? What should I do?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Your link is broken

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Don't get me wrong I like CODESYS very much, but to keep track on all the used versions of everything for ones application is difficult. What is the problem? My workflow goes like this: 1) I make an application 'A' 2) It is tested and validated 3) I want to store it with all relevant libraries and the CODESYS control. How do I do that? 4) 2 years pass 5) I get a new computer 6) I install the newest version of CODESYS Development System V3 7) Now I want to do a minor bug fix of application 'A' 8)...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    It seems you just are missing the library MEMUtils if you reading your log carefully

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    maybe I should add uname -a Linux cilix-19 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux I have reason to believe it might work with an older version of Buster and CODESYS

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    If it is raspberry pi why not just modify /opt/codesys/scripts so it sets up with ip link set DEVICE type can fd on maybe CODESYS will work with that? I don't know but give it a try

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    CODESYS Control For Raspberry Pi MC SL Version 4.4.0.0 Version: 3.5.17.0 Description: CANopen Manager Configuration version: 3.5.1.0 Baud rate 250kbit/s MainTask Interval 100ms SYNC Cycle period 100ms, Window length 30ms I have 8 nodes For each node I have 4 Rx PDO and 4 Tx PDO. Heart beat every 400ms Pican2 as CAN bus controller mcp2515 I have noticed when I enable i2c in /boot/config.txt with dtparam=i2c_arm=on I do have an i2c device a PicoUPS The communication with the 8 devices stops. Have others...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I can report that all my PDO was device specific asynchrony it means in my case that when ever a variable in the PDO changed value the PDO was sent. For one device it was acceptable but for 2-3 devices the bus got saturated and the behavior of CODESYS became unpredictable. When I changed the PDO to cyclic the problem disappeared.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am using static analysis which warn me about variable A being greater than 1024 bytes Why is that a problem? And what should I do if I have big variables? PROGRAM PLC_PRG VAR CONSTANT nr_of_motors:INT:=2; END_VAR VAR GetState : ARRAY[1..nr_of_motors] OF CIA405.GET_STATE; devState : ARRAY[1..nr_of_motors] OF CiA405.DEVICE_STATE; enableDev: ARRAY[1..nr_of_motors] OF BOOL:=[nr_of_motors(FALSE)]; confirmDev: ARRAY[1..nr_of_motors] OF BOOL; A: ARRAY [1..nr_of_motors] OF Motor; initPRG:BOOL:=TRUE; operational:ARRAY...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have a problem with receiving heat beats from 2 slave nodes, and I am beginning to believe that the CANopen Manager has a problem with receiving heat beats either by doing some access violation or overwrite data not yet read. My system is this: CODESYS Control For Raspberry Pi MC SL Version 4.4.0.0 Version: 3.5.17.0 Description: CANopen Manager Configuration version: 3.5.1.0 Baud rate 250kbit/s MainTask Interval 100ms SYNC Cycle period 100ms, Window length 20ms For each node I have 4 Rx PDO and...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    In the "window" all PDO is transmitted and received. You have 100ms and I think you need 50ms so that should be alright. But hereafter you have only 20ms to SDOs and I suppose "heart beat"s (But I don't know) You have 3 heart beats one from each slave and one from the master maybe 20ms is not enough. What about a period of 160ms and heart beats of 320ms. What happens if you power off/on for the system. CODESYS has a log for each slave what does these say? What is your application cycle (not SYNC...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Why is it a problem that something starts with an executable stack ? And what can be done about it. Bullseye, Raspberry Pi 4

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I don't know SIL2 but since it has something to do with safety one could imagine that heart beat might be a requirement. If you enable the "heat beat" let the time for "heart beat" producing be a multiple of the the SYNC period.

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Try to disable heart beat producing on master, but enable SYNC with your new timing settings Please disable heart beat on the slave too

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Try to disable heart beat producing on master, but enable SYNC with your new timing settings Please disable heart guarding on the slave too

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Try to disable heart beat producing on master, but enable SYNC with your new timing settings

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    "If I disable the SYNC producing setting in the master CANopen manager, the above observation is the same except only Asynchronous PDO data is showing on the CANbus, and the slave continues to operate." Does that mean that without SYNC, the led on the slave remains green. What is your system (Raspberry Pi or something else?)

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    How many PDOs do you have? The Cycle period has to be larger than the Window length. If I understand it correctly the window is the period of time where the PDOs are transmitted and received.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    How many bits do you use for PDO and what is the "Cycle Period" and "Window Length" Does the slave expect a "Heart beat" or "Node guarding"?

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Has anybody tried two build a CANbus network with 2 slaves, Raspberry Pi (Bullseye) and Waveshare 2-CH CAN FD HAT rev2.1 and get it to work with CODESYS Control for Raspberry Pi MC SL 4.4.0.0 or any other version? can0 is using interrupt 25 with the above setup Every time I make I do a warm reset. I receive a message: Message from syslogd@cilix-19 at Jul 6 13:21:54 ... kernel:[ 25.987276] Disabling IRQ #82 (Which is related to interrupt 25), in a terminal window. Is that normal?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Has anybody tried two build a CANbus network with 2 slaves, Raspberry Pi (Bullseye) and Waveshare 2-CH CAN FD HAT rev2.1 and get it to work with CODESYS Control for Raspberry Pi MC SL 4.4.0.0 or any other version? can0 is using interrupt 25 with the above setup Every time I make I do a warm reset. I receive a message disable interrupt xx (Which is related to interrupt 25), in a terminal window. Is that normal?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have just installed a "CODESYS Runtime Package" on my Raspberry Pi. And now I cannot make a connection and do login and transfer my application to the Pi. Scanning can simply not find any device. I have worked with CODESYS for years it is first time I see this happen. What can be wrong? Here a snippet from the "System Info" Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have figured out that if I create 2 servers one with an ip address and another one with opc.tcp://sipylus:4840 and I do: 1)connect with the server with ip address 2) disconnect 3) connect with the server sipylus Now it works fine, so it seems that UaExpert resolves hostnames in some local cache before it connects to the server, but again it does not solve my problem.

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    First to make it work you will need a DNS to resolve hostname to ip addresses. I have done that with dnsmasq on a raspberry pi: C:\Users\DavidBo>ping sipylus Pinging sipylus.local [192.168.1.101] with 32 bytes of data: Reply from 192.168.1.101: bytes=32 time<1ms TTL=64 Reply from 192.168.1.101: bytes=32 time=1ms TTL=64 Reply from 192.168.1.101: bytes=32 time=1ms TTL=64 Reply from 192.168.1.101: bytes=32 time=1ms TTL=64 Ping statistics for 192.168.1.101: Packets: Sent = 4, Received = 4, Lost = 0 (0%...

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Using CODESYS V3.5 SP 2 and CODESYS Control for Raspberry Pi SL version 3.5.15.30 Together with a DNS/DHCP Server made with another Pi I get the following error in UaExpert when connected with a laptop. 17:41:43.393 | Server Node | OPCUAServer@harmonia-05 | Endpoint: 'opc.tcp://harmonia-05:4840' 17:41:43.393 | Server Node | OPCUAServer@harmonia-05 | Security policy: 'http://opcfoundation.org/UA/SecurityPolicy#None' 17:41:43.393 | Server Node | OPCUAServer@harmonia-05 | ApplicationUri: 'urn:harmonia-05:3S%20-%20Smart%20Software%20Solutions%20GmbH:CODESYS%20Control%20for%20Raspberry%20Pi%20SL:OPCUA:Server'...

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

  • DavidBo DavidBo modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have an RS485 with 3 MODBUS slave devices and with different addresses connected. I assume that I have to add 3 Modbus_Serial_Device in codesys but I am only allowed to add one. Why?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have an RS485 with 3 MODBUS slave devices and with different addresses connected. I assume that I have to add 3 Modbus_Serial_Device in codesys but I am only allowed to add one. Why?

  • DavidBo DavidBo posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    My application sometimes throws a watchdog exeception because some calculations take too long time. My application consists of 3 FB how can i figure out in which FB it occurs. A press on SOURCEPOSITION gives "The position could not be matched to a POU. Code for the application must be generated for this to work". Why that? I mean I have coded in CODESYS so there must be code.

  • DavidBo DavidBo posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    It seems that the problem occurs when the XYchart is in a frame. How can you have an XYchart in a frame?

  • DavidBo DavidBo modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have tried to create a XYchart with the bare minimum. I have VAR aV: ARRAY [0..10] OF REAL:= [10,21,30,40,50,60,60,60,60,60,60]; aDuty: ARRAY [0..10] OF REAL:=[ 0,10,20,30,40,50,60,70,80,90,100]; END_VAR But my application crash with an exception Why does it crash

  • DavidBo DavidBo modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have tried to create a XYchart with the bare minimum. I have VAR aV: ARRAY [0..10] OF REAL:= [10,21,30,40,50,60,60,60,60,60,60]; aDuty: ARRAY [0..10] OF REAL:=[ 0,10,20,30,40,50,60,70,80,90,100]; END_VAR But my application crash with an exception Why does it crash

  • DavidBo DavidBo modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have tried to create a XYchart with the bare minimum. I have ~~~ VAR aV: ARRAY [0..10] OF REAL:= [10,21,30,40,50,60,60,60,60,60,60]; aDuty: ARRAY [0..10] OF REAL:=[ 0,10,20,30,40,50,60,70,80,90,100]; END_VAR ~~~ But my application crash with an exception Why does it crash

  • DavidBo DavidBo modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have tried to create a XYchart with the bare minimum. I have ~~~ VAR aV: ARRAY [0..10] OF REAL:= [10,21,30,40,50,60,60,60,60,60,60]; aDuty: ARRAY [0..10] OF REAL:=[ 0,10,20,30,40,50,60,70,80,90,100]; END_VAR ~~~ But my application crash with an exception Why does it crash

  • DavidBo DavidBo posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have tried to create a XYchart with the bare minimum. I have ~~~ VAR aV: ARRAY [0..10] OF REAL:= [10,21,30,40,50,60,60,60,60,60,60]; aDuty: ARRAY [0..10] OF REAL:=[ 0,10,20,30,40,50,60,70,80,90,100]; END_VAR ~~~ But my application crash with an exception Why does it crash

  • DavidBo DavidBo modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    I have no problem with PiCAN2 but a script has to be called in order to enable the CAN bus before CODESYS !/bin/sh BITRATE=expr $2 \\* 1000 ifconfig $1 down echo ip link set $1 type can bitrate $BITRATE ip link set $1 type can bitrate $BITRATE ifconfig $1 up

  • DavidBo DavidBo modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    I have no problem with PiCAN2 but a script has to be called in order to enable the CAN bus before CODESYS

  • DavidBo DavidBo posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    I have no problem with PiCAN2

  • DavidBo DavidBo posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    I thought naively that by enabling the watchdog the Plclogic would be restarted when a timeout occur, but all I get is an exception and my task stops. How can I restart a task when a watchdog exception occur? I can see I can add an Event handler for an exception but which function should I call to restart my task or application?

  • DavidBo DavidBo posted a comment on discussion Engineering

    I make an application with a Visualization with a trace. It shows the temperature over time 10-20 min. I want by pushing a button reset the trace so it start a 0 again. How can I accomplish that?

  • DavidBo DavidBo posted a comment on discussion Engineering

    Are you using CANopen? Are sure that you can't configure the device to at least discard some of the messages in case a network failure. Is it possible to send a reset command to the device which clears the buffer?

  • DavidBo DavidBo posted a comment on discussion Engineering

    How do I configure a GPIO input port with a pullup or a pulldown resistor. Shall I do that with a python script?

  • DavidBo DavidBo posted a comment on discussion Engineering

    I am using a TextList where the ID is set to a name like timeID, volumeID or continousID. However if these names don't represent an integer, I cannot use the TextList in a "ComboBox for integers". A ComboBox for integers requires IDs like 0,1,2. So my question is how can I assign 0 to timeID and 1 to volumeID?

  • DavidBo DavidBo posted a comment on discussion Codesys V2.3

    I have the structure: TYPE Horse : STRUCT flow : ARRAY [0..1, 0..1] OF REAL; END_STRUCT END_TYPE Then I have a GVL with: VAR_GLOBAL flow_set : ARRAY [3..4] OF Horse:=[flow := [{1.6,2.4},{0.210,0.435}], flow := [{1.6,2.4},{0.210,0.435}]]; END_VAR I get the error message that flow is not defined. How do I initialize my structure and array correctly?

  • DavidBo DavidBo posted a comment on discussion Engineering

    I assume that ic2master somewhat is equivalent to: https://linux.die.net/man/8/i2cget However some devices also require a data address besides the chip-address. How can I specify that?

  • DavidBo DavidBo posted a comment on discussion Engineering

    I try to figure out how to use ac_datalog to log a value using sqlite as storage. CODESYS creates a file /var/opt/codesys/PlcLogic/ac_datalog/Application_DataLog.sqlite but as seen here it has no tables. Why? sqlite> .dbinfo database page size: 32768 write format: 1 read format: 1 reserved bytes: 0 file change counter: 12 database page count: 2 freelist page count: 1 schema cookie: 12 schema format: 4 default cache size: 0 autovacuum top root: 0 incremental vacuum: 0 text encoding: 1 (utf8) user...

  • DavidBo DavidBo posted a comment on discussion Engineering

    The timestamp used for alarm log is this: https://www.epochconverter.com/ldap But I dont know how to convert it using sqlite3. It make it diffecult to do a query

  • DavidBo DavidBo posted a comment on discussion Engineering

    I can read the alarmlog with sqlite3, but I don't understand the format and the meaning of the various tables. However, I think that the time is specified in milliseconds since January 1984. How can I make query which list the alarms formatted correctly? I assume I have a similar problem with AC_DataLog . It is of course fine that we can store values in a sqlite database, but it would be nice if we also could read these stored values.

  • DavidBo DavidBo posted a comment on discussion Engineering

    Hi campell The end user of my application is not using the IDE and can therefore not export it to a CSV file. Is it possible to do it from the application if the user for instance press a button? I want to clarify I want to log every time the temperature change 10%. For instance: 10.0 11.0 11.1 And so on. Is the Alarm and Event manager adequate for that?

  • DavidBo DavidBo posted a comment on discussion Engineering

    We are living in 2020 logging should be a trivial thing, but I am lost. I want to log the a temperature every time it has changed 10% or 1 degree from the desired value. I want the log to be cyclic, I want to store it an CSV file How do I do that? What shall I look for? Shall I use CmpLog.LOG_STD_LOGGER or maybe TrendRecording ?

1