Select to set hardware event of counter device
CntChannel |
Initial value: 0 |
[Essential]
Specify the channel number for setting the hardware event
PulseWidth |
Initial value: 0H |
Specify the pulse width of the one-shot pulse
to be output by a hardware event such as count match
In the sampling function type and other devices, the setting range and
pulse width are different
- In the case of a type with sampling function counter device
Setting value |
Pulse width |
0H |
10μSec |
1H |
100μSec |
2H |
1mSec |
3H |
10mSec |
4H |
100mSec |
- For counter devices other than type with sampling function
Setting value |
Pulse width |
0H |
0 |
1H |
About 409.6μSec |
2H |
About 819.2μSec |
3H |
About 1.23mSec |
4H |
About 4.92mSec |
5H |
About 10.24mSec |
6H |
About 20.07mSec |
7H |
About 29.90mSec |
8H |
About 40.14mSec |
9H |
About 49.97mSec |
AH |
About 60.20mSec |
BH |
About 70.04mSec |
CH |
About 80.28mSec |
DH |
About 90.11mSec |
EH |
About 100.35mSec |
FH |
About 104.45mSec |
OutputHardwareEvent |
Initial value: General purpose output: Negative logic |
When this setting is made, signals can be output to the outside depending on the status of the counter device
Hardware events that output control signals are specified in a two-element cluster
■ Element 1: Output event type (EventType)
Specify the event source that outputs
the control signal with five Boolean values
Any one or more of the factors can be set to True
When all factors are False, the control signal output terminal can be used as a general-purpose output
Event factor |
Meaning |
Count match register 0 |
One-shot pulse is output at count match of count match register 0 |
Count match register 1 |
One-shot pulse is output at count match of count match register 0 |
Filter error |
A one-shot pulse is output when a filter error occurs |
Abnormal input error |
One-shot pulse is output when an Abnormal input error occurs |
Disconnection alarm error |
One-shot pulse is output when disconnection alarm error occurs |
* In the initial state, all factors are False and it is used as general output
■ Element 2: Output signal logic (OutputLogic)
Specify the output logic of the control output signal
0:
Negative logic
1: Positive logic
* General purpose output can
be executed with "Write
- ① Digital output (1 bit)"
At that time, specify the channel number for DoBit
CountMatchHardwareEvent |
Initial value: Invalid event specification: 0 |
When this setting is made, the count value
can be automatically changed at the timing of the count match
Hardware events of count matching are specified in a two-element cluster
■ Element 1: Count match event type (EventType)
Specify the hardware event to be executed at count match
Event |
Meaning |
Event specification invalid |
Count match hardware event is not executed |
Count value preset |
When counting matches, change the count value of the set channel to the preset value |
Count value zero clear |
Change the count value of the setting channel to 0 when count match |
* In the initial state, the event designation is invalid, and the count matching hardware event is not performed
■ Element 2: Compare register number (RegisterNo)
Specify the compare register number to perform count match
Setting range: 0 or 1
InputHardwareEvent |
Initial value: General purpose input: 0: 0 |
When this setting is made, the counter can
be controlled by signal input from the outside to the counter device
Hardware events for control signal input are specified in a three-element
cluster
The selection of the processing elements 1 (EventType), component 2 and component 3 (RF0, RF1) is set to accompanying
■ Element 1: Input event type (EventType)
Specify the hardware event to be executed by inputting the control signal
Event |
Meaning |
General purpose input |
Do not perform hardware event of control signal input |
Counter start/stop |
Start/stop the counter by inputting the control signal |
Count value preset |
Change the count value to the preset value by inputting the control signal |
Count value zero clear |
Change the count value to 0 by inputting the control signal |
* In the initial state, no hardware event is performed, but it is used as general purpose input
Counter start/stop case
Start with the condition of RF0
, stop with the condition of RF1
.
- In case of count value preset
Preset with the condition of RF0
- When the count value is cleared to zero
Clear to zero with the condition of RF0
■ Element 2: Control input trigger edge 0 (RF0)
■ Element 3: Control input trigger edge 1 (RF1)
Specify the direction of control signal input to execute processing specified by element 1 (EventType)
0:
Do not execute
1: Run at the rising edge (Execute at
the timing when the input signal changes from Low to High)
2: Executed at the falling edge (Executed
at timing when the input signal changes from High to Low)
Please specify 0 for general purpose input or when setting of RF1 is unnecessary
* General purpose input can be
executed with "Read - ① Digital
input (1 bit)"
In that case, please specify the channel number
for DiBit
Moreover, it is also possible to read all channels
collectively with "read
- ② digital input (1 port)"
PresetData |
Initial value: 0 |
Specify the preset value to use when presetting with hardware event
Setting range: 0~4,294,967,295 (FFFFFFFFH)
This setting is used
only when a hardware event condition is satisfied
If you want to change the count value immediately, perform counter
presetting of "Write"
Please refer to the table below for the use of hardware events and considerations. For example, when outputting a control signal (one shot pulse) at the timing of count match and at the same time clearing the count value to zero, set OutputHardwareEvent and CountMatchHardwareEvent. In this case, it is possible to output the control signal (frequency division of the input pulse frequency) every constant count. You can use the sample "hardware event" to confirm the operation of the hardware event.
|