How to simulate encoder signal on Visual Applets

  • Dear All.


    I would assign encoder signal to flash two lights and I want to simulate signal.

    How to generate the positive and negative signals of the encoder AB phase on Visual Applets?


    Thanks.

  • The attched VA design includes the design of the screenshot below.


    It is based in signal operators that decode an AB encoder signal at Mode X2:

    ShaftEncoder2.png






    The ShaftEncoderCompensate makes sure that ony forward pulses are used.


    The DownScale selects the correct phase (=2) for A or B switching Illumination 1 or 2, while the diagram below shows 3 phases.

    Downscale2.png

    Signal analysis is only possible in the runtime and can be done on the basis of our Scope Operator.


    ShaftAB_Illumination.png



    The Scope enables a very precise analysis.

    ScopeWaveForms.png