![background image](http://html.mh-extra.com/html/omron/nt20s/nt20s_operation-manual_744540181.webp)
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.
Summary of Contents for NT20S
Page 1: ...Cat No V020 E1 04 NT20S Programmable Terminal OPERATION MANUAL ...
Page 2: ...i ...
Page 3: ...ii ...
Page 4: ...iii NT series Programmable Terminal Operation Manual Revised August 1997 ...
Page 5: ...iv ...
Page 7: ...vi ...
Page 11: ...x ...
Page 19: ...xviii ...
Page 129: ...110 ...
Page 169: ...150 ...
Page 253: ...234 ...