cancel
Showing results for 
Search instead for 
Did you mean: 

MC Workbench6: Import a new motor

Stickkan
Associate II

Dear all,

Background: I am in a student project trying to build a robot for RoboCUP - SSL. We have elected to go with DF45L035048-A from Nanotec. I have not received the motors but I saw that it is possible to import a new motor with a .json file. I know the specifics of the motor (from the datasheet) but I do not know the format of the file.

Question: Is there a template for the .json file that I can use which MC Workbench6 will accept so that I can started even though I do not have the motor?

Kind regards

1 ACCEPTED SOLUTION

Accepted Solutions
Gael A
ST Employee

Hello Stickkan,

You can also start a project via WorkBench with a completely different motor, then update it in the GUI (motor tab) according to your motor's datasheet, and finally save it as new Motor.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.

View solution in original post

4 REPLIES 4
liaifat85
Senior III

The basic structure of a .json file for motor parameters might look something like this:

 

{
    "motor": {
        "name": "DF45L035048-A",
        "type": "BLDC",
        "voltage": 48,
        "rated_speed_rpm": 4000,
        "rated_current": 3.5,
        "resistance": 0.8,
        "inductance": 0.0015,
        "torque_constant": 0.045,
        "inertia": 0.000032,
        "pole_pairs": 4,
        "encoder": {
            "type": "incremental",
            "resolution": 4096
        }
    }
}

 

Gael A
ST Employee

Hello Stickkan,

You can also start a project via WorkBench with a completely different motor, then update it in the GUI (motor tab) according to your motor's datasheet, and finally save it as new Motor.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.
Stickkan
Associate II

Thank you for your response however the MC Workbench didn't except this format.

Please see the screenshot:

Stickkan_0-1731334540338.png

My assumption that it must be .json file is based on the fact that when I click the "Click here to import a new motor" the only file type that I can select is a .json. 

Kind regards

Okay I didn't know that. I will try that!

If it works I will click "Accept as Solution".

Thank you.