
Chapter 12 Device Logic (Pawn)
native DigOut_Init(digout, mode, cfg1 = -1, cfg2 = -1);
Initialises the isolated switch contact (NO, CC). The mode is selected via the "mode" parameter. The
meaning of the "cfg1" and "cfg2" parameters is dependent on the selected mode. Detailed information
on the isolated switch contact is provided in chapter "Isolated switch contact (NO, CC)" on page 61.
Note:
Using "DIGOUT_FREQ" (Frequency output) and "DIGOUT_PWM" (PWM output)
modes drastically increases the energy consumption.
Parameter
Explanation
digout
Number of the digital output (isolated switch contact); is always 0 for the
myDatalogEASY IoTmini
mode
Selection of the mode for the isolated switch contact (NO, CC)
DIGOUT_OFF :
Isolated switch contact deactivated
DIGOUT_DIG :
Digital output
DIGOUT_FREQ :
Frequency output
DIGOUT_PWM :
PWM output
DIGOUT_IMPULSE_PER_
MINUTE:
Pulse/min.
DIGOUT_IMPULSE_ONCE:
Single output of x pulses
cfg1
DIGOUT_OFF :
Not used
DIGOUT_DIG :
Not used
DIGOUT_FREQ :
Pulse duty factor: 1...100% (default: 50%)
DIGOUT_PWM :
Frequency: 0...1000Hz (default: 100Hz)
DIGOUT_IMPULSE_PER_
MINUTE:
Pulse duration: Dependent on the sample
rate of the universal inputs
1)
(default:
100ms)
DIGOUT_IMPULSE_ONCE:
Pulse duration: 1...500ms (default: 100ms)
cfg2
DIGOUT_OFF :
Not used
DIGOUT_DIG :
Not used
DIGOUT_FREQ :
Not used
DIGOUT_PWM :
Not used
DIGOUT_IMPULSE_PER_
MINUTE:
Not used
DIGOUT_IMPULSE_ONCE:
Pulse pause: 1...500ms (default: 100ms)
1)
Only a multiple of the sample rate for the universal inputs selected via the "UI_SetSampleRate()"function can be
set for the pulse duration in "Pulse/min." mode. The actual pulse duration is calculated as follows:
Pulse duration = (cfg1/sample rate
UI
+ 1) x sample rate
UI
Rev. 01
151
Содержание myDatalogEASY IoTmini
Страница 2: ......
Страница 11: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 01 11 ...
Страница 12: ......
Страница 34: ......
Страница 66: ......
Страница 78: ......
Страница 82: ......
Страница 186: ......
Страница 194: ......
Страница 196: ......
Страница 202: ......
Страница 205: ...Chapter 19 Document history Chapter 19 Document history Rev Date Changes 01 28 08 2020 First version Rev 01 205 ...
Страница 206: ......
Страница 208: ......