What can we improve?

Documentation

(Edit)

LCN_DeductThresholdCurrent

boolean LCN_DeductThresholdCurrent (integer $InstanceID, integer $Register, integer $Threshold, float $Value)

Parameters

InstanceID ID of the device to be switched
Register Register of the threshold value to be switched (1x5: 0, 4x4: 1..4)
Threshold Threshold to be set (1x5: 1..5, 4x4: 1..4)
Value Threshold value (0..1000)

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Deducts the value Value of the threshold Threshold in the register Register relative to the current value of the LCN module with the ID InstanceID.

Example

// 1x5 threshold
// Deducts the value 2.5 from the threshold 2 of the instance with ID 12345
LCN_DeductThresholdCurrent(12345, 0, 2, 2.5);
 
// 4x4 threshold
// Deducts the value 2.5 from the threshold 2 in register 3 of the instance with ID 12345
LCN_DeductThresholdCurrent(12345, 3, 2, 2.5);
Deutsche Webseite verfügbar
Go to cart
Any questions?