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
digout
mode
cfg1
cfg2
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
Rev. 01
Number of the digital output (isolated switch contact); is always 0 for the
myDatalogEASY IoTmini
Selection of the mode for the isolated switch contact (NO, CC)
DIGOUT_OFF :
DIGOUT_DIG :
DIGOUT_FREQ :
DIGOUT_PWM :
DIGOUT_IMPULSE_PER_
MINUTE:
DIGOUT_IMPULSE_ONCE:
DIGOUT_OFF :
DIGOUT_DIG :
DIGOUT_FREQ :
DIGOUT_PWM :
DIGOUT_IMPULSE_PER_
MINUTE:
DIGOUT_IMPULSE_ONCE:
DIGOUT_OFF :
DIGOUT_DIG :
DIGOUT_FREQ :
DIGOUT_PWM :
DIGOUT_IMPULSE_PER_
MINUTE:
DIGOUT_IMPULSE_ONCE:
+ 1) x sample rate
UI
Chapter 12 Device Logic (Pawn)
Explanation
Isolated switch contact deactivated
Digital output
Frequency output
PWM output
Pulse/min.
Single output of x pulses
Not used
Not used
Pulse duty factor: 1...100% (default: 50%)
Frequency: 0...1000Hz (default: 100Hz)
Pulse duration: Dependent on the sample
rate of the universal inputs
100ms)
Pulse duration: 1...500ms (default: 100ms)
Not used
Not used
Not used
Not used
Not used
Pulse pause: 1...500ms (default: 100ms)
UI
1)
(default:
151
Need help?
Do you have a question about the myDatalogEASY IoTmini and is the answer not in the manual?