Please help with adjusting the vacuum sensitivity on Marlin 2.0

226 views
Skip to first unread message

Kosta Yakovlev

unread,
Sep 4, 2019, 1:18:33 PM9/4/19
to OpenPnP
Hello all!
My system is: CoreXY kinematick, SKR1.1 board with installed Marlin 2.0.
Dummy termoresistors 100k on all hotends ports.
ACTUATOR_READ_COMMAND and ACTUATOR_READ_REGEX on screens.

Need to right setup vacuum sensitivity system and help to foarmig right ACTUATOR_READ_REGEX parameters string for Marlin M105 answer.

2019-09-04 13:00:08.342 ReferenceActuator DEBUG: H1VAC.actuate(true)
2019-09-04 13:00:15.332 GcodeDriver DEBUG: sendCommand(M105, 5000)...
2019-09-04 13:00:15.359 GcodeDriver DEBUG: sendCommand(serial://COM19 M105, 5000) => [ok T:24.37 /0.00 T0:24.37 /0.00 T1:24.37 /0.00 @:0 @0:0 @1:0]
2019-09-04 13:00:15.359 ReferenceActuator DEBUG: H1VAC.read(): null
2019-09-04_200053.jpg
2019-09-04_200107.jpg

Mike Menci

unread,
Sep 4, 2019, 5:51:25 PM9/4/19
to OpenPnP


Hi 
Measure the mV goint to controller pins at max and 0 vacuum = how much you get ? 
and ACTUATOR_READ_REGEX    =     ^ok.*V:(?<Value>-?\d+\.\d+)        nothing else on end.
Mike

Kosta Yakovlev

unread,
Sep 5, 2019, 4:55:41 AM9/5/19
to OpenPnP
Thank you for answer, Mike.
I can change dummy resistors value from 100k to other else and via M105 look to the answer from the motherboard.
I am not sure ACTUATOR_READ_REGEX = ^ok.*V:(?<Value>-?\d+\.\d+) is right string. This right for Smothieboard classic software, but not for Marlin.
Marlin gives the answer (after M105) in a different format, it differs from the smoothie answer.

четверг, 5 сентября 2019 г., 0:51:25 UTC+3 пользователь Mike Menci написал:

Bill Ruckman

unread,
Sep 5, 2019, 8:24:02 PM9/5/19
to OpenPnP
I recommend you enable SHOW_TEMP_ADC_VALUES in Configuration_adv.h.  Then you will see the actual values being read in the log:

GcodeDriver DEBUG: sendCommand(serial://COM12 M105 ; read temperatures (vacuum), 5000) => [ok T:64.17 /0.00 (576.56) B:25.00 /0.00 (1023.00) T0:25.00 /0.00 (1023.00) T1:64.17 /0.00 (576.56) @:0 B@:0 @0:0 @1:0]
 ReferenceActuator DEBUG: V2.read(): 64.17

Here is the REGEX:
         <command head-mountable-id="ACT1566773588505" type="ACTUATOR_READ_COMMAND">
            <text><![CDATA[M105 ; read temperatures (vacuum)]]></text>
         </command>
         <command head-mountable-id="ACT1566773588505" type="ACTUATOR_READ_REGEX">
            <text><![CDATA[^ok.*T0:(?<Value>-?\d+\.\d+).*]]></text>
         </command>
         <command head-mountable-id="ACT1566773612067" type="ACTUATOR_READ_COMMAND">
            <text><![CDATA[M105 ; read temperatures (vacuum)]]></text>
         </command>
         <command head-mountable-id="ACT1566773612067" type="ACTUATOR_READ_REGEX">
            <text><![CDATA[^ok.*T1:(?<Value>-?\d+\.\d+).*]]></text>
         </command>

--Bill

Kosta Yakovlev

unread,
Sep 6, 2019, 4:50:06 AM9/6/19
to OpenPnP
THANK YOU BILL !!!
I do all like you tell. All working without any problems!
THANK YOU AGAIN ))
Good luck!

пятница, 6 сентября 2019 г., 3:24:02 UTC+3 пользователь Bill Ruckman написал:

Mike Menci

unread,
Sep 9, 2019, 9:15:12 AM9/9/19
to OpenPnP

Bill Ruckman

unread,
Sep 10, 2019, 4:03:18 PM9/10/19
to OpenPnP
Hi Mike,

Can you post a detailed log of your pick operation?

Mike Menci

unread,
Sep 10, 2019, 5:02:05 PM9/10/19
to OpenPnP
Hi Bill 
see screen shots enclosed: for N2 is as for N1..
I hope this helps for start?   Unfortunately my Down Camera is mnot cooperating with me now :-) and cant start a job.. to print - need to restart computer.. 
Will come back in a little while.... 
Thanks Mike
OpenPnP Actuaators2.png
OpenPnP ActuaatorsRead.png
OpenPnP ActuaatorsRegex.png
2019-09-10 F__config.txt - Notepad++.png
-OpenPnP Actuaators.png
OpenPnP Actuaators1.png

Mike Menci

unread,
Sep 10, 2019, 5:21:40 PM9/10/19
to OpenPnP
Here te trace and debug Log enclosed
Error -1st part on nozzle but report No part on nozzle.png
LogTrace.txt
LogDebug.txt

Bill Ruckman

unread,
Sep 10, 2019, 8:08:36 PM9/10/19
to OpenPnP
It looks like there is no M105 or M106 command being sent to your controller.  Probably something wrong in your machine.xml file.  Maybe a ID mismatch somewhere.

Mike Menci

unread,
Sep 11, 2019, 4:44:34 AM9/11/19
to OpenPnP
Hello Bill,
I delited and renameds actuators, restarted Open PnP and I get the same error..
I have enclosed all in one screen shot + new Log enclosed... There must be my mistake or its a bug !?

Mike
OpenPnP ActuaatorVacuum.png
LogDebug.txt
LogTrace.txt

Bill Ruckman

unread,
Sep 11, 2019, 4:55:07 PM9/11/19
to OpenPnP
Hi Mike,

You are getting closer.  I see the M105 command is being sent to your controller now, but the data is 0.0.
  
2019-09-11 10:09:11.151 GcodeDriver DEBUG: sendCommand(serial://COM4 M105, 5000) => [ok N1:inf /0.0 @0 N2:inf /0.0 @0]

I think your REGEX should be ^ok.*N1:inf /(?<Value>-?\d+.\d+).*

There should be a line in the log after the sendCommand that looks something like this if it is working properly:
2019-09-11 10:09:11.152 ReferenceActuator DEBUG: ReadVac_N1.read(): 0.00

You don't really need to define M105 and M106 in your smoothie configuration.  M105 is built-in and, as you see in the log, it returns the value for both.  Just use N1 or N2 in your REGEX to extract the correct value.

Mike Menci

unread,
Sep 11, 2019, 5:46:41 PM9/11/19
to OpenPnP
Hi Bill - Yes I am closer - I get the read values and I know now where the problem is - my  power supply to sensors - when it is higher than 4.0V DC than they stop responding and I get no readings.- made as per description here - Open PnP V1 but I never realy used readings  with placement - now I have feeders and if there is a miss-pick they will help me; 

... Need to work on this problem - tomorrow is a new day..
Thanks
Mike  

Mike Menci

unread,
Sep 12, 2019, 12:36:52 PM9/12/19
to OpenPnP
Hi 

I fixed the power supply and readings (M105) go in log now,.. but seams no compare is done and nozzle stops at trash location and error pops out ...
I tested with REGEX-   "  ^ok.*N1:inf /(?<Value>-?\d+.\d+).* " but no difference - ??
see logs enclosed
any tips guys ??
Mike
N2part On_Off.png
Trace.txt
BlankJobError.png
Debug.txt
Reply all
Reply to author
Forward
0 new messages