Hi Caludio,
I'm currently also working with CANopen (and CAN in general).  Busy trying to 
get socketCAN to work with Lazarus (Free Pascal).  
 
At the moment the program compiles/runs on a PC, Raspberry Pi and a BeagleBone. 
 With the PC I'm using the Lawicel CANUSB dongle and have it also working on 
the Pi and the BBB without issues as a USB serial device.  
 
With socketCAN the standard candump.c program also works with the Lawicel 
CANUSB and either an MCP2515 HAT for the Pi or the internal CAN device on the 
BBB.  So I know the hardware can function with the socketCAN driver.  Just 
making it work with Lazarus is still the challenge.
 
The full source code will be released when I have it working.   Here are a 
couple of screen shots.
 
This is just a terminal program for dealing with the CANUSB or any other serial 
port based CAN dongle.
 
cid:[email protected]
 
 
Now we're more into CANopen with the ability to send a number of SDO messages 
to find the node ID etc.
cid:[email protected]
 
And finally the ability to send specific CANopen SDO messages to a CANopen 
device.
cid:[email protected]
 
Ultimately I'll add a logging/playback function so I can receive and timestamp 
messages.  Then be able to parse that file and play back specific nodes 
messages to simulate a larger system without all the hardware in place.
 
And of course instead of the serial port CANUSB be able to use the socketCAN 
interface on the Pi and BBB.  
 
This will run on MachineKit (I do have a microSD card with MachineKit for the 
BBB) and once I add Lazarus to my LinuxCNC (on Pi or a PC) can also run it on 
the milling machine system.
 
I'm almost at the point where I can start building a power draw bar and would 
like to make it and an automatic tool changer be CANopen based.
 
John Dammeyer
 
 
From: [email protected] [mailto:[email protected]] On 
Behalf Of Claudio Lorini
Sent: October-22-20 4:32 AM
To: Machinekit
Subject: [Machinekit] Re: running EMCApplication basic steps
 
I'm currently working on this: myd-czu3eg-4e4d-1200-c 
http://www.myirtech.com/list.asp?id=613
 
my main interest is motor in control applications using field busses (CAN and 
Ethercat)
i'm currently developing some can bus hal driver (for a can motor controller) 
for machinekit-hal,   
so not closely related to mesanet stuff, but yes, if i can help someway, why 
not?
 
the machinekit-hal stuff is working fine, i have had no luck in running cnc 
stuff yet, but i'm following 
current developments on EMCapplication really close...
 
 
  
On Wednesday, 21 October 2020 at 22:40:48 UTC+2 Michael Brown wrote:
I would like to hear some more about you new soc board porting.
Can you input the name of the MyirTech board you are using ?
 
-->   ImportError: No module named _hal
 
This seems to be related to python2/3 compatibility problems
 
Are you interested in adding your board to the Mksocfpga repo ?
 
Best wishes
Michael
On Saturday, October 3, 2020 at 7:49:44 PM UTC+2 Claudio Lorini wrote:
Hello, 
i'm trying running EMCApplication on a MYIR Ultrascale board, with kernel: 
Linux zus-cl 5.4.0-rt1+ #7 SMP PREEMPT_RT Wed Sep 30 13:21:36 CEST 2020 aarch64 
GNU/Linux
with Debian strech
 
I think i managed to install nachinekit-hal, all tests are passing and i can 
get some very 
nice result on latency tests:
Image removed by sender. 5.4RT.png
i built EMCA from sources and configured to use hachinekit-hal (i think)
./configure --with-hal=machinekit-hal
 
but launching any configuration for linuxcnc i get some sort of this error:
....
4:rtapi_app:5413:user pid=5413 flavor=rt-preempt gcc=6.3.0 20170516 git=unknown
Traceback (most recent call last):
  File "/home/zus/EMCApplication/bin/hal_manualtoolchange", line 11, in <module>
    import linuxcnc, hal
  File "/home/zus/EMCApplication/lib/python/hal.py", line 30, in <module>
    import _hal
ImportError: No module named _hal
 
 I think i miss some very basic step, i tried to look for some basic how-to but 
could not find anything useful... 
can someone point me in the right direction?
 
 
 
-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/56395dda-e594-4d81-9a68-3a411c4ac6f4n%40googlegroups.com
 
<https://groups.google.com/d/msgid/machinekit/56395dda-e594-4d81-9a68-3a411c4ac6f4n%40googlegroups.com?utm_medium=email&utm_source=footer>
 .

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/074401d6aa26%243f86b400%24be941c00%24%40autoartisans.com.

Reply via email to