Arduino library command for getting signal values of inputs?

General discussion of the MCP motion controller product line
Post Reply
RoboclawMAP
Posts: 1
Joined: Tue Jul 20, 2021 8:24 am

Arduino library command for getting signal values of inputs?

Post by RoboclawMAP » Tue Jul 20, 2021 8:31 am

Is there a Arduino serial command to get digital and analog input values from a MCP controller? Under the advanced packet serial section of the user manual there is "147 - Get Signal Values" but I do not see a command for it in the Arduino library.

User avatar
Basicmicro Support
Posts: 1566
Joined: Thu Feb 26, 2015 9:45 pm

Re: Arduino library command for getting signal values of inputs?

Post by Basicmicro Support » Tue Sep 14, 2021 3:56 pm

The Get Signal Values command is the only way to get the state of input signals via packet serial. That command is not recommended for that purpose though because it dumps the status information for all pins at one time(eg it takes a relatively long time).

Writing a custom MCL program that does this and anything else you wanted would be the best option.

Post Reply