This shows you the differences between two versions of the page.
| Previous revision | |||
| — | comfilehmi:lamp:index [2026/02/26 23:09] (current) – [Lamp] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 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 ((a PLC or MCU connected to the ComfileHMI)). | ||
| + | |||
| + | {{ : | ||
| + | ===== 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' | ||
| + | |||
| + | | 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. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | ===== Blinking ===== | ||
| + | |||
| + | To have the lamp blink, select the "Blink when ON" checkbox. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ===== Demo Video ===== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | [[comfilehmi: | ||