Subcategories

  • Mervis IDE, runtime and Mervis SCADA.

    431 Topics
    2k Posts
    L
    Na našich dvou neuronech jsem opravil tuto chybu. Asi se o ní už ví, ale pro jistotu posílám sem. #!/bin/bash # # get installed version of ca-certificate package # write the version into virtual registers 4200-4201 # # if used with --update, try update/upgrade package CA_REG1=4300 CA_REG2=4301 VREG_DIR=/run/unipi-plc/virtual-regs if [[ "$TRIGGER_UNIT" =~ ".timer" ]]; then apt-get update -y -qq || true apt-get install -y -q ca-certificates fi CA_VERSION=$(dpkg-query --show --showformat '${Version}' ca-certificates 2>/dev/null) # OPRAVA: Odřízne vše od prvního znaku, který není číslice (např. ~deb12u2) CA_VERSION="${CA_VERSION%%[^0-9]*}" if [ -z "$CA_VERSION" ]; then rm -f "$VREG_DIR/$CA_REG1" rm -f "$VREG_DIR/$CA_REG2" # Zde byla dříve chyba s redundantním /virtual-regs/ else mkdir -p "$VREG_DIR" if cd "$VREG_DIR"; then echo "$((CA_VERSION/10000))" > "$VREG_DIR/$CA_REG1" echo "$((CA_VERSION%10000))" > "$VREG_DIR/$CA_REG2" fi fi
  • CODESYS runtime on Unipi controllers.

    40 Topics
    153 Posts
    U
    @Martin-Kudláček Hi After a long time of trying and many tutorials, I made it to switch my relays on my Unipi 1.1, to read temperatures and everything with ModbusTCP and Nodered. When I see it now, it's very easy, thank you for the great board and the software.
  • OpenPLC runtime on Unipi controllers.

    0 Topics
    0 Posts
    No new posts.
  • REXYGEN control system on Unipi controllers.

    6 Topics
    18 Posts
    T
    Hi my project is fully functional thanks to you all