![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.
Содержание NT20S
Страница 1: ...Cat No V020 E1 04 NT20S Programmable Terminal OPERATION MANUAL ...
Страница 2: ...i ...
Страница 3: ...ii ...
Страница 4: ...iii NT series Programmable Terminal Operation Manual Revised August 1997 ...
Страница 5: ...iv ...
Страница 7: ...vi ...
Страница 11: ...x ...
Страница 19: ...xviii ...
Страница 129: ...110 ...
Страница 169: ...150 ...
Страница 253: ...234 ...