9 CREATING A HARDWARE LOGIC
9.2 Multi Function Counter Block
149
9
Parameter
The following table shows the parameters of the counter timer block.
*1 The valid range is determined by the type of the multi function counter block arranged in the hardware logic outline window.
Variable name
Data type
Valid range
Default value
Description
Count Enable
Bit
OFF
ON
OFF
Set the count enable to valid or invalid.
OFF: Invalid
ON: Valid
Count Mode
Bit
Linear
Ring
Linear
Set the counter mode to the ring counter or
the linear counter. The counter mode is fixed
to "Ring" for 16-bit counter timer blocks.
Linear: Linear counter
Ring: Ring counter
Upper Limit
Word
16-bit signed
counter
-32768 to 32767
32767
Set the upper limit value of the counter timer.
16-bit unsigned
counter
0 to 65535
65535
32-bit signed
counter
-2147483648 to
2147483647
2147483647
32-bit unsigned
counter
0 to 4294967295
4294967295
Lower Limit
Word
16-bit signed
counter
-32768 to 32767
-32768
Set the lower limit value of the counter timer.
16-bit unsigned
counter
0 to 65535
0
32-bit signed
counter
-2147483648 to
2147483647
-2147483648
32-bit unsigned
counter
0 to 4294967295
0
Clock
Word
25ns
50ns
0.1
μ
s
1
μ
s
10
μ
s
100
μ
s
1ms
25ns
Set the clock cycle.
To count input pulses, set "25ns" for "Clock".
Setting a value other than "25ns" may not
count the input pulses correctly.
Add Mode
Bit
OFF
ON
OFF
Set the addition mode to valid or invalid.
OFF: Invalid
ON: Valid
Add Value
Word
16-bit signed
counter
0 to 65535
0
Set the value of addition/subtraction for count.
16-bit unsigned
counter
32-bit signed
counter
0 to 4294967295
32-bit unsigned
counter
STOP
→
PRESET
Bit
OFF
ON
OFF
Set whether to perform the preset function or
not at an occurrence of a STOP event.
OFF: The preset function is not performed.
ON: The preset function is performed.
PRESET
→
STOP
Bit
OFF
ON
OFF
Set whether to stop counting or not at an
occurrence of a PRESET event.
OFF: Counting is continued.
ON: Counting is stopped.
Preset Value
Word
16-bit signed
counter
-32768 to 32767
0
Set the preset value.
16-bit unsigned
counter
0 to 65535
32-bit signed
counter
-2147483648 to
2147483647
32-bit unsigned
counter
0 to 4294967295
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: ......