OPENPNP 2 problem with jog controls

274 views
Skip to first unread message

mob...@gmail.com

unread,
Mar 6, 2021, 5:23:42 AM3/6/21
to OpenPnP

Hi,
I am new in openpnp software but I have serious problem with machine jog control.

I have configured GcodeDriver  for my marlin controller. Hw is working fine. Machine is connected to OpenPNP, homing is working but jog control without function.
In console window via GcodeDriver component after m code "G1 X5" for example head is moving  to position but via jog controls no. In log I can see that there is function call Nozzle N1.moveTo((10.000000, 0.000000, 0.000000, 0.000000 mm), 0.51) after button press but no call to referencemachine GcodeDriverfor serial communication.

From log file:

2021-03-06 00:28:43.601 AbstractHeadMountable DEBUG: Nozzle N1.moveTo((40.000000, 30.000000, 0.000000, 0.000000 mm), 0.51)
2021-03-06 00:28:43.601 ReferenceNozzle TRACE: Nozzle N1.transformToHeadLocation((40.000000, 30.000000, 0.000000, 0.000000 mm), ...)
2021-03-06 00:28:43.611 ReferenceNozzle TRACE: Nozzle N1.transformToHeadLocation((40.000000, 30.000000, 0.000000, 0.000000 mm), ...)
2021-03-06 00:32:39.251 MainFrame DEBUG: Config saved successfully!
2021-03-06 00:32:42.141 ReferenceMachine DEBUG: setEnabled(false)
2021-03-06 00:32:42.141 ReferenceMachine INFO: setHomed(false)
2021-03-06 00:32:42.391 GcodeDriver$ReaderThread TRACE: [serial://COM27] disconnectRequested, bye-bye.
2021-03-06 00:32:42.391 GcodeDriver DEBUG: [serial://COM36] >> M42 P9 S0 ; turn off bottom camera leds, 5000
2021-03-06 00:32:42.401 GcodeDriver$ReaderThread TRACE: [serial://COM36] << ok
2021-03-06 00:32:42.401 GcodeDriver TRACE: [serial://COM36] confirmed M42 P9 S0 ; turn off bottom camera leds
2021-03-06 00:32:42.401 GcodeDriver DEBUG: [serial://COM36] >> M42 P7 S0 ; turn off vacuum pump, 5000
2021-03-06 00:32:42.401 GcodeDriver$ReaderThread TRACE: [serial://COM36] << ok
2021-03-06 00:32:42.401 GcodeDriver TRACE: [serial://COM36] confirmed M42 P7 S0 ; turn off vacuum pump
2021-03-06 00:32:42.411 GcodeDriver DEBUG: [serial://COM36] >> M84; steppers off, 5000
2021-03-06 00:32:42.411 GcodeDriver$ReaderThread TRACE: [serial://COM36] << ok
2021-03-06 00:32:42.411 GcodeDriver TRACE: [serial://COM36] confirmed M84; steppers off
2021-03-06 00:32:42.911 GcodeDriver$ReaderThread TRACE: [serial://COM36] disconnectRequested, bye-bye.
2021-03-06 00:32:44.001 MainFrame INFO: Shutting down...
2021-03-06 00:32:44.271 ReferenceMachine DEBUG: setEnabled(false)
2021-03-06 00:32:44.271 ReferenceMachine INFO: setHomed(false)
2021-03-06 00:32:44.291 AbstractBroadcastingCamera TRACE: Camera Top thread 27 bye-bye.
2021-03-06 00:32:44.291 MainFrame INFO: Shutdown complete, exiting.




ma...@makr.zone

unread,
Mar 6, 2021, 5:47:01 AM3/6/21
to ope...@googlegroups.com

Hi and welcome,

Best look here:

https://github.com/openpnp/openpnp/wiki/FAQ

Come back, if this does not help you.

My guess is you are missing G-code setup. Let Issues & Solutions help you with that.

_Mark

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/73981ea9-fc87-44a4-8fab-03ba2965b967n%40googlegroups.com.

mob...@gmail.com

unread,
Mar 6, 2021, 8:50:12 AM3/6/21
to OpenPnP
Hi,
thanks but GcodeDriver was configured properly include G-code setup. I found the problem. There is bug in OpenPNP2. If in "Axes" settings is missing parameter "Axis letter" app fall in untreated condition. Error handler does not know this condition so no error is produced only gcodedriver is no called. As soon as I filled parameter "Axis letter" for each axis jog controls are  working fine.

ma...@makr.zone

unread,
Mar 6, 2021, 10:21:18 AM3/6/21
to ope...@googlegroups.com

Not adding a letter Variable, when you have "Letter Variables" enabled in the driver is a mis-configuration. Most mis-configurations are not caught during operations. This would burden the operations code with too many checks, negatively affecting both code readability and performance. However, mis-configurations should be caught by the Issues & Solutions system.

Did Issues & Solutions not report the missing letter, when you employed it, as I said?

Then please report it and perhaps send your machine.xml, so I can fix it.

_Mark

mob...@gmail.com

unread,
Mar 7, 2021, 8:41:18 AM3/7/21
to OpenPnP
Hi,
thanks for reply. There was some light warn in Issues & Solutions tab with missing letter . Due to this I found the problem.
Reply all
Reply to author
Forward
0 new messages