10 Pulse stretching
JetWeb
74
Jetter AG
10.4
Automatic pulse stretching
The pulse stretching condition is defined for each input separately using register
array elements 29 "Edge evaluation - Polarity", and 30 "Edge evaluation - Edge /
State".
Through register array elements 31 - 38 the pulse stretching duration can be
specified for each input separately, or the pulse stretching function can be disabled.
If the pulse stretching condition for an input is fulfilled, JX2-IO16 activates pulse
stretching for this input until the pulse stretching duration has elapsed. Then, pulse
stretching is automatically reset by the JX2-IO16 module. As long as the condition is
not fulfilled again, the actual input state is displayed.
Bits 16 - 23 in register 3xx0 display whether pulse stretching is active.
Automatic pulse stretching remains enabled until the value 0 is entered into register
array elements 31 - 38.
Examples
On the first JX2-IO16 module located after the controller, input signal of input 1 is to
be stretched for 10 ms automatically when the edge is rising.
Example7: Automatic pulse stretching - Variant 1
Loop with input number polling
Excerpt from the program
WHEN BIT_SET (3000, 16) THEN
//
//
//
Waiting until pulse
stretching of input 1
becomes active.
...
// Doing anything
GOTO l_Check_Input_1
//
//
Going back to the
beginning of the loop.
...
...
REGISTER_LOAD (3008, 30)
//
//
//
Selecting the 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, 31)
//
//
//
Selecting register array
element 31 -> Pulse
stretching duration
REGISTER_LOAD (3009, 10)
// Pulse stretching duration
of 10 ms
...
LABEL l_Check_Input_1
// Beginning of loop
Содержание 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...