User Tools

Site Tools

한국어

comfilehmi:lamp:index

This is an old revision of the document!


Lamp

Displays the status of a boolean value as an indicator lamp. The value can be a ComfileHMI variable, or can be read from a connected external device 1).

Bit Address

  • Reversed Display - If this checkbox is check the lamp will be ON if the value read from the external device is 0 and OFF if the value read is 1, opposite from the default behavior.

Word Address : Compare

Lamp will turn on if the condition is satisfied.

Word Address : Bit Mask

Lamp will turn on if the bit index is 1.

bit index

In the bit index, MSB is a large value and LSB is 0. For example 16 bit valus's bit index is

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MSB LSB

Expressions

The lamp's state can be determined dynamically though an expression. If the expression evaluates to 0, the lamp is off. If the expression evaluates to anything non-zero, the lamp is on.

The following video illustrates a lamp being turned on or off by modifying a single variable.

Back to ComfileHMI

Blinking

To have the lamp blink, select the “Blink when ON” checkbox.

1)
a PLC or MCU connected to the ComfileHMI
comfilehmi/lamp/index.1680842069.txt.gz · Last modified: 2023/04/07 13:34 by COMFILE Technology