Encoder MSPEED

Encoder MSPEED

The MSPEED is sampled per servo cycle. So typically it is number of counts per millisecond. At slow speed there can be less than one count per msec. So it goes 0, then 1 then 0 etc. That is then multiplied by UNITS so the effect seems to be amplified.

If you want an average mspeed value to display then either start a timer and read MPOS, then read it again at the end of the time and calculate the speed, or use MSPEEDF and set the appropriate MSPEED_FILTER value. 1 is no filtering and 0.01 would be a long time-constant filter.

If the encoder is to be used as a master for following by other axes, then it is quite important to have an encoder with the same or higher number of counts per turn and the motors do. Then it will follow OK. If using gearboxes then those need to be taken into account too.
    • Related Articles

    • CONNECT command

      Question: I use the CONNECT command and when I change the ratio the encoder slave doesn't move in the axis. I see the pulses of the master encoder move. This is the code: BASE(0) ' slave (following) axis SERVO = ON UNITS = 4000 DEFPOS(0) BASE(2) ' ...
    • Jitter on the direction output, MC403-Z P821

      When using a MC403-Z P821, we are facing with an issue related to the "direction" signal. Please take a look at the following picture: Scope screen We have connected the oscilloscope on the step signal (channel 1) and direction signal (channel 2). ...
    • Connection to Single Ended Encoder (Incremental/Absolute)

      It is not recommended to connect an encoder single ended because it creates strange counting behavior due to signal noise and level drifts. TTL output uses differential wiring (A with /A and B with /B) to cancel noise. But... If single ended encoders ...
    • Flexaxis 4/8 Encoder Setup

      When connecting Encoders or using the analogue outputs on the P879 and P874 Felxaxis modules with the MC464 or MC664(X), the Flexaxis Module must have 24V connected to the IO connector on the Module. The 24V supplies internal DC/DC converters for the ...
    • MC4N Sync Encoder

      The encoder axis in the MC4N will automatically set itself up. With no EtherCAT axes it will be axis 0 and the ATYPE will show as either 44 (servo) or 76 (incremental encoder). You can connect an encoder and it will count the pulses straight away. ...