14 HIGH-SPEED COUNTER INSTRUCTION
14.1 High-speed Processing Instruction
815
14
Precautions
• Do not specify channel numbers of the high-speed pulse input/output module in a program with interrupt priority set to "1".
• When values that turn on the same channel are set for start and stop, the stop operation is prioritized.
• If there is a channel where an error occurs (error code: 3781H) when the high-speed counter (function number: K0) is
executed by the DHIOEN instruction, the counter can no longer be started/stopped for the applicable channel and
subsequent channels.
• When the high-speed comparison table (function number: K20) is used with the DHIOEN instruction, the total number of
high-speed comparisons, including the DHSCS instruction, DHSCR instruction, DHSZ instruction, and interrupt input of
built-in positioning, must be 32 or less.
• When using the high-speed comparison table (function numbers: K21 to K24) with the DHIOEN instruction, set the number
of high-speed comparisons used within the same high-speed pulse input/output module to 15 times or less.
• For the high-speed comparison table numbers and total number of high-speed comparisons, refer to
• To start the high-speed comparison table (function numbers: K20 to K24) or the multi-output high-speed comparison table
(function number: K30), the high-speed counter must be started using the DHIOEN instruction in advance.
• The high-speed input/output instructions operate according to the following parameters.
Operation error
Function
number
Function specified by the DHIOEN instruction
Parameter setting
K0
High-speed counter
Channel setting of the high-speed counter
K10
Pulse density (rotation speed measurement)
Channel setting of the pulse density/rotation speed measurement
High-speed counter
K20
High-speed comparison table (CPU module)
Output setting of the high-speed counter
K21
High-speed comparison table (first high-speed pulse input/output
module)
Output setting of the high-speed counter
K22
High-speed comparison table (second high-speed pulse input/output
module)
Output setting of the high-speed counter
K23
High-speed comparison table (third high-speed pulse input/output
module)
Output setting of the high-speed counter
K24
High-speed comparison table (fourth high-speed pulse input/output
module)
Output setting of the high-speed counter
K30
Multi-output high-speed comparison table
Output setting of the high-speed counter
K40
Pulse width measurement
Channel setting of the pulse width measurement
K50
PWM
Channel setting of PWM
Error code
(SD0/SD8067)
Description
1810H
A channel number which is used in another instruction is specified.
2801H
The channel number of a module that does not exist is specified.
3056H
Timeout occurred while communicating with the target modules during execution of the instruction.
3060H
Signal error was detected while accessing the target modules during execution of the instruction.
3405H
An invalid function number is specified in (s).
3580H
An instruction that cannot be used in an interrupt program is used.
3600H
A channel number which is not selected in the parameter setting is executed.
3781H
Ring length
preset value is specified and executed in channel for which ring length is set and preset input is enabled.
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......