nkp писал(а):там библиотеки изменились
надо подправлять
Нашёл причитну, В архиве с проектом не хватало файла Pin_Manipulator.ino содержащего в себе недостающие функции.
Появилась другая проблема, Ардуина не отвечает на запросы от EMC. Светодиод (TX) на плате одиночно моргает, в консоли появляется сообщение о таймауте. Возможно не правильно сконфигурирована прошивка под мою ардуину.(У меня Arduino MEGA 2560) .
В файле standard_pinout.hal указал loadusr gs2_vfd -r 19200 -d /dev/ttyUSB0 -p none
Файл конфигурации во вложении.
cnc@LinuxCNC:~/LCNC$ linuxcnc
LINUXCNC - 2.7.14
Machine configuration directory is '/home/cnc/linuxcnc/configs/ArduinoSlave'
Machine configuration file is 'ArduinoSlave.ini'
Starting LinuxCNC...
.
Found file(REL): ./stepper_xyza.hal
Found file(REL): ./standard_pinout.hal
gs2_vfd: device='/dev/ttyUSB0', baud=19200, parity='N', bits=8, stopbits=1, address=1, enabled=1
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__
return self.func(*args)
File "/usr/bin/axis", line 1325, in jogspeed_listbox_change
if isinstance(value, str): value = value.encode('utf-8', 'replace')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
failed to set register P0x0101 to 0x0064 (100): Connection timed out
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension
modbus.hal:15: Pin 'arduino.Dout3-48' does not exist
Shutting down and cleaning up LinuxCNC...
/usr/bin/gladevcp:295: GtkWarning: GdkWindow 0x3c00003 unexpectedly destroyed
gtk.main()
**** GLADE VCP ERROR: X Protocol Error: 3
task: 159 cycles, min=0.000017, max=0.021514, avg=0.008979, 0 latency excursions (> 10x expected cycle time of 0.010000s)
failed to set register P0x0101 to 0x0064 (100): Connection timed out
LinuxCNC terminated with an error. You can find more information in the log:
/home/cnc/linuxcnc_debug.txt
and
/home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal