JX2-IO16
10.3 Manual pulse stretching
Jetter AG
73
Example5: Manual pulse stretching - Variant 1
Loop with input number polling
Excerpt from the program
Example6: Manual pulse stretching - Variant 2
Loop with polling an active pulse stretching
Excerpt from the program
...
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
...
LABEL l_Check_Input_1
// Beginning of the loop
REGISTER_LOAD (3001, 1)
//
//
//
Enabling and resetting
the input for manual pulse
stretching
WHEN -IN 201 THEN <------ ATTENTION //
//
//
//
//
//
//
Following the reset of an
active pulse stretching
(beginning from the 2nd
loop iteration), waiting
until IN 201 is also set
to zero.
WHEN IN 201 THEN
//
//
//
Waiting until the first
rising edge is detected -
> Pulse stretching
activated.
...
// 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
...
LABEL l_Check_Input_1
// Beginning of the loop
REGISTER_LOAD (3001, 1)
//
//
//
Enabling and resetting
the input for manual pulse
stretching
Summary of Contents for JX2-IO16
Page 10: ...Table of Contents JetWeb 10 Jetter AG...
Page 18: ...1 Safety Instructions JetWeb 18 Jetter AG...
Page 22: ...2 Introduction JetWeb 22 Jetter AG...
Page 23: ...JX2 IO16 Jetter AG 23 3 Mounting Dimensions Fig 3 Front View JX2 IO16 Fig 4 Side View JX2 IO16...
Page 24: ...3 Mounting Dimensions JetWeb 24 Jetter AG Fig 5 Top View JX2 IO16...
Page 56: ...6 Installation Guide JetWeb 56 Jetter AG...
Page 68: ...9 Fast inputs Software filter JetWeb 68 Jetter AG...
Page 82: ...10 Pulse stretching JetWeb 82 Jetter AG...
Page 105: ...JX2 IO16 Appendix Jetter AG 105 Appendices...
Page 106: ...Appendices JetWeb 106 Jetter AG...
Page 123: ...JX2 IO16 Appendix Jetter AG 123...