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
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
< 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 | Register/ | Remarks | ||
CW/CCW |
| PLS/DIR | device |
|
CW pulse |
| PLS | Y020 |
|
CCW pulse |
| DIR | Y021 |
|
Pulse enable flag |
| S270 | Output is enabled when ON | |
Frequency setting register | SW28 | Data range: | ||
Frequency setting error flag | S26F | ON at error (reset OFF automatically) |
Note) The allowable value range of the frequency setting (SW28) is
Basic Hardware and Function 283
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net