Personal Data

Username:
martinlithlith
Joined:
2021-01-14 11:04:21+00:00
Location:
Sweden / CEST
Gender:
Male

Projects

  • No projects to display.

Skills

  • No skills entered.

User Activity

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    Thank you so much tvm, this was exactly what i was looking for! I did not find one among my library's so i built one and it works great. If someone that is (even) newer to codesys than me and tries so build this there is a small typo in the program above, there are two i_Lower where one of them should be i_Upper but with that change it works great. Many thanks! Martin

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    Right now i have solved with VAR Incoming_REAL:Real; //This variable increases every cycle and depends on how log the Incoming_Real has been active and can therefore differ from run to run. Add_On:Real:=10.5; Gate_Bool:Bool; Start_Clapping:Bool; Upper_limit:REAL :=1; Lower_limit:REAL :=2; High:REAL; LOW:REAL; END_VAR (with R_trig before both high and low) HIGH:=Incoming_REAL + upper_limit + Add_on; LOW:=Incoming_REAL + upper_Limit + Add_on; and then made a GT on the lower limit and LT on the upper...

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    Hi! I´m looking for a function/way to get the = function (or similar) to accept numbers that are not exactly alike. For example, VAR Incoming_REAL:Real; //This variable increases every cycle and depends on how log the Incoming_Real has been active and can therefore differ from run to run. Add_On:Real:=10.5; Gate_Bool:Bool; Start_Clapping:Bool; END_VAR If Gate_Bool=true then Add_on:=Incoming_REAL + Add_on // This increases the Add_On variable with the number from Incoming_Real. End_IF If Add_On=Incoming_REAL...

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    Is there a way to update parameters in a FB in ST? Or anything that would have the similar effect? What i´m trying to avoid is having to redo the assigning of in/out if i make any changes in the FB. Best, Martin

  • Modified a comment on discussion Runtime 🇬🇧 on CODESYS Forge
  • Modified a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    Hi! I created a FB and filled it with some code (nothing special at all), then i added and later moved it in my PLC_PRG (I think i did this without anything unusual happening. Now when i try to go online i get "invalid result package" and codesys freezes for about 30 seconds. I have tried removing the created FB and rebuilt and restarted codesys (also restarting the Codesys PLC and Gateway) but it does not help and i don´t relly know how to sole this. When i go online in simulation mode it works...

  • Posted a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    I have now tested to remove everything from the PLC_PRG, re-building and testing with no success. There is no information on the Codesys homepage and here in Codesys forge there are a couple of older, unanswered questions regarding the same issue.

  • Posted a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    Hi! I created a FB and filled it with some code (nothing special at all), then i added and later moved it in my PLC_PRG (I think i did this without anything unusual happening. Now when i try to go online i get "invalid result package" and codesys freezes for about 30 seconds. I have tried removing the created FB and rebuilt and restarted codesys (also restarting the Codesys PLC and Gateway) but it does not help and i don´t relly know how to sole this. When i go online in simulation mode it works...

View All