8 Interrupt Function and Pulse Catch Function
8.8 Pulse width/Pulse period measurement function
829
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
*1. VAR_01 to VAR_38 is a global label and define as following.
*2. The ring counter offers 32-bit data including the most significant bit.
The DSUB instruction does not give a correct value because it handles the most significant bit as the
sign bit. To obtain a correct value, add the processing inside the dotted frame.
2. Cautions on use
• The pulse width/pulse period measurement function and input interrupts can be used at the same time in a
same input terminal.
• When a same input terminal is used by the pulse width/pulse period measurement function and the SPD,
DSZR or ZRN instruction, an operation error occurs when the instruction is executed.
• The input terminal used for the pulse width/pulse period measurement function cannot be used for the
pulse catch function.
• When a same input terminal is used by the pulse width/pulse period measurement function and a high
speed counter, a grammatical error occurs.
• Make sure that the total frequency of four input channels is 50 kHz or less when using the pulse width/
pulse period measurement function.
• When the pulse width/pulse period measurement function and a high speed counter are used together, the
overall frequency of the high speed counter is affected.
→ FX Structured Programming Manual (Device & Common)
Global label Defined device Global label Defined device
VAR_03 D8074 VAR_36 D8
VAR_04 D0 VAR_37 K60
VAR_05 D8080 VAR_38 D10
VAR_06 D2
VAR_07 D2
VAR_08 D0
VAR_09 D8
VAR_11 D0
VAR_12 K0
VAR_13 D2
VAR_14 K0
VAR_15 H7FFFFFFF
VAR_16 D0
VAR_17 D4
VAR_18 D2
VAR_19 H80000000
VAR_20 D6
VAR_21 D4
VAR_22 D6
VAR_23 D8
VAR_24 D8
VAR_25 D0
VAR_26 K0
VAR_27 D2
VAR_28 K0
VAR_29 HFFFFFFFF
VAR_30 D0
VAR_31 D4
VAR_32 D2
VAR_33 D4
VAR_34 D8
VAR_35 D8