Identifies the number of Z-index pulses to count when using the the ZMOVE, or Homing commands.


The ZCNT[axis] command also works with any homing operation that uses the Z-index pulses as part of the homing operation to set the number of Z-index pulses that need to be detected.  The range for ZCNT[axis] is 1-16.  The number of Z-index pulses to be detected will be the number set. 


Applies to: CMD-4CR, CMD-4EX-SA


ASCII/Standalone                ZCNT[axis]

Syntax:                        

Read:

ZCNT[axis]                

Where:        [axis] is set to X, Y, Z, U


Write:

ZCNT[axis]=[count]                 

Where:        [axis]   is set to X, Y, Z, U

[count]     specifies the number of Z-pulses to count.  Setting range (1 – 16)

Reply: 

Command is accepted and executed

Read:         

Returns the value of the [axis] counts.


Write:           

OK


Command cannot be processed

       An error message is returned. See Error Codes

Example: 

Read:        

ZCNTX                * Returns the value of Z-index count for the X-axis


Write:        

ZCNTX=1         * Sets the Z-index count to stop on the 1st Z-index pulse detection for the X axis


Notes:

  • Any value entered for [count] less than 1 will return a 1, and any value entered greater than 16 will return a 16.    


Operating procedure

If there is no change in the previous set data, the operations 1 and 2 below are not necessary.

  1. Set the operating speeds
  2. Set the Z-index count numbers and the Z-index input logic
  3. Issue a homing command

Operating conditions

  • Joystick motion is disabled
  • MPG operation is disabled
  • Operation is stopped
  • The error status is clear

See also:

Homing Settings

H, ZMOVE

Commander Manual

2.1.1.1 Identification Number