
- 63 -
9-4. External switch (±DR) operation mode
This mode allows operations with inputs from an external switch.
To enable inputs from an external switch, bring the
terminal LOW.
After writing a start command, when a +DR/-DR signal is input, the LSI will output pulses to the OUT
terminal.
Set the RENVI (environment 1) register to specify the output logic of the ±DR input signal. The
signal
can be set to send an output when ±DR input is changed.
The RSTS (extension status) register can be used to check the operating status and monitor the ±DR
input.
It is also possible to apply a filter to the ±DR or
inputs.
Set the input logic of the +DR/-DR signals <Set DRL (bit 25) in RENV1 >
0: Negative logic
1: Positive logic
[RENV1] (WRITE)
31
24
- - - - - - n -
Applying a ±DR or
input filter <Set DRF (bit 27) in RENV1>
1: Apply a filter to ±DR input or
inputs
When a filter is applied, pulses shorter than 32 msec will be ignored.
[RENV1] (WRITE)
31
24
- - - - n - - -
Setting an event interrupt cause <Set IRDR (bit 17) in RIRQ>
1: Output the
signal when ±DR signal changed input.
[RIRQ] (WRITE)
23
16
0 0 0 0 0 - n -
Reading the event interrupt cause <ISPD (bit 17) and ISMD (bit 18) in RIST>
ISPD(bit 17) = 1: When the +DR signal input changes.
ISMD(bit 18) = 1: When the -DR signal input changes.
[RIST] (READ)
23
16
0 0 0 0 - n n -
Read operation status < CND (bits 0 to 3) in RSTS>
0001: Waiting for a DR input
[RSTS] (READ)
7
0
- - - - n n n n
Reading the ±DR signal <SDRP (bit 11) and SDRM (bit 12) in RSTS>
SDRP = 0: +DR signal is OFF SDRP = 1: +DR signal is ON
SDRM = 0: -DR signal is OFF SDRM = 1: -DR signal is ON
[RSTS] (READ)
15
8
- - - n n - - -
The external switch operation mode has the following two forms
MOD
Operation mode
Direction of movement
02h
Continuous operation using an external switch.
Determined by +DB, - DR input.
56h
Positioning operation using an external switch.
Determined by +DB, - DR input.
9-4-1. Continuous operation using an external switch (MOD: 02h)
This mode is used to operate an axis only when the DR switch is ON.
After writing a start command, turn the +DR signal ON to feed the axis in the positive direction, turn the -
DR signal ON to feed the axis in the negative direction, using a specified speed pattern.
By turning ON an EL signal for the feed direction, movement on the axis will stop. However, the axis can
be fed in the reverse direction.
An error interrupt (
output) will not occur.
To end this operation mode, write an immediate stop command (49h).
If the axis is being fed with high speed commands (52h, 53h), movement on the axis will decelerate and
stop when the DR input turns OFF. If the DR input for reverse direction turns ON while decelerating,
movement on the axis will decelerate and stop. Then it will resume in the opposite direction.
[Setting example]
1) Bring the
input LOW.
2) Specify RFL, RFH, RUR, RDR, and RMG (speed setting).
3) Enter "0000010" for MOD (bits 0 to 6) in the RMD (operation mode) register
4) Write a start command (50h to 53h).
CND (bits 0 to 3) of the RSTS (extension status) register will wait for "0001: DR input."