This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comfilehmi:lamp:index [2023/04/07 13:19] COMFILE Technology |
comfilehmi:lamp:index [2023/05/08 04:13] (current) COMFILE Technology [bit index] |
||
---|---|---|---|
Line 11: | Line 11: | ||
* //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. | * //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 ===== | + | ===== Word Address : Compare ===== |
- | if the value read is //0// then off, //not 0// then on | + | 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 ===== | ===== Expressions ===== | ||
Line 21: | Line 37: | ||
{{ :comfilehmi:lamp:lampsusik.png?nolink |}} | {{ :comfilehmi:lamp:lampsusik.png?nolink |}} | ||
- | The following video illustrates a lamp being turned on or off by modifying a single variable. | ||
- | |||
- | {{ :comfilehmi:lamp:lamponoff.mp4?850x453 |}} | ||
- | |||
- | [[comfilehmi:index#widgets| Back to ComfileHMI]] | ||
===== Blinking ===== | ===== Blinking ===== | ||
Line 32: | Line 43: | ||
{{ :comfilehmi:lamp:blink.png }} | {{ :comfilehmi:lamp:blink.png }} | ||
+ | |||
+ | ===== Demo Video ===== | ||
+ | |||
+ | {{ :comfilehmi:lamp:buttonlampvideo4.mp4?1000x600 |}} | ||
+ | |||
+ | [[comfilehmi:index#widgets| Back to ComfileHMI]] |