Morning Codesys'ers quick question... i've never seen this before.. but i've started getting a HWlimit error i suspect its from having been trying to improve the tuning using the Omron CX drive software and i've set a setting.. but does anyone know how i can work around this... thanks Pb
some time later... (in the words of sponge bob) i'm back ... its all been sort of working.. and like all good projects that are 80% done.. you start using them ..... and thats been the case.... so untill the shaft that connected the machine to the servo broke... it was all good... so now... here we are... and i'm not even sure if this is a good idea tagging this onto an existing thread... but does anyone have any more experience of using a Ethercat drive with a raspberry pi... as there is one little...
now if i was smart.. i'd look at what i was doing when i started... so looking at the early pictures of the project you can see i'd actualy started with it right.. but managed to get it more wrong.. anyway .. i've just had a issue with the comms loosing sync.. so i might need to tweek the settings a bit, before its perfect.. Pb
and as if by magic.. Eschwellinger has the answer.. so ... from what i can tell its not as simple as just doing what i did.. which was do a scan on the ethercat bus, add it to the project, and then add a generic DS402 softmotion device.. oh no... so .. i needed to pay attention to the icons.. there is one that looks like a grey computer box.. and when i searched down in the list i found one that matched the servo drive.. so if you do an "update device" to that.. you get grey computer box icon.. (which...
many many moons ago.. I started this... and I've been super busy on trying to get it sorted.. and thats led me down the path of getting to know what I'm doing.. and how things should work.. and well.. like always.. time goes by.. and things get pushed in front of other things.. but anyway .. I took a look at it today .. but using the code from a much better coder than me.. (his youtube channel is called "black" https://www.youtube.com/channel/UCeOa8aEiV8CdAO9dCp7PATA (this should be the link to the...
WOW... thats massive.. and also important to know.. so let me just check what that looks like.. (for my own sanity .. and to see if i understand what your talking about.. ) if you have some program code that uses a function block to control a servo over ethercat, like Power_on, or the Jog function block.. that code needs to be running under the Ethercat Task in the task configuration part of the devices tab in codesys.. like in this picture.. so by doing this you are getting the ethercat "driver"...
My progress has been patchy... I can get the drive to go online, and it looks to be handling the ethercat traffic, I get drive feedback, and if you command the drive it shows as busy, but no motion, I have tried all the scaling options I can think of... But nothing seems to help, the frustration is the drive is fully working from CX drive or the config mode... It's clearly something in a config somewhere Pb
I just saw that the device was a slave... So indeed that might not help... I think I will upgrade the pi at some point, but I do worry a little about how the codesys runtime licence transfer works... So I want to test that first... On On Sat, 1 Aug 2020, 05:50 eschwellinger, forge@codesys.com wrote: Hi, Usually this is mit a problem, USB or internal Ethernet Interface. Both work like charm as long you do mit mix up ethercat and other TCP/ip ethernet devices. Die Softmotion the important thing is...
Morning coders. so the path to somewhere is not always clear when you start out.. but i think i can safely say that, if you want to get there... I'd not start from here.. so what are my main learnings.. so i've no doubt the omron drive works.. but as i was not able to get any support from omron about there hardware using codesys and a raspberry pi, i was sort of stuck.. now my Savch engineering friends in china were able to get it working with codesys on the pi and it was very easy for them... but...
Wow... one month ago you asked a question that seems to be the same general question that I'm looking to solve.. so can you help me and let me know what the status of this is now... have you managed to solve it.. Pb.
Morning codysysers So the updates have been a bit thin on the ground, and I doubt that anyone has missed them really. But the situation is i've spent a lot of time looking at it with the support team.. And we have got to a point where we have got the drive in the device tree.. And all green arrows.. (which is good) and not only being able to enable the drive, but we did at one point get it working with a test program .. but with the code that needs to run on the machine iβve not been able to get...
so the days roll on ... and i try and try in the quest of a solution for filling in the voids in my knowlage, which in less words is i've been trying to solve this little hickup... so with doing a lot of tweeking and copying and pasting i've chopped a lot of the program down and now i have one main task... also i have got rid of the webvisulisation as i have a mod bus connected HMI and the last piece of the puzzle is splitting up the network so the modbus over ethernet and the ethercat are not on...
Hello sports fans.... So after a bit of poking about and getting some official support i wanted to update the topic, so it keeps track of what I have learned So it wasnt obvbious too me but having two bus formats both on the ethernet interface is not recommended.. and as i have both ethercat and modbus over ethernet iβm going to add an extra device to the raspberry pi to give me another ethernet port to connect the single modbus device... Also i hadnt noticed but it was being reported back that there...
Hello Edwin. would the priority of the tasks have a bearing on the way they drive responds to the function block when I try and do a MC_Power... (to enable the drive.. ), do you have an example as too how you would set them ??? I have been able to use the other make of servo drive with the exact program layout.. so I don't know if changing the names is important... I have a call logged a service ticket with codesys, so I will see how that goes, I have always found them to be very helpful in the past.....
how does this work.. ?
after looking at what i might be doing wrong.. and it dawned on me that i need to upload the pictures as attachments.. now I don't know if all 7 images will show up... but this shows the settings that the G5 drive has set in it.. and also I've included some of the code (made into a comment so i can do testing.. ) but it shows i was doing a reltiave move, not an incremental one. sorry... clearly ... if you know how the image attachment thingy works.. let me know.. Pb
afternoon Codesys'ers so a few days have passed.. and I've gotten brave enough to move my testing over to the actual machine that this drive is needed for.. and I think I've made some progress.. one is that this Pi is a Multicore one.. and I think it handles the distributed clock better.. as I've got a green tick on the Omron R88D_KN08H_ETC (which was not something I could get to happen on the other setup, so now the bit I need to get my head around is how I actually use this drive.... in the past...
Ahhhhhhhhhhhhhhh..... Now it is all starting to become clear. it's not working yet.. but I'm working out how little I know.. So now in the past, I've had a setup working.. and when I achieved that I realized that the green circular arrows are the key to the comms working correctly... so I've always been mindful that if you have orange or red arrow.. you're doomed... now when I did the previous project (which is all in ladder) I was just adding a little servo to do a feed down on one axis of a grinding...
Good afternoon Codesys people of the World... so .. as maybe an update for someone who is looking at this posting for help using Omron G5 servo Hardware with a raspberry pi, also in a funny way by me writing up what I've done... it gives me some clarity and helps prevent me from falling down the "got-ya" holes that seem to litter the landscape (and that's not just Codesys.. its anything.. ) ok.. so in line with the advice from Edwin, in the picture, you can see I use a device tree which only has...
Morning Edwin... I've been through the process of using the scan, add the device to the project, to get the servo drive into the device tree... it has always detected the servo drive.. so you would think that would help.. but doing it that way seems to differ to going and selecting the Omron drive from the list... now the next part of your message where you say I need to call the Motion function block in the Ethercat Master context sounds like something I should definitely be doing.. if I knew what...
Another thing that you might already be thinking it ... urrm the address on the device is 1001 and the log tells me that it has disabled the device as it cant find it... but oddly i cant seem to have a way of setting the address, when i change it it just changes back.. :-( but anyway ... any advice greatly received... Pb
the troubles and tribulations of dealing with Omron and Codesys so far has been one of much head scratching.. but this will be something that I'm sure is quick and easy for thems in the know... so far I'm looking get to a point where i can establish the commissioning control, and get the drive running.. now I've done all the tuning through the Omron CX drive app, which uses USB... (which was a whole different set of fun and games) I've set the device ID on the drive to be ID 10, (using the switch...
Hello, ive got a servo motor set up and working in my cnc retro fit grinder project, the problem i have is resetting the drive after a problem ... the drive can be reset.. and goes into idle mode, but i cannot get it to go back online without resetting the raspberry pi... which is not ideal... the drive gives feedback for position and is communicating.. (over ethercat) and you can set the enable bits, and you can acknowledge the error.. but the only feedback i have it the device is has a configuration...
I know this is a old (ish) thread, but i've got a similar question, I've got a sensor that i need to interface with on a machine i'm upgrading.. the thing is it produces a 5 digit BCD output... (which is a load of pins... ) so my plan is to program up a little arduino mega, and then use i2c to send the value into the PLC, (which is an raspberry Pi) so looking at some of the FB examples of the i2c seems i can just pick the data off the bus, but having not tested it yet i'm hoping someone has an example.....