====== 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)). {{ :comfilehmi:lamp:hmi_lamp.png?nolink |}} ===== Bit Address ===== {{ :comfilehmi:lamp:hmi_lamp2.png?nolink |}} * //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. {{ :comfilehmi:lamp:hmi_lamp3.png?nolink |}} {{ :comfilehmi:lamp:hmi_lamp3_1.png?nolink |}} ===== Word Address : Bit Mask ===== Lamp will turn on if the bit index is 1. {{ :comfilehmi:lamp:hmi_lamp4.png?nolink |}} ==== 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. {{ :comfilehmi:lamp:lampsusik.png?nolink |}} ===== Blinking ===== To have the lamp blink, select the "Blink when ON" checkbox. {{ :comfilehmi:lamp:blink.png }} ===== Demo Video ===== {{ :comfilehmi:lamp:buttonlampvideo4.mp4?1000x600 |}} [[comfilehmi:index#widgets| Back to ComfileHMI]]