Problem with ResetMotorPosition()

View previous topic View next topic Go down

Problem with ResetMotorPosition()

Post  theedge on 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

View user profile

Back to top Go down

View previous topic View next topic Back to top


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