5.4 Parameter setting interface “Logic function setting”

Prev Next

The Logic Function Setting interface, shown in Figure 5.4, allows the configuration of up to eight logic functions.

Figure 5.4 “Logic function setting” Interface

  • X logic function

Enable or disable a specific logic function, as shown in Figure 5.4.

Options:  

  • Disable

  • Enable

  • Function of channel

Set the logic function of the channel, as shown in 5.4.1.

Options:

  • AND

  • OR  

  • XOR

  • Gate forwarding

  • Threshold comparator    

  • Format convert          

  • Gate calculation        

AND/OR/XOR: These options share similar parameters and communication objects, with the only difference being the logic algorithm used. The following sections use one of these options as an example to illustrate the settings.

5.4.1 “AND/OR/XOR ”

Figure 5.4.1 “Logic - AND/OR/XOR” Interface

  • Input a/b/c/d/e/f/g/h

Configure whether logic input x is involved in the operation and whether it is used as-is or inverted.

Options:

  • Disconnected: Not used.

  • Normal: Input is used as-is.

  • Inverted:  Input is inverted before being used.

NOTE:

The initial value of the input is not inverted.

  • Default value

Set the initial value of the logic input x.

Options:

  • 0

  • 1

  • Result is inverted

Determine whether the result of the logic operation should be inverted.

Options:

  • No: Output the result as-is.

  • Yes: Invert the result before outputting.

  • Read input object value after bus recovery

Specify whether a read request should be sent to the logic input object after bus power recovery or programming.

Options:

  • No

  • Yes

  • Output send when

Set the condition for sending the logic result to the bus.

Options:

  • Receiving a new telegram: Send result whenever a new logical input is received.

  • Every change of output object: Send result only when it changes.

NOTE:

During the initial logic operation, the result will be sent even if it hasn't changed.

  • Send delay time

Set the delay before the logic result is sent to the bus. The delay is calculated as:

Delay time = Base × Factor (If the “Base” is set to "None", there is no delay.)

Base:

  • None

  • 0.1s

  • 1s

  • 2s

  • 5s

  • 10s

  • 25s

Factor: 1..255

5.4.2 “Gate forwarding ”

Figure 5.4.2 “Logic function_Gate forwarding” Interface

  • Object type of Input/Output

Set the data type of the input/output.

Options:

  • 1bit

  • 4bit

  • 1byte

  • Scene NO. of Gate after startup [1..64, 0=inactive]

Specify the initial scene forwarded by the logic gate after device startup. The scene must be configured in advance.

Options: 1.. 64, 0 = inactive.

TIP:

It is recommended to preselect the gate scene before operation; otherwise, the initial scene will be triggered by default.

  • z->Gate trigger scene NO.[1..64,0=inactive] (z:1~8)

Specify the scene number for logic gate forwarding. ach logic function can be configured with up to 8 trigger scenes.

Options: 1.. 64, 0 = inactive

NOTE:

If multiple “Gate Trigger Scene No.” entries within a single logic function are set to the same value, only the first matching entry will be used to determine the output.

  • Input A/B/C/D send on

Set the output target(s) for input x (x = A/B/C/D) after gate forwarding. Based on the configuration, an input can be forwarded to one or more outputs. The input and output values will remain the same.

Options:

  • Output A

  • Output B

  • ...

  • Output B,C,D

NOTE:

If multiple “Gate Trigger Scene No.” entries within a single logic function share the same value, the corresponding “Input x send on” should be assigned to different outputs.

5.4.3 “Threshold comparator”

Figure 5.4.3 “Logic function_Threshold comparator” Interface

  • Threshold value data byte

Set the data type used for the threshold value.

Options:

  • 4bit: 0..15

  • 1byte: 0..255

  • 2byte: 0..65535

  • 4byte: 0..4294967295

  • Threshold value 0..255

Set the threshold value whose range is determined by the data type.

  • 4bit: 0..15

  • 1byte: 0..255

  • 2byte: 0..65535

  • 4byte: 0..4294967295

  • If Object value<Threshold value

  • If Object value=Threshold value

  • If Object value!=Threshold value

  • If Object value>Threshold value

  • If Object value<=Threshold value

  • If Object value>=Threshold value

Set the logic result to be sent based on comparison with the threshold value.

Options:

  • Do not send telegram: Do nothing when the condition is met.

  • Send value “0”: Send telegram “0” when the condition is met.

  • Send value “1”: Send telegram “1” when the condition is met.

NOTE:

If there are conflicts among these conditions, the result will follow the last configured condition.  

For example, if the parameter “If Object value=Threshold value" is set to "Send value 0" and “If Object value <=Threshold value" is set to "Send value 1," then when the object value equals the threshold, the logic result will send the value “1”.

  • Output send when

Specify when the result should be sent to the bus.

Options:

  • Receiving a new telegram: Send result upon each new logical input.

  • Every change of output object: Send result only when it changes.

NOTE:

The result will be sent during the initial logic operation even if it does not change.

  • Send delay time

Set the delay before the logic result is sent to the bus. The delay is calculated as:

Delay time = Base × Factor (If the “Base” is set to "None", there is no delay.)

Base:

  • None

  • 0.1s

  • 1s

  • 2s

  • 5s

  • 10s

  • 25s

Factor: 1..255

5.4.4 “Format convert”

Figure 5.4.4 “Logic function_Format convert” Interface

  • Format convert type

Set the conversion type for the data format.

Options:

  • 2*DPT 1.002-->DPT 2.001

  • 8*DPT 1.002-->DPT 5.010

  • DPT 1.002-->DPT 5.010

  • DPT 5.010-->DPT 7.001

  • 2*DPT 5.010-->DPT 7.001

  • 2*DPT 7.001-->DPT 12.001

  • DPT 5.010-->8*DPT 1.002

  • DPT 7.001-->2*DPT 5.010

  • DPT 12.001-->2*DPT 7.001

  • DPT 232.600(RGB)-->3*DPT 5.001(%)

  • 3*DPT 5.001(%)-->DPT 232.600(RGB)

  • DPT 251.600(RGBW)-->4*DPT 5.001(%)

  • 4*DPT 5.001(%)-->DPT 251.600(RGBW)

  • Output send when

Set when to send the conversion result to the bus.

Options:

  • Receiving a new telegram: Send result upon each new logical input.

  • Every change of output object: Send result only when it changes.

NOTE:

The result will be sent during the initial logic operation even if it does not change.

5.4.5 “Gate calculation”

This function is mainly used to perform calculations based on input values and output the corresponding result. Different calculation methods are available depending on the selected Input type.

Figure 5.4.5.1 “Logic function_Gate calculation_1bit” Interface

Figure 5.4.5.2 “Logic function_Gate calculation_1byte” Interface

Figure 5.4.5.3 “Logic function_Gate calculation_1byte logic” Interface

Figure 5.4.5.4 “Logic function_Gate calculation_1byte threshold” Interface

  • Input type

Specify the data type of the input. The calculation method and output result vary based on the selected input type.

Options:

  • 1-bit

  • 2-bits

  • 1-byte

  • 2-bytes

  • 1-byte logic

  • 2-bytes logic

  • 1-byte threshold

  • 2-bytes threshold

TIP:

When selecting types in pairs (e.g., 1-bit/2-bits, 1-byte/2-bytes, 1-bit logic/2-bits logic, and 1-byte threshold/2-bytes threshold), the configuration parameters can be the same.

When the “Input type” is “1-bit” or “2-bits”, the output value is determined based on the configured input value. The following parameters are available:

- Input value

Set the input value. The available range depends on the data type specified by the Input type.

Options: 0..1/0..3

- Output type

Set the output data type.

Options:

  • 1-bit

  • 2-bits

  • 1-byte

  • 2-bytes

- Output value

Set the output value. The available range depends on the data type specified by the Output type.

Options: 0..1/0..3/0..255/0..65535

When the “Input type” is “1-byte” or “2-bytes”, the output value is determined based on the configured input value. The following parameters are available:

- Calculation type

Set the calculation type.

Options:

  • Disable: No calculation. The output is based on the input value (same as the 1-bit behavior).

  • Plus: When enabled, “Output type” and “Calculation value” can be set.

  • Minus: When enabled, “Output type” and “Calculation value” can be set.

  • Multiply: When enabled, “Output type” and “Calculation value” can be set.

  • Divide: When enabled, “Output type” and “Calculation value” can be set.

When “Calculation type” is “Disable”, the following parameters are available:

- Input value

Set the input value. The available range depends on the data type specified by the Input type.

Options: 0..255/0..65535

- Output type

Set the data type of the output.

Options:

  • 1-bit

  • 2-bits

  • 1-byte

  • 2-bytes

- Output value

Set the output value. The available range depends on the data type specified by the Output type.

Options: 0..1/0..3/0..255/0..65535

When “Calculation type” is “plus”, “minus”, “multiply” or “divide”, the following parameters are available:

- Output type

Set the data type of the output.

Options:

  • 1-byte

  • 2-bytes

- Calculation value

Set the calculation value. The available range depends on the data type specified by the Output type.

Options: 0..255/0..65535

TIP:

  • When “Calculation type” is set to “plus”, the “Calculation value” will be added.

  • When “Calculation type” is set to “minus”, this value will be subtracted.

  • When “Calculation type” is set to “multiply”, this value will be multiplied.

  • When “Calculation type” is set to “divide”, this value” will be used as the divisor.

- Output sending

Set the condition for sending the gate calculation result.

Options:

  • Send when input updated: Send the result to the bus each time the input is updated.

  • Send when output changed: Sends the result only when the output value changes.

When the “Input type” is “1-byte logic” or “2-byte logic”, the output is determined based on whether the input value is 0 and then outputs “True” or “False” accordingly. The following parameter is available:

- Output behavior

Define the outputs “True” and “False”.

Options:

  • 0:false,1:true: If input value is “0”, the output is “0:false”. If input value is “1”, the output is “1:true”.

  • 1:false,0:true: If input value is “0”, the output is “1:false”. If input value is “1”, the output is “0:true”.

When the “Input type” is “1-byte threshold” or “2-byte threshold”, the output is determined based on whether the input value falls within a defined range and then outputs “True” or “False” accordingly. The following parameter is available:

- Low threshold

Set the minimum threshold value. The available range depends on the data type specified by the input type.

Options: 0..255/0..65535

- High threshold

Set the maximum threshold value. The available range depends on the data type specified by the input type.

Options: 0..255/0..65535

- Output behavior

Define the outputs “True” and “False”.

Options:

  • 0:false,1:true: When input value is beyond the threshold range, the output is “0:false”. When input value falls within the threshold range, the output is “1:true”.

  • 1:false,0:true: When input value is beyond the threshold range, the output is “1:false”. When input value falls within the threshold range, the output is “0:true”.

  • Send delay time

Set the delay before the logic result is sent to the bus. The delay is calculated as:

Delay time = Base × Factor (If the “Base” is set to "None", there is no delay.)

Base:

  • None

  • 0.1s

  • 1s

  • 2s

  • 5s

  • 10s

  • 25s

Factor: 1..255