Configuring MCP236

General discussion of the MCP motion controller product line
Post Reply
xoxu
Posts: 1
Joined: Thu Aug 15, 2019 3:36 pm

Configuring MCP236

Post by xoxu » Thu Aug 15, 2019 5:06 pm

Hi,

I try to configure a MCP236 for a train.
I have an ON/OFF switch that control a relay for turning the power on or off
I have a potentiometer for the speed (min pot = 0 speed / max pot = max speed)
And a reverse switch to reverse the rotation of the motor.

I reached to have the pot controlling the speed of the motor
pot = centered => speed = 0
pot = max => speed = CCmax
pot = min => speed = CCWmax

but I didn't found a way to make :
pot = min => speed = 0
pot = max => speed = max
and having a separate switch to change the direction of the motor

I also want :
If the power it's turned on and the pot it's not at the minimum I want the motor to not be turned on and wait for the pot to go to 0.
If the speed if superior to 0 while changing the sense of rotation the motor stop and wait till the pot go back to 0.

Is there someone that can help me?
Thanks

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

Re: Configuring MCP236

Post by Basicmicro Support » Fri Aug 16, 2019 10:46 am

This sounds like a good use case for the MCL scripting langauge. Please email support with the description again. We will help you write a script. Once you are up and running you can post it here.

Post Reply