162
Overview of Direct Connection Operations
Section 5-1
Example of Reading the Number of Currently Display Screen
This example gives a PC program that reads the screen number each time the
screen is switched. In this example, the number of the previous screen is also
stored.
S Support tool settings
Make the following settings with the support tool:
PT status notify area: Word 0110
S PC ladder program
@MOV(21)
DM0100
DM0101
11212
@MOV(21)
110
DM0100
(1)
Word for storing the number of the
previous screen
(2)
Word for notifying the number of the
currently displayed screen
Word for storing a new screen number
Screen switch
strobe flag
S Program operation
(1) When the NT20S screen display switches and the screen switch strobe flag
(bit 11212) turns ON, the contents of DM0100 are transferred to DM0101.
The number of the previously displayed screen is stored in word 0101.
(2) The new screen number notified by the NT20S is read and transferred to
DM0100. The number of the currently displayed screen is stored in DM0100.