Section 3 Using PTs 3-3 Screen Display and Notification
3-9
NS Series Programming Manual
3-3-2 Finding Current Screen Numbers
NS-series PTs have a function to notify the host that screens have been switched by the PT and to no-
tify the host of the new screen number.
The host is informed the timing of the screen switch and the new screen number using the following
method.
Reading System Memory
Screen switch notification is provided in the following system memory areas.
Screen switch timing Screen switch strobe at system memory bit $SB2. Turns ON when
screens are switched and turns OFF automatically when the host is noti-
fied.
Current screen number Current screen number at system memory word $SW0.
Current pop-up screen number Current pop-up screen 1 number, Current pop-up screen 2 number, and
Current pop-up screen 3 number at system memory words $SW1, $SW4,
and $SW7. Store the screen numbers for pop-up screens 1, 2, and 3.
1. Screen switch timing
Check the rising edge of $SB2 in the host program.
When bit $SB2 turns ON, it means that a screen has been switched by PT operation.
2. Current screen number
The host program reads the Current Screen Number from $SW0 and the Current pop-up screen 1
number, Current pop-up screen 2 number, and Current pop-up screen 3 number from $SW1,
$SW4, and $SW7.