Support Center - Help topic

Home > Support Center > Search > Help Topic
Contact Us
Can't find what you're looking for in our Tech Support Library? Send us a message.
Contact Us
How to use the Word Lamp in EBPro
Tags: PLC Objects Software

The Word Lamp Object is used as an indicator to represent the value in a PLC register, or the value in a register in the HMI local memory (LW). Creates a graphics object to reflect the current state of a multi-state PLC data register. It can display a different shape or picture depending on the value in the register. If the value is 0, the first shape is displayed, if the value is 1, the second shape is displayed, etc. A Word Lamp can display up to 256 different shapes and text strings, corresponding to register values of 0 – 255.

There are four modes of operation available for the Word Lamp.

Value: The state of the Word Lamp is displayed according to the value in the Read address. The Offset field will cause the Word Lamp to display the state according to the value in the Read address + the Offset. For example, if the Read address contains a value of 3 and the Offset is set to 4, the Word Lamp will display state 7 (4 + 3 = 7).

LSB: Displays the state represented by the least significant bit in the binary word.

Decimal

Binary

Displayed state

0

0000

State 0 is displayed. All the bits are 0.

1

0001

State 1 is displayed. The least significant active bit is 1.

2

0010

State 2 is displayed. The least significant active bit is 2.

3

0011

State 1 is displayed. The least significant active bit is 1.

4

0100

State 3 is displayed. The least significant active bit is 3.

5

0101

State 1 is displayed. The least significant active bit is 1.

Decimal

Binary

Displayed state

6

0110

State 2 is displayed. The least significant active bit is 2.

7

0111

State 1 is displayed. The least significant active bit is 1.

8

1000

State 4 is displayed. The least significant active bit is 4.


Note: The LSB mode does not work with 32-bit Float data format.

Bit combination: The state of the Word Lamp is displayed according to discrete bits rather than the value in a PLC or HMI register. One to four bits are used, depending on the number of states selected (1-16). The selected bits can be non-consecutive.

Bit 1 = least significant bit (LSB)

Bit 2 = next significant bit

Bit 3 = next significant bit

Bit 4 = most significant bit (MSB)

The binary value represented by the bits selected determines the state of the Word Lamp.

Bit 4

Bit 3

Bit 2

Bit 1

State

0

0

0

0

0

0

0

0

1

1

0

0

1

0

2

0

0

1

1

3

0

1

0

0

4

0

1

0

1

5

0

1

1

0

6

0

1

1

1

7

1

0

0

0

8

…and so forth.

Change state by time: The state of the Word Lamp increments automatically at the interval specified by the Time interval. After the last state (up to 96 states), the Word Lamp returns to state 0 and repeats.


Content Created by David Franzwa