How do I know if my digital output is working properly?

How do I know if my digital output is working properly?

Problem

I have configured some digital outputs for my application in MotionLab but I am unsure if they are working properly. What do I need to check to ensure that they are working according to what I want?

Solution

Let's say that you have the following settings for the digital outputs configured in the Inputs Outputs window in MotionLab: 



There is an important clarification that needs to be done regarding the Input Outputs window so that there is no confusion between them and the digital inputs. In this window, the digital inputs change dynamically with time as long as they change due to the external signal. However, this is not the case for the digital outputs since they will show the state in which they were once the board was powered on. After that, the state will not change dynamically in the MotionLab window. Instead, what you need to do is use the Register Watcher and check the value of the following register: Digital outputs.

In this register, you need to use the sub-index 0x01 and check whether the corresponding bit (mapped to the GPOx) is in the state that it should. For example, if you read a value of 65536, that means that GPI1 is ON.
    • Related Articles

    • How to know if the feedback device is working properly

      Problem I have a feedback device connected to the drive and I want to check that it is working properly. I want to check no external noise is being coupled in the feedback lines. What can I do to check this? Steps The first step that needs to be done ...
    • How to configure a rotatory brushless motor with digital halls feedback

      Problem I have a rotatory brushless motor with digital halls as the only feedback but I don't know how to properly configure it and tune it. What is the right process that I need to follow? Clarifications and checkings This article describes (step by ...
    • How to know how many pole pairs my motor has?

      Problem It is quite a common problem to have a motor without its datasheet (or with it but incomplete information) and wonder how you can get to know some of the parameters. In this article, we are going to show you how you can determine the number ...
    • How to know if the motor phases or the power stage of the drive are damaged

      Problem I have a motor connected to the drive and I want to check that it is fully capable of moving. I want to check that both the motor phases and the power stage of the drive are not damaged. What can I do to check this? Steps The first step is to ...
    • How to calculate the output power of a Servo Drive

      Power in a Y-wired motor The following diagram shows the electrical model of a Y-wired BLAC motor: The power in any motor can be calculated as the sum of each phase power (product of RMS current and RMS voltage). In the case of a phase-balanced ...