Hi! I solved the question so if there is anyone else who has the same question the answer is no. You need to update the PLC to a CPX-CEC-C1-V3 (3473128). This is according to email correspondence with the Festo support. Best, Martin
Hi! On the school i´m going to there is a couple of Festo MPS station. The PLC´s are (in general) festo cpx-cec-c1 567347 b807. On the Festo homepage it says that it works with codesys 2.3, but will it work with Codesys 3.5? As i don't know if the technical specifications are updated since 3.5 was released i don't know if i need to go back to 2.3 or if i can make it work. Does anyone have any answers/ideas? Best, Martin
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
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...
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...
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
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...