Z Marker Failure

Z Marker Failure

Want a timout if the DATUM command fails to find the sensor or the Z.

We don't have anything built in to the DATUM command itself. You could make 2 separate DATUM commands, one for the swtich and then one for the Z. Add a timeout to each one.

DATUM(3)
TICKS = 10000 ' 10 seconds
REPEAT
     WA(1)
UNTIL IDLE OR TICKS<0
IF NOT IDLE THEN
     CANCEL
     home_error = 1
ENDIF
WAIT IDLE

IF home_error = 0 THEN
     DATUM(2)
     TICKS = 2000 ' 2 seconds
     REPEAT
          WA(1)
     UNTIL IDLE OR TICKS<0
     IF NOT IDLE THEN
          CANCEL
          home_error = 2
     ENDIF
ENDIF

The second one could be done as a position check, say 1.1 turns of the motor, instead of a timeout. The first datum will set the axis to 0 at the switch, so the MPOS should not go more than one turn before it sees the Z.

Or write your own datum function that includes timeout or position checks.
    • Related Articles

    • XY single belt (FRAME=2) Homing?

      This frame is very simple. X movement causes axes 0 and 1 to move in the same direction. Y movement causes axes 0 and 1 to move in opposite directions. In FRAME 0 you can make a move in X by MOVE(distance, distance) You can make a move in Y by ...
    • DATUM(6) with MC664 and EtherCAT drives

      You must set up the PDO to include the Touch Probe objects. If it is a drive with profiles built-in to the trio firmware, then the usual selection is DRIVE_PROFILE = 2 in position mode. If using an EC_EXTEND file then you must add the touch probe to ...
    • AN-285 Homing CT Ethercat Drive

      Many servo drives have built-in homing or datuming routines. When connected via a digital bus system, these routines can be used to home the axis. The use of the Emerson Control Techniques EtherCAT module for the Digitax and Unidrive SP is described ...
    • LinMot latest Drive support DS402 homing & Torque control

      LinMot have updated their firmware to include Position, Speed & Torque control now. The respective CoE objects are mapped in the fixed PDO profiles. The below LinMot Drives with Firmware 6.10 able to support this profiles In the attached EC_EXTEND, ...
    • Can I use Motion Perfect v4 with the new MC404-Z?

      The MC404-Z and other new products require the latest version of Motion Perfect to run them.  At the time of writing this post, the latest version is MPv5 version 5.0.2 and that is the recommended version for programming the MC404-Z 4 axis stepper ...