Comparison Block - Mitsubishi Electric MELSEC iQ-R User Manual

Flexible high-speed i/o control module
Hide thumbs Also See for MELSEC iQ-R:
Table of Contents

Advertisement

Comparison block

Multi function
In the fourth section in a multi function counter block detail window, comparison blocks are arranged by default. For a 16-bit
counter, two comparison blocks ("Compare_0", "Compare_1") are arranged. For a 32-bit counter, one comparison block
("Compare_0") is arranged.
"Count Value" in a counter timer block is compared with the value set with the parameter. If a condition is satisfied, the state of
the "Output" terminal turns to High. Two comparison conditions can be set for one counter timer block.
Input
The following table shows the input of the comparison block.
Variable name
Data type
Input
Word
*1 The valid range is determined by the type of the multi function counter block arranged in the hardware logic outline window.
■Automatic link
Counter timer blocks and comparison blocks are linked automatically in the following combinations, and the links cannot be
deleted.
Multi function counter block
16-bit multi function counter block
32-bit multi function counter block
3 CREATING A HARDWARE LOGIC
168
3.2 Multi Function Counter Block
Linkable block
Valid range
Counter timer
Counter timer block
"Count Value" terminal of "Counter_Timer_0"
"Count Value" terminal of "Counter_Timer_1"
"Count Value" terminal of "Counter_Timer_0"
• -32768 to 32767 (16-bit signed
*1
counter)
• 0 to 65535 (16-bit unsigned counter)
• -2147483648 to 2147483647 (32-bit
*1
signed counter)
• 0 to 4294967295 (32-bit unsigned
*1
counter)
Comparison block
"Input" terminal of "Compare_0"
"Input" terminal of "Compare_1"
"Input" terminal of "Compare_0"
Description
Inputs the count value of the counter
timer block.
*1

Advertisement

Table of Contents
loading

Table of Contents