-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Hi,
i'm triying to get HAL2Arduino to work and i'm stuck at some point here.
What i have done is download HAL2Arduino-0.5 and change the pinning and stepsPerInchX/Y/Z for my machine (modAccelStepper ) and the limit switches (modLimSwitch). I compiled it and flashed it to my arduino nano (with Atmega 328p). I connected my cnc to the configured pins. Then i went to linuxcnc and get the Ubuntu 10.04 package with all linuxcnc related stuff included and installed it in a virtualbox.
I followed the instrucions.txt from your github repo and created a new config 'my-mill', changed the path for the python script and modified the config that linuxcnc will find the script. The Arduino is connected to the virtualbox and it's been recgnized with /dev/ttyUSB0.
When i try to start linuxcnc with the shortcut on the desktop for my configuration i receive the following errors:
Can not find -sec MOT -var MOD -num 1
Can not find -sec IO - var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Waiting for component 'Hal2Arduino' to become ready......................................Traceback )most recent call last):
File "/opt/HAL2Arduino-0.5.py", line 2020, in
ser.close()
NameError: global name 'ser' is not defined
custom.hal:2. /opt/HAL2Arduino-0.5.py exited without becoming ready
1474
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Can anyone tell me what's going on there?