EasyManua.ls Logo

NAiS FPG-C32T2 - Page 108

Default Icon
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FPΣ
6.4 Pulse Output Function
6-33
(*1): Control code (H constant)
Operation mode
0: Incremental Specifies the amount of travel (number of pulses)
1: Absolute Specifies the target value (absolute value)
H jjj
Upper word
0: Fixed
Duty (on width)
0: Duty 1/2 (50%)
1: Duty 1/4 (25%)
Frequency range
0: 1.5 Hz to 9.8 kHz
1: 48 Hz to 100 kHz
2: 191 Hz to 100 kHz
Output method
0: CW (addition counting)
1: CCW (subtraction counting)
2: PLS+SIGN (forward off) (addition counting)
3: PLS+SIGN (reverse on) (subtraction counting)
4: PLS+SIGN (forward on) (addition counting)
5: PLS+SIGN (reverse off) (subtraction counting)
jjjjj
(*2): Frequency (Hz) “K constant”
1.5 Hz to 9.8 kHz [K1 to K9800 (units: Hz)] (Max. error near 9.8 kHz: approx. -0.9 kHz)
* Set “1” to specify 1.5 Hz.
48 Hz to 100 kHz [K48 to K100000 (units: Hz)] (Max. error near 100 kHz: approx. -3 kHz)
191 Hz to 100 kHz [K191 to K100000 (units: Hz)] (Max. error near 100 kHz: approx. -0.8 kHz)
(*3): Target value (K-2147483648 to K2147483647)
The value of the 32-bit data specified for the target value should be within the range indicated in
the table below.
Specification of control code
Range
of
allowable
target
values
Operation mode Output method
R
ange o
f
a
ll
owa
bl
e target va
l
ues
Incremental Addition counting Specifies a positive value.
Subtraction counting Specifies a negative value.
Absolute Addition counting Specifies a value larger than the current value
Subtraction counting Specifies a value smaller than the current value
Trigger
R10
R903A
(R903C)
5,000
Frequency (speed) [Hz]
01000 8000 10000
Elapsed value of
high-speed
counter
(Amount of travel)
1,000
2,500
3000
Pulse output diagram
When the execution condition (trigger) R10 of the F174 (SP0H) instruction goes on, the
high-speed counter control flag R903A (R903C) goes on. When the elapsed value
reaches 10,000 and pulse output stops, R903A (R903C) goes off.

Table of Contents