Page 1 of 1

How to read if E stop is active

Posted: Sat Jun 15, 2019 5:02 am
by britonet
I am using the Arduino library and the function GetPinFunctions seems not to work properly.

It always returns a false.

I have Pin 5 set as E-STOP( Non latching )

The comparison between the crc value and the returned by roboclaw are different.

Roboclaw address is 0x80 and command sent 75

crc calculated = <18035>
crc returned = <32627>

The Roboclaw is working as I can control speed and read the encoders.

This is the version I am using:
USB Roboclaw 2x30a v4.1.33

Also is GetPinFunctions the correct function to check if E stop is active?

Re: How to read if E stop is active

Posted: Mon Jun 17, 2019 10:04 am
by Basicmicro Support
1. GetPinFunctions is not the correct command if you want to see the "state" of the E-Stop pin. You should use the ReadError command. Also, the return values have changed as of the latest release. See the post linked below until the new manual has been released(sometime this week I expect).

viewtopic.php?f=2&t=879

2. Please provide the code you use to send the GetPinFunction command and calculate the CRC. I would like to see if I can reproduce the problem.