Search results

  1. D

    GP button on Industrial Automation card

    Alex, any thoughts here?
  2. D

    Open PLC and Industrial Automation card

    One issue I found ... I can't use the GPIO lines if I've set OpenPLC to "Sequent HAT" in the hardware settings. I thought I should be able to use GPIO 23 which should not be used by the card. That is mapped to %QX0.2. It only works if I set the hardware settings to "Raspberry Pi".
  3. D

    GP button on Industrial Automation card

    Hi I'm trying to use the GP button on the hat. It's pretty undocumented. I thought it was SW1 on the diagram, but if so it should connect to GPIO 13 (pin 33) but it doesn't. Any ideas how to use?
  4. D

    Open PLC and Industrial Automation card

    yep, that works really well. thx.
  5. D

    Open PLC and Industrial Automation card

    Ok Alex, good news! Going back to default kernel fixed the crashing problem. Your routine ran all night. My original routine also runs but I still get that LED missing cycles - I'm wondering if it's an interaction of the task speed (100mS) and the switching time (500mS) of the TON/TOF calls. I...
  6. D

    Open PLC and Industrial Automation card

    one thing ... I'm using a 32 bit kernel not a 64 bit one. is that an issue?
  7. D

    Open PLC and Industrial Automation card

    unfortunately when it's locked it is completely unesponsive. That's why it's time to try again with a different kernel. I'm using a real-time preempt kernel at the moment and it's time to eliminate this.
  8. D

    Open PLC and Industrial Automation card

    I will re-install with a brand new OS and default kernel and see what happens. I also have a Pi 400 that I can see if it will plug into that. I can't see what difference the pi would make ... there's def. something in the I2c communication causing a problem OpenPLC runs all day when I use GPIO...
  9. D

    Open PLC and Industrial Automation card

    I changed Pi 3's too... see the same result.
  10. D

    Open PLC and Industrial Automation card

    lasted 40 minutes before locking up.
  11. D

    Open PLC and Industrial Automation card

    ah, yes. that will take a bit of understanding.
  12. D

    Open PLC and Industrial Automation card

    I had a look through the code and i'm a little puzzled as to how it's running. Normally, you need to complete the functions initializeHardware(), finalizeHardare(), updateBuffersIn(), updateBuffersOut(). but there's nothing like this in sequent.cpp. What am I missing?
  13. D

    Open PLC and Industrial Automation card

    OK I updated firmware to v2.06. It ran my openplc program for 12 minutes before locking up. I ran yours with it's 50mS gap but it locked up in 7mins 32 sec. I wrote some C drivers for OpenPLC for another card last year. If you are happy to share I can cast another set of eyes over it if you...
  14. D

    Open PLC and Industrial Automation card

    I can't see that as normal ... sometimes they run a little fast, others it's staying on for a cycle or off for a cycle. Unless there is a difference in the way the LEDs operate compared to anything else. I can put another led on on of the digital outputs (with a suitable resistor or course) to...
  15. D

    Open PLC and Industrial Automation card

    how does the Industrial board interface to OpenPLC? Is it via the python interface or a C library?
  16. D

    Open PLC and Industrial Automation card

    what I'm finding is that if I leave that program running, after a while the whole Pi locks up.
  17. D

    Open PLC and Industrial Automation card

    I did make the changes suggested and to no avail. I still see occasional misses. Either the led stays on or stays off for an extra cycle, like it misses the transition. I have also upped the I2C baud rate to 400Kbps to see if this made a difference, but I still see the drops. I installed...
  18. D

    Open PLC and Industrial Automation card

    Hi there Alex, I have got OpenPLC and the Sequent Industrial Hat running, but I have found a problem. I have run one of the example programs which implements two timers that act in unison to toggle a LED on and off. This runs fine if I run it on a Pi without the Sequent Industrial card with a...
  19. D

    Open PLC and Industrial Automation card

    hi just wondering - will this be based on Python libraries or have you guys written. C++. version for the run time? I checked again today and the Github repo is still dated April 5 - so is the update still in the works?
Top