![UIrobot UIM2842 User Manual Download Page 46](http://html1.mh-extra.com/html/uirobot/uim2842/uim2842_user-manual_3291061046.webp)
Page 46
M4220170607EN
UI Robot Technology Co. Ltd.
UIM2842
8.3 Digital Input Sampling Mode
Digital input of UIM2842 has three sampling mode:
1
)
Continuous sampling
2
)
Intermittent sampling
3
)
Single sampling
In different sampling mode is respectively following three trigger modes:
zero-interval
continuous triggering, N millisecond interval triggering and single triggering.
Continuous Sampling
In continuous sampling mode, UIM2842 controllers detect level fluctuation at port S1/S2/S3
uninterruptrdly. Once a fluctuation happens, controllers will call corresponding program,
execute pre-set actions, and (or) send a message to user device.
If user sets the sampling interval to 0 by using instruction STG, the controllers will work in
continuous sampling mode.
Intermittent Sampling
In intermittent sampling mode, user needs to set sampling interval T (1~60000ms) at first.
Once a fluctuation is detected at one port, UIM2842 controllers will not detect the level
fluctuation at this port until (T+1) ms later.
When working in this mode, it is available for prevention and treatment of disturb and shake
eliminating of digital input.
If user sets the sampling interval to T (1 ~ 60000) by using instruction STG, the controllers
will work in intermittent sampling mode, and sampling interval is T.
Single Sampling
In single sampling mode, once a fluctuation is detected at one port, UIM2842 controllers
will not detect the level fluctuation at this port until user configures the corresponding
control bit of S12CON (or S34CON) again.
If user sets the sampling interval to T (> 60000) by using instruction STG, the controllers
will work in single sampling mode.
8.4 Sensor Event, Action and Binding
UIM2842 support 8 sensor events as listed in section 8.0. There are 14 actions that can
be bound to those 8 sensor events. Binding means assigning a sensor action to a sensor
event. The binding between events and actions are realized through the configuration of
the Sensor Control Register S12CON. An action-code is needed when configuring sensor
registers.
•
Start and run forwardly at preset-speed and acceleration (code: 10)
•
Start and run reversely at preset-speed and acceleration (code: 2)
•
Change direction and run at preset-speed and acceleration (code: 14)
•
Forword displacement control follow the preset motion parameters (speed,
displacement, acceleration) (code: 13)
•
Reverse displacement control follow the preset motion parameters (speed,
displacement, acceleration) (code: 5)
•
Direction-change displacement control follow the preset motion parameters (speed,
displacement, acceleration) (code: 9)