All Neighborhoods

CODESYS Talk

    CODESYS Forge

  • jw97ke posted a comment on discussion Deutsch 🇩🇪

    Hallo gabrielmorte, bei der Installation von dem CODESYS OMAC PackML State Machine Package aus dem CODESYS Store, wird eine Projektdatei in ein benutzerdefiniertes lokales Verzeichnis gelegt. Außerdem werden 2 zusätzliche PDF Dateien abgelegt, welche das Projekt beschreiben, so wie das Projekt auch in der Online Hilfe beschrieben wird. https://content.helpme-codesys.com/en/CODESYS%20Examples/_ex_cds_omac_state_machine.html Viele Grüße

  • TimvH TimvH posted a comment on discussion Engineering 🇬🇧

    Maybe also good to know that you could use the CODESYS installer to switch between gateways. - open the CODESYS installer - Select the (hamburger) menu - Select Settings - Select Services Then select the Gateway you would like to use.

  • kislov modified a comment on discussion Engineering 🇬🇧

    Seems like you use SIZEOF as size, but you need to use LEN as size of data which you want to write.

  • kislov posted a comment on discussion Engineering 🇬🇧

    Seems like you write SIZEOF bytes, but you need to write LEN bytes.

  • stdenits modified a comment on discussion Codesys V2.3 🇬🇧

    Hello. I am using Codesys v2.3 and trying to adapt a function from C to set multiple bits of a uint16_t variable at once: void set_state_value_16b(uint16_t *var, uint16_t mask, uint16_t val) { *var = (*var & ~mask) | (val & mask); } Current Codesys v2.3 implementation: FUNCTION set_state_value_16b : WORD VAR_INPUT variable : POINTER TO WORD; mask : WORD; val : WORD; END_VAR VAR END_VAR variable^ := (variable^ AND NOT mask) OR (val AND mask); Example of use: set_state_value_16b(ADR(ERR), 16#0001,...