comfilehmi:lamp:index
Table of Contents
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.
Blinking
Demo Video
1)
a PLC or MCU connected to the ComfileHMI
comfilehmi/lamp/index.txt · Last modified: by 127.0.0.1

