Lamps
Section 4-6
4-6 Lamps
The NT20 has the “lamp” function used to simply display the PLC bit status.
This section describes the lamps which can be displayed.
The lamp display status (lit (flashing) or unlit) can be changed by instructions from the PLC/host.
For details on how to change the status of a currently displayed lamp, refer to
5-3-2 Turning ON (Lit) and OFF (Unlit) the Lamps (Changing the Contents of
Allocated Bits) on page 192, Lamp and Touch Switch Display (Bit Specifica-
tion) on page 223, and Lamp and Touch Switch Display (Number Specifica-
tion) on page 223.
4-6-1 Lamp Functions
The lamps are the graphic areas whose method of display can be changed by using the PLC. Available display methods are “lit”, “unlit”, and “flash“. Up to
128 lamps can be registered in one screen.
The display status (lit, unlit, and flashing) which are registered when creating the screen data can be switched according to the ON/OFF of the PLC bit status.
Lamp Attributes
PLC
Unlit Lit
The following attributes can be set with the lamp. Use the Support Tool to set the lamp attributes.
• Shape
Select from the square and circle shapes. The display size can be freely selected.
Square Circle
• Frame
Select whether or not the boundary line (frame) of the lamp display area is displayed. If the frame is not set, only the guide display message for the lamp is displayed when the lamp is not lit (or flashing). If the guide display message is not set, nothing is displayed.
• Lit and Flashing
Select whether the lamp is lit (reverse display) or flashing (reverse flashing) when the lamp is turned ON by the PLC.
• Guide Display Message
Lamps can be displayed with the guide display messages.
The guide display message attributes are the same as that for the “charac-
ter display”. Refer to Characters and Figures Which Can Be Displayed on page 144.
• Frame and Lit/Flashing
The display method of “lit/flashing” varies according to the frame setting.
150
Lamps
Section 4-6
Frame is set: Only the area in the frame will be lit/flashing.
Frame is not set: The area including the frame will be lit/flashing.
[Frame is set]
Unlit
Flash
[Frame is not set]
Unlit
Flash
Lit Lit
Area inside the frame flashes.
Area including the frame flashes.
• Controlling the Lamps in Batch
More than one lamp can be lit or flashing in batch by registering those lamps to the same bit.
Example of Batch Lighting
Set the lamps L1 to L5 to the same bit number.
L1
L2
L3 L4 L5
L1 L2 L3
L4
L5
When a Lamp Is Overlapped with a Memory Table Display
The guide display message for a lamp is a fixed character-string. If you want to change the lamp guide display according to some condition, overlap the display area of a numeral memory table entry or character-string memory table entry with the lamp. However, note that different results will be achieved depending on the timing of the lighting of the lamp and the updating of the memory table entry. Bear this in mind when creating the control program.
Example 1 Lighting a Lamp after Changing a Memory Table Entry
Lamp not lit Lamp not lit Lamp lit
Lamp
OMRON
Memory table entry changed.
String memory table display area
PT
Lamp lit.
Example 2 Changing a Memory Table Enter while the Lamp Is Lit
Lamp not lit Lamp lit Lamp lit
PT
Text is displayed in reverse video.
Lamp
OMRON
Lamp lit.
String memory table display area
OMRON
Text is displayed in reverse video.
Memory table entry changed.
PT
The memory table display area is overwritten while the lamp is lit.
151