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

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: -5000 to -50, 50 to 5000

Frequency setting error flag

S26F

ON at error (reset OFF automatically)

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)

Basic Hardware and Function 283

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 285
Image 285
Toshiba 6F3B0250, PROSEC T1 T1S user manual Pulse output function, Pls Dir