9 CREATING A HARDWARE LOGIC
9.2 Multi Function Counter Block
165
9
Set/reset block
In the fifth section in the multi function counter block detail window, set/reset blocks are arranged by default. For a 16-bit
counter, two set/reset blocks ("Set/Reset_0" and "Set/Reset_1") are arranged. For a 32-bit counter, one set/reset block is
arranged.
The signal input to the "Set" terminal is used as a trigger to output High fixed signals or the signal input to the "Reset" terminal
is used as a trigger to output Low fixed signals.
Input
The following table shows the inputs of the set/reset block.
• When both the "Set" terminal status and "Reset" terminal status turn to High at the same time, the "Reset"
terminal becomes valid.
■Link of the set/reset block
• The set/reset block in a 16-bit counter can be linked to the following comparison blocks.
Output
The following table shows the output of the set/reset block.
Variable name Data type Linkable block Valid range Description
Set Bit • Input signal event
detection
• Comparison
0, 1 Outputs the High fixed signal when an input signal is
detected. Even if the input signal turns to Low, output
continues until a signal is input to "Reset".
Reset Bit • Input signal event
detection
• Comparison
0, 1 Outputs the Low fixed signal when an input signal is
detected.
Set/reset block Comparison block
"Set/Reset_0" "Compare_0"
"Set/Reset_1" "Compare_1"
Variable name Data type Linkable block Output value Description
Output Bit Output 0, 1 Outputs High fixed or Low fixed signals.