0816 Vacuum sense

236 views
Skip to first unread message

Rashid Guseynov

unread,
Oct 15, 2021, 12:45:27 AM10/15/21
to OpenPnP
Hello.I need help with vacuum sense on 0816  Native Shield.
what do I need to enter in "actuator_read_regex" and "actuator_read_command"?

ma...@makr.zone

unread,
Oct 15, 2021, 1:42:48 PM10/15/21
to ope...@googlegroups.com

Hi Rashid,

According to this

https://docs.mgrl.de/maschine:pickandplace:feeder:0816feeder:mcodes

  1. For ACTUATOR_READ_COMMAND set for sensing actuator 1
    M144 A0 ; read vacuum sensor 1
  2. For actuator 1
    M144 A1 ; read vacuum sensor 2

  3. The response seems not to be documented on that page by mgrl. So we need to "reverse engineer" it.
  4. Set the log level to TRACE.
  5. Try Read using the actuator panels (for both actuators in turn):

    https://github.com/openpnp/openpnp/wiki/Setup-and-Calibration%3A-Actuators#actuator-control-panel
  6. You will still see the errors, but ignore them.
  7. Then send the log, it will help one of us to assist for an ACTUATOR_READ_REGEX.

_Mark

Am 15.10.2021 um 03:01 schrieb Rashid Guseynov:
Hello.I need help with vacuum sense on 0816  Native Shield.
what do I need to enter in "actuator_read_regex" and "actuator_read_command"?
--
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/f20eea69-0ad9-499a-8eba-8f711cad40abn%40googlegroups.com.

Rashid Guseynov

unread,
Oct 15, 2021, 3:02:14 PM10/15/21
to OpenPnP
Yes,i have M144 A0 and M144 A1 in ACTUATOR_READ_COMMAND  but what i need write in ACTUATOR_READ_REGEX?)
1.jpg2.jpg3.jpg

пятница, 15 октября 2021 г. в 20:42:48 UTC+3, ma...@makr.zone:
Message has been deleted

Leoyu

unread,
Oct 15, 2021, 3:17:26 PM10/15/21
to OpenPnP
Hi,
"actuator_read_command is used to request data; "actuator_read_regexis used to extract the final data from response.

For "actuator_read_command" , you can use M143(raw ADC value, int)/M144(scaled ADC value, float) as mark said.

For "actuator_read_command" , you can try:
^value:(?<Value>-?\d+\.\d+).*

Rashid Guseynov

unread,
Oct 15, 2021, 4:09:49 PM10/15/21
to OpenPnP
Now it work!!!Thanks

in " actuator_read_regex  " need write ^value:(?<Value>-?\d+\.\d+).*

пятница, 15 октября 2021 г. в 22:17:26 UTC+3, Leoyu:

Leoyu

unread,
Oct 15, 2021, 4:17:21 PM10/15/21
to OpenPnP
Hi,

Happy to hear that!  And sorry for my mistake, the second "For" is for the "actuator_read_regex" :)

In your log,      << value:0.82      is the response from 0816 controller, so you can get 0.82 now.

Rashid Guseynov

unread,
Oct 15, 2021, 7:18:28 PM10/15/21
to OpenPnP
Yes, when vacuum pump is off value:0.82
Max negative value: -38....

пятница, 15 октября 2021 г. в 23:17:21 UTC+3, Leoyu:
Reply all
Reply to author
Forward
0 new messages