How add user code in firmware?
Hello!
I try to use my printer (on Mega2560) with termocouples. Termocouples connected to I-7018 device, which i ask by DCON protocol and 485 interface.
I connect 485 to UART3 and Z_MAX pin (19) as RTS.
I use 1.0.0 Repetier, patch standart ARDUINO UART library to support 485 devices and add my own code to connect to I-7018
All work fine before i try homing printer.
When i send G28 - all communication with I-7018 stoped. Homing ended - communication restored.
Firstly i insert call GetAI_I7018() in arduino main loop() - work fine, if printer stop. Not work if printer homing. All is stable.
Move call to EVENT_PERIODICAL - work, but when send G28 communication to I-7018 stop and printer is reboot an endstop is hit.
Where must i place my code?
Sorry for my bad english
I try to use my printer (on Mega2560) with termocouples. Termocouples connected to I-7018 device, which i ask by DCON protocol and 485 interface.
I connect 485 to UART3 and Z_MAX pin (19) as RTS.
I use 1.0.0 Repetier, patch standart ARDUINO UART library to support 485 devices and add my own code to connect to I-7018
All work fine before i try homing printer.
When i send G28 - all communication with I-7018 stoped. Homing ended - communication restored.
Firstly i insert call GetAI_I7018() in arduino main loop() - work fine, if printer stop. Not work if printer homing. All is stable.
Move call to EVENT_PERIODICAL - work, but when send G28 communication to I-7018 stop and printer is reboot an endstop is hit.
Where must i place my code?
Sorry for my bad english
Comments
It called allways? When homing, printing, warming bed, etc?
All work!