158
9 CREATING A HARDWARE LOGIC
9.2 Multi Function Counter Block
Comparison block
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.
*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.
Variable name
Data type
Linkable block
Valid range
Description
Input
Word
Counter timer
• -32768 to 32767 (16-bit signed
counter)
• 0 to 65535 (16-bit unsigned
counter)
• -2147483648 to 2147483647 (32-
bit signed counter)
• 0 to 4294967295 (32-bit unsigned
counter)
Inputs the count value of the counter timer block.
Multi function counter block Counter timer block
Comparison block
16-bit multi function counter block
"Count Value" terminal of "Counter_Timer_0"
"Input" terminal of "Compare_0"
"Count Value" terminal of "Counter_Timer_1"
"Input" terminal of "Compare_1"
32-bit multi function counter block
"Count Value" terminal of "Counter_Timer_0"
"Input" terminal of "Compare_0"
Multi function
Summary of Contents for MELSEC-L Series LD40PD01
Page 2: ......
Page 9: ...7 MEMO ...
Page 24: ...22 2 PART NAMES MEMO ...
Page 35: ...4 PROCEDURES BEFORE OPERATION 33 4 MEMO ...
Page 263: ......