Activity for martinll

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    hi! this sounds awsome! Sorry for a perhaps stupid question; how do i find you're collection?

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    Hi! I'm still on the hunt for drivers for example TCA9548 and a list or somewhere where all devices for raspberry is gathered. as this post is quite old I'm hoping/gussing that there is somewhere where work after 2021 is gathered? Or has the raspberry part if the community slowed down on creating device drivers?

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    hi! this is also a delayed answer, sorry for this. when coding in python i get the TCA9548a working. Is there someone who knows how big of a effort it would be to update Stefan's original code to make it work with a more up to date version of codesys or should i downgrade my system? andrax - are you using a downgraded version of codesys or have you downgraded all the libraries? What Oscat lib are you using? what version? thanks for your reply! Martin

  • martinll martinll modified a comment on discussion Runtime 🇬🇧

    Hi! I´ll try to get this thread going again as i´m having simliar problems. Right now i get a red triangle on my connected devices (i´m testing with a BME280 sensor and a PCA9685 resvo driver). The TCA9548 have the green symbol beside it. On the "red" devices i get that the bus is not running. I have tried to either run it using the parent bus cycle setting or creating a new freewheeling task prio 1 but nothing helps. I have compared my settings to the settings from the example from the MUX package...

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    Hi! I´ll try to get this thread going again as i´m having simliar problems. Right now i get a red triangle on my connected devices (i´m testing with a BME280 sensor and a PCA9685 resvo driver). The TCA9548 have the green symbol beside it. On the "red" devices i get that the bus is not running. I have tried to either run it using the parent bus cycle setting or creating a new freewheeling task prio 1 but nothing helps. I have compared my settings to the settings from the example from the MUX package...

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    As most of the posts are moved here around 2015, what would be the right version of codesys to run? Would it be better to install a older version of codesys or should i keep on downgrading libraries? Is there any work done to update theses libraries? It´s been a few years since the last update in this post, are there new libraries/devices for raspberry being added/posted somewhere else? Thanks, Martin

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    Feedback: I have a raspberry pi 4 (not + as in original question). It works fine to run the CODESYS Control for Raspberry Pi SL license on a pi 4.

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi, Thank you for your reply! What should be the version 4.9.0.0? I have a user named pi on the pi, thats what i´m using as credientials to be able to for example update/install runtime. Or do i need another user? once agin, thank for the reply! Martin

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! Im slowly starting to loose it and i need som help! After a few night of reading up and testing i´m still stuck as a rock and you guys and girls are my last resort for this project. Basic facts; Win 11 Codesys 3.5 SP19 2 + (64-bit) Raspberry pi 4 model b 2 gb Raspian release 11 aarch64 What keeps me up late at night; Username and Password when trying to connect to device and device only beeing connectable for a few seconds. Some of the things I have tried; Username and passord; Credientials from...

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    Hi! Thanks for your reply! I'll have a go then!

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    hi! a quick question - is it possible to run CODESYS Control for Raspberry Pi SL license on a raspberry pi 4b? i know it says all models in the data sheet, but im not sure it the data sheet has been updated seince the MC-processors for pi. best, Martin

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    hi! im planning a project on a raspberry with Codesys. For this I'll need a number of relays to control heating and fans, all a max of 24v and about 2a. How would i know if the board / relays i buy will be working with Codesys? Does every hat work or does it need a library/driver? is there a list of drivers/libraries created? as this is a hobby project all tips on a relay board or single boards that works with codesys and not to expensive are very welcome.

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    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

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    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

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    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

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    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...

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    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...

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    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

  • martinll martinll modified a comment on discussion Runtime 🇬🇧

  • martinll martinll modified a comment on discussion Runtime 🇬🇧

    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...

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    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.

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    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...

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! Thank you for all your answers! I know, this post is going further and further from the topic. I´ll try to concertize my questions and start a new post as i´m having some trouble pinpointing what i´m actually searching the answer for. Once again, thanks for all your reply, I´ll be back with a more precise question in a new post shortly. M

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! I think the 2d array was unnecessary, it seems to work fine with a 1d array. But i´m still having some trouble with the FB in-bedded in the struct. The FB consists (in big parts) of a blink that adds a Real number to a Real variable every time it is high (a bit more often than the cycle time). I want it in a for loop as i want to cycle through the array to register what happens with the inputs that is connected to the array. But if i write array[index].MyInbeddedFB.CAR_Moving>=5 [index].MyInbeddedFB.CAR_Moving<=15...

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    So for one of the problems i had been writing to instances of the FB but not calling the actuall FB in the ST-code. To do this simply write Arrayname[index].theinstanceyouwanttocall(); then its done. M

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! 2 h google gave me nothing, here I go. In short to explain the problem i have a bunch of Real and Bool in a struct that i want to be able to individually change depending on struct-internal parameters (using index in the array) and with some inputs from sensors. To do so i have learned (is this true?) that you need a 2d array. I have an 2d array ArrayName:Array[0..1,0..6] of Struct As i can´t get the update of variables explained above working i have created a FB to hopefully solve this problem....

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! I would like to update this question with another. Is there a way to upload the "original" shortcuts file? i have managed to delete (reset) some of my shortcuts and when i press "load" and select what i believe to be (found in codesys/settings) the original nothing happens. In my list on fbd/LD/IL it says that to add a box i should press ctrlB but when i do this i get the input assistant. Any ideas? Martin

  • martinll martinll posted a comment on discussion Runtime 🇬🇧

    Hi! I´m working on a model in Simumatik and I have a problem. When referring to a object in the model in my GLV i would like to refer to two variables in the same PLC (Simumatik PLC). As the output/input number is separated by a . (dot) i can´t use that in the variable name in codesys as it is then seen as a separator (or something that makes is a new variable). Sorry for the poor explanation, i´m not really sure what information that is needed so please come back to me if I should explain it further/rephrase...

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! Quick question. Is it possible to move the shortcuts from Codesys 2.3 to codesys 3.5? I installed Codesys 3.5 and i have no shortcuts installed. Is there a setting i´m missing? As there are so many shortcuts i was hoping to avoid setting it up manually. Does anyone have a useful file for this? Best, Martin

  • martinll martinll posted a comment on discussion Visualization 🇬🇧

    Hi! I have been looking around and i think that the demo prevents you from creating new depictor applications, could this be the case? I thought that the demo version only prevented you from creating more than 10 scenes but i´m not sure. Another question that still sort of remains, could anyone give me their opinion of Codesys and Factory i/o together? Or does anyone have alternatives that one should look into? Best, Martin

  • martinll martinll posted a comment on discussion Visualization 🇬🇧

    Hi Edwin, Thank you for your reply! Yes I have seen all official Codesys videos mentioning depictor but I can’t find any walkthrough or so. In the webinar where Codesys initially present depictor he just right click on application and there it is (not for me) Important to say is that I’m running the demo version and I have put in the demo license. I have seen mentioned that you are supposed to create an FB to get depictor going? Does anyone have more information regarding this? Where should the fb...

  • martinll martinll posted a comment on discussion Visualization 🇬🇧

    Hi! I need to make an a bit more advanced visualization for a project. Is it possible to “connect” an external visualization from another hardware and use it in codesys? It’s mainly motions I’ll be working with. If 3D is an option it would be best but all ideas and inputs are very welcome. Another quick question. I have downloaded a demo of Codesys depictor but I can’t seem to get it working. I can’t even “start” it. Does anyone know any tutorial or “how-to” for depictor? As I understand it, with...

  • martinll martinll posted a comment on discussion Motion 🇬🇧

    Thank you so much for your inputs! I have started researching the links and tips and so far I feel like this might be a bit over my head. I think I´ll wait until i know a bit more before i start a project like this. If not else so for this communitys sake, if i where to buy one now this forum would probably get sick of me quite fast. Once again, thank you for all your tips and ideas! Best regards, Martin

  • martinll martinll modified a comment on discussion Motion 🇬🇧

    Hi! im currently studying to become a automatic engineer. As i´m very interested (only from reading and watching so far) in robotics im planning to buy a robot arm to start testing and learning. my budget (for the robot arm) is around 100 dollars. https://www.sinoning.com/product/2020-new-robosoul-aluminum-metal-s6-6dof-6-axis-robot-arm-abb-model-manipulator-with-4pcs-mg996r-and-2pcs-mg90s/ this is what i have been looking mostly at. as there are so many options it feels more like a guessing game....

  • martinll martinll posted a comment on discussion Motion 🇬🇧

    Hi! im currently studying to become a automatic engineer. As i´m very interested (only from reading and watching so far) in robotics im planning to buy a robot arm to start testing and learning. my budget (for the robot arm) is around 100 dollars. https://www.sinoning.com/product/2020-new-robosoul-aluminum-metal-s6-6dof-6-axis-robot-arm-abb-model-manipulator-with-4pcs-mg996r-and-2pcs-mg90s/ this is what i have been looking mostly at. as there are so many options it feels more like a guessing game....

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Thank you ojzor and as a fellow swede i fully understand! I think i´ll go for the easy way out and leave this for later - it sounds a bit over my head for now. Thank you so much for your help (thanks to aliazz aswell) - as my teacher in automation is not the best educator (to say the least) i guess i´ll be back soon with more questions. best regards, Martin

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Thank you for your reply! I´m right not digging through the SCF-chapter of the help manual (everytime i read it i know a bit more than the last time that makes me understand a bit more. I found the answer to the _step-name. Thank you so much for your code, it will make my mess a lot easier to get at grip of! Martin

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Another quick random question. When using "if", do i need an else or is it ok to just use an "if" bla bla bla "end_if"?

  • martinll martinll modified a comment on discussion Engineering 🇬🇧

    Hi! Thank you for your answer! Sorry for the : that was a miss typing. Attached is a snippet with an overwiev of the problem. What i would like is that when the "flow" (i´m not sure what you call it - but when it turns blue") goes into the right branch (not done yet, i need to add some steps later on) it should not go back to the left branch. But at any given moment when in the left branch it should be able to move to the right. In the action auto_manuell you can see the two steps i have tried with....

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! Thank you for your answer! Sorry for the : that was a miss typing. Attached is a snippet with an overwiev of the problem. What i would like is that when the "flow" (i´m not sure what you call it - but when it turns blue") goes into the right branch (not done yet, i need to add some steps later on) it should not go back to the left branch. But at any given moment when in the left branch it should be able to move to the right. In the action auto_manuell you can see the two steps i have tried with....

  • martinll martinll modified a comment on discussion Engineering 🇬🇧

    Hi! I have a problem than needs solving. As im new to codesys (and to Codesys Forge) im not sure if this is the place for questions or if I´ll be able to explain this in a way that anyone but myself could understand so i would like to apologize for this in right away. Here we go; I´m coding in SFC (i´m a student and this is a simple machine that we are training to control in different languages). I have created a paralell branch. I have "loaded" an prg to a step befor the "split" between the branched....

  • martinll martinll posted a comment on discussion Engineering 🇬🇧

    Hi! I have a problem than needs solving. As im new to codesys (and to Codesys Forge) im not sure if this is the place for questions or if I´ll be able to explain this in a way that anyone but myself could understand so i would like to apologize for this in right away. Here we go; I´m coding in SFC (i´m a student and this is a simple machine that we are training to control in different languages). I have created a paralell branch. I have "loaded" an prg to a step befor the "split" between the branched....

1