
Chapter 12 Device Logic (Pawn)
native DigOut_SetValue(digout, value);
Specifies the setpoint for the isolated switch contact (NO, CC). The meaning of the "value" parameter is
dependent on the mode of the isolated switch contact selected via the "DigOut_Init" function. Detailed
information on the isolated switch contact is provided in chapter "Isolated switch contact (NO, CC)" on
page 61.
Parameter
Explanation
digout
Number of the digital output (isolated switch contact); is always 0 for the
myDatalogEASY IoTmini
value
DIGOUT_OFF :
---
DIGOUT_DIG :
=0: "low" (contact open)
> 1: "high" (contact closed)
DIGOUT_FREQ :
Frequency 1...1000Hz
DIGOUT_PWM :
PWM 0...100%
DIGOUT_IMPULSE_PER_
MINUTE:
Number of pulses that should be issued per
minute
DIGOUT_IMPULSE_ONCE:
Number of pulses that should be issued
Explanation
Return value
l
OK, if successful
l
< OK, if an error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84)
Note:
Additional explanation on "Pulse/min." mode (DIGOUT_IMPULSE_PER_MINUTE):
Note that the maximum number of pulses that can be issued per minute is dependent on the pulse
duration specified via the "DigOut_Init" function:
Pulse duration = (cfg1/sample rate
UI
+ 1) x sample rate
UI
Number of pulses
max
= 60,000 ms / (pulse du sample rate
UI
)
Note:
Additional explanation on "Pulse" mode (DIGOUT_IMPULSE_ONCE):
The time required to issue the specified number of pulses is dependent on the pulse duration and pulse
pause specified via the "DigOut_Init" function:
t = number of pulses x (pulse du pulse pause)
Rev. 01
153