152
9 CREATING A HARDWARE LOGIC
9.2 Multi Function Counter Block
Counting method
In the flexible high-speed I/O control module, the following counting methods are provided: counting addition pulses and
subtraction pulses from external devices and performing up count per clock cycle. The counting method can be set by linking
blocks in the hardware logic.
In a counter timer block where the "UP" terminal, "DOWN" terminal, "RUN" terminal, and "STOP" terminal are linked, either of
the above counting methods can be used.
■
Operation of when input pulses from external devices are counted
When the High state of the "UP" terminal is detected, the addition value is added to the count value. When the High state of
the "DOWN" terminal is detected, the addition value is subtracted from the count value. When the High states of the "UP"
terminal and the "DOWN" terminal are detected at the same time, the addition value is added to the count value and the
detection of the High state of the "DOWN" terminal is ignored.
While input pulses are counted, the count operation can be stopped externally because the "STOP" terminal
has higher priority than the "UP" terminal and the "DOWN" terminal.
■
Operation of when counting is performed based on the clock cycle inside the module
The count operation is performed as a timer. When the High state of the "RUN" terminal is detected, counting up the count
value is started. Set the up count cycle with "Clock". When the High state of the "STOP" terminal is detected, counting up the
count value is stopped. When the High states of the "RUN" terminal and the "STOP" terminal are detected at the same time,
only the High state of the "STOP" terminal becomes valid. The detection of the High state of the "RUN" terminal is ignored.
Counting method
Link in hardware logic
Counting the input pulses from external devices
Link the "Output" terminals of the input signal event detection block where the
pulse input mode is set according to the external input pulse to the "UP"
terminal and "DOWN" terminal of the counter timer block.
Counting based on the clock cycle inside the module
Link terminals to the "RUN" terminal and the "STOP" terminal.
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: ......