MindSqualls
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problem with ResetMotorPosition()

Go down

Problem with ResetMotorPosition() Empty Problem with ResetMotorPosition()

Post  theedge Mon Jan 21, 2013 12:39 am

I have a problem with understanding metod ResetMotorPorition. I'm not able to reset TachoCount. What am I doing wrong? When ResetMotorPosition is called nothing happens. As if it would work fine, just TahcoCunt doesen't change. Sad
As I understand calling metod with false should put TachoCount to zero?

Code:
        public bool resetTachoB() {
            errorString = "";
            error = false;
            try {
                brick.MotorB.ResetMotorPosition(false);
            } catch (Exception) {
                error = true;
                errorCode = 1;
            }
            return error;
        }

I'm working on my school project, which connects SIEMENS plcsim and Lego Mindstorm. Idea is that you write your program in SIMATIC as you would for expensive PLC, but insted of PLC you use my aplication and Lego Mindstorm Smile

If someone could help me with my little problem I would be verry happy! Smile

theedge

Posts : 3
Join date : 2013-01-21

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum