Hitachi HIDIC MICRO-EH Applications Manual page 188

Table of Contents

Advertisement

Item number
FUN instructions-13
Ladder format
FUN 148 (s)
Instruction format
FUN 148 (s)
Usable I/O
Argument (PWM output
s
number)
Argument (Frequency
s+1
value)
Argument (On-duty
s+2
value)
Function
15
S
PWM number
S + 1
S + 2
Sets the frequency value and on-duty value of the PWM output number specified by the on-duty value and the specified
frequency value.
Sets the frequency value in Hz.
Example: To set a frequency of 1 kHz, set 1000 (H3B8) as internal output.
Sets the on-duty value in %.
Example: To set an on-duty of 80 %, set 80 (H50) as internal output.
When the on-duty is set to be auto-corrected, the effective range of the on-duty is calculated using the following expressions.
On-duty lower limit value (%) = Hardware delay time (µs) x Frequency used (Hz) x 10
On-duty upper limit value (%) = 100 − Hardware delay time (µs) x Frequency used (Hz) x 10
If the CPU model is EH-***DRP and the PWM output is 2 kHz,
On-duty lower limit value = 50 x 2000 x 10
On-duty upper limit value = 100 − (50 x 2000 x 10
Thus, the effective range of the on-duty will be 10 % to 90 %.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
8
7
**
Frequency values
On-duty value
-4
= 10 %
-4
) = 90 %
5-138
Chapter 5 Instruction Specifications
PWM Frequency on-duty changes
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
173
Steps
3
Word
Double word
WR,
WM TC DX DY
0
PWM output number: H01 to H04
**: Disable area
Frequency: 10 to 2000 (Hz)
*: If the frequency value is set to less than 10 Hz, it is
internally changed to 10 Hz. The S parameter is also
rewritten.
On-duty value:
With auto correction – Depends on the frequency used.
Without auto correction – 0 to 100 (%)
Auto correction is executed when the value corresponding to
the CPU model is specified in WRF06B.
Caution: There will be a slight error even if correction setting
is performed
-4
Remark
DR,
Other
DM
-4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents