![Jetter JX2-IO16 Скачать руководство пользователя страница 86](http://html1.mh-extra.com/html/jetter/jx2-io16/jx2-io16_user-manual_3890494086.webp)
11 Counter Function
JetWeb
86
Jetter AG
Example
Example 9: Single-channel counter
Pulses are to be counted via input 8 of a JX2-IO16 module which is connected as
second IO module. Once a certain number of pulses is reached, a stop signal is to
be output via output 1.
Fig. 26: Example: Single-channel counter
Excerpt from the program
JX2-IO16
Jetter
...
REGISTER_LOAD (3008, 30)
//
//
//
Selecting register array
element 30 -> Edge/State
BIT_CLEAR (3009, 0)
// Selecting edge
REGISTER_LOAD (3008, 29)
//
//
//
Selecting register array
element 29 -> Polarity
BIT_SET (3009, 0)
// Rising edge
REGISTER_LOAD (3008, 20)
//
//
//
Selecting register array
element 20 -> Counter
configuration
BIT_SET (3009, 7)
//
//
Configuring input 8 as
counter
REGISTER_LOAD (3008, 48)
//
//
//
//
Selecting register array
element 45 -> Software
filter for input 8
REGISTER_LOAD (3009, 10)
//
//
Softwarefilter für
Eingang 8 anpassen
...
REG_ZERO 3007
// Zeroing counter reading
WHEN REG 3007 > 94 THEN
//
//
Does the reading exceed
94?
OUT 201
//
//
Setting output 1 on the
module
...
Содержание JX2-IO16
Страница 10: ...Table of Contents JetWeb 10 Jetter AG...
Страница 18: ...1 Safety Instructions JetWeb 18 Jetter AG...
Страница 22: ...2 Introduction JetWeb 22 Jetter AG...
Страница 23: ...JX2 IO16 Jetter AG 23 3 Mounting Dimensions Fig 3 Front View JX2 IO16 Fig 4 Side View JX2 IO16...
Страница 24: ...3 Mounting Dimensions JetWeb 24 Jetter AG Fig 5 Top View JX2 IO16...
Страница 56: ...6 Installation Guide JetWeb 56 Jetter AG...
Страница 68: ...9 Fast inputs Software filter JetWeb 68 Jetter AG...
Страница 82: ...10 Pulse stretching JetWeb 82 Jetter AG...
Страница 105: ...JX2 IO16 Appendix Jetter AG 105 Appendices...
Страница 106: ...Appendices JetWeb 106 Jetter AG...
Страница 123: ...JX2 IO16 Appendix Jetter AG 123...