Write sets the conditions to output a deviation counter clear signal. Read returns the current setting.

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

ASCII                ERC

Syntax                        

Read

ERC[axis]                

Where:        [axis] is set to X, Y, Z, U, or not specified to read global value

Write

ERC[axis]=[erc]                 

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

[erc]     sets the use/do not use condition (0-3)

               0: Do not use

               1: Use – Output the signal in case of an error stop

               2: Use – Output the signal in the case of a homing operation

               3: Use – Output the signal for both an error stop and a homing operation


Reply 

Command is accepted and executed

Read         

Returns the value set for use/do not use condition (0-3)

Write           

OK

Command cannot be processed

       An error message is returned. See Error Codes

Example 

Read        

ERCY        * Returns the setting for use/do not use condition of the Y axis

Write        

ERCZ=1 * Sets Z-axis deviation counter clear signal to “Output in case of an error stop”

Notes

ERC[axis] command is 2-bit and sets the output condition of the ERC signal. The ERC[axis] command can write a new condition or read the condition based on the chart below.t

Bit

Condition for Output

Setting

0

Error Stop

0: Disabled (Not used)     1: Enabled (Used)

1

Homing operation complete

0: Disabled (Not used)     1: Enabled (Used)

See also

Motor Setup, Limits/Safety Setup, 

ERCD, ERCP, INP, POL, SDC, SDE, EXST, IERR, STORE

Commander Manual

2.1.2.2 Digital Servo

2.1.3.1.1.1  Limit Switches