Basic Hardware and Function
283
8. Special I/O Functions
8.6 Pulse output function
Function
This function is used to output a variable frequency pulse train. The controllable pulse
frequency is 50 to 5000 Hz (1 Hz units).
The output mode can be selected either CW/CCW or Pulse/Direction (PLS/DIR).
In the CW/CCW mode, CW pulse is output when the frequency setting is positive (50 to
5000), and CCW pulse is output when it is negative (-50 to -5000).
In the PLS/DIR mode, DIR is OFF when the frequency setting is positive (50 to 5000),
and DIR is ON when it is negative (-50 to -5000).
< CW/CCW mode >
CW
CCW
< PLS/DIR mode >
PLS
DIR
In the both modes, pulse output is enabled when the pulse enable flag is ON. While the
pulse enable flag is ON, the pulse frequency can be changed by changing the frequency
setting value. However, the pulse direction (the sign of the frequency setting) cannot be
changed when the pulse enable flag is ON.
This function can be used to control the speed of a stepping motor, etc.
Related registers
SW26: Function selection. Refer to section 8.1.
Function Re
g
ister/ Remarks
CW/CCW PLS/DIR device
CW pulse PLS Y020
CCW pulse DIR Y021
Pulse enable fla
g
S270 Output is enabled when ON
Frequenc
y
settin
g
re
g
ister SW28 Data ran
g
e: -5000 to -50, 50 to 5000
Frequenc
y
settin
g
error fla
g
S26F ON at error (reset OFF automaticall
y
)
Note) The allowable value range of the frequency setting (SW28) is -5000 to -50 and
50 to 5000. If the value is out of this range or the sign is changed while the
pulse enable flag (S270) is ON, the frequency setting error flag (S26F) comes
ON. (Pulse output operation is continued with previous frequency setting)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net