JX2-IO16
10.4 Automatic pulse stretching
Jetter AG
75
Example8: Automatische Impulsverlängerung - Variante 2
Schleife mit Abfrage einer aktiven Impulsverlängerung
Programmauszug
WHEN IN 201 THEN
//
//
Waiting until first
rising edge is sensed
...
// Doing anything
WHEN -IN 201 THEN
//
//
Waiting until pulse
stretching duration is
reset
GOTO l_Check_Input_1
// End of 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
WHEN BIT_SET (3000, 16) THEN
//
//
//
Waiting until pulse
stretching of input 1 is
active
...
// Doing anything
WHEN BIT_CLEAR (3000, 16) THEN
//
//
//
Waiting until pulse
stretching of input 1 is
reset
GOTO l_Check_Input_1
// End 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...