Registration input to step output delay

Registration input to step output delay

REGIST will precisely capture a position within microsconds but the MARK goes TRUE only on the following servo cycle, so as a raw edge detection it is no faster than an IN command.  The only advantage is that you get to trigger on an edge with REGIST.

ie
REGIST(20)
WAIT UNTIL MARK ' only sees the mark true on the next millisecond.

Even if a 250 usec servo period is selected, it sets only the motion cycle time.  The BASIC programs will continue on a round-robin context switch that effectively gives a fast task some run time every msec and slow programs progressively less than that as you run more of them.  There are 4 context switches in the BASIC multi-tasking per millisecond.  3 slots for BASIC and 1 slot for the system.  It goes something like F, Slow, F, Sys.  so each fast task comes around once per msec.

So you might observe 0.9 .. 1.2 msecs response given that the external process is not synced to the servo cycle clock in the MC508.

A useful thing to know is that if you use MOVELINK, you can make it start exactly on a REGIST input.  Pre-arm the REGIST, pre-load the MOVELINK and on the rising edge the MOVELINK starts very precisely.  And it would do so whatever the SERVO_PERIOD is set to, given that the registration captures the master axis position in hardware.

BASE(1)
REGIST(20)
MOVELINK(10, 12, 2, 2, master_axis, 1) ' load movelink and wait for rising edge.

    • Related Articles

    • REGIST question

      Question: Can I use more than the 8 inputs 0 to 7 on the MC4N/MC6N as registration inputs, using REGIST(21 ... ) ? Suggestion & resolution: The hardware that does the registration is only there on inputs 0 to 7. You can do a "soft" regist that is ...
    • AN-291 Touch Probe EtherCAT registration

      Digital Servo Drives often have a position capture function known either as Touch Probe or Touch Trigger. This function uses either the Z mark on the motor’s encoder, or one of 2 external inputs to act as the latch signal and capture the encoder ...
    • MC6N Ethercat Registration Problem

      If the MC6N-ECAT registration inputs 0 to 7 do not function, it is possibly due to having an earlier FPGA that does not have the registration capture registers. Please install firmware V2.0300 or later which includes the latest updated FPGA image.
    • AN-355 Using Registration on MC4N

      The registration on the MC4N is more flexible than on previous controllers. This document lists the commands required to do the Registration
    • AN-396 EtherCAT Registration

      Registering is a way of very accurately noting a position on an axis.  This document discusses how to perform this registration, as well as provides more information on the Motion Coordinators (to which this is applicable) and on Touch Probe