Sign in to follow this  
Followers 0
BITS N BYTES

Ns-10 Operator Interface

4 posts in this topic

Cannot find a system bit $SB or system word $SW in the System Memory area of the NS-10 to indicates that the display area of the touchscreen has been touched. Any ideas would be most welcome!!

Share this post


Link to post
Share on other sites
If you are using a screensaver then you could monitor $SB11 (Backlight Status) to detect that someone has taken the display out of screensaver mode. Other than that I don't know of any system bit to detect that the display area has been touched while not in screensaver mode.

Share this post


Link to post
Share on other sites
Tell us a little about why this necessary. Perhaps there is another solution.

Share this post


Link to post
Share on other sites
All screen Data entry is all password protected. If there has been no screen activity after 10 minutes I need to disable data entry requiring the password to be re-entered. Got this working using three Project Macros as follows:- Valid password entry turns on screen memory bit $B0. Macro 1] "When a bit changed 1" that "Executes when ON" for $B0 [My password valid flag]. Macro 2] "When a bit changed 2" that "Executes when ON" for $SB5 [system Keypad Entry flag]. Macro 3] "When a value changed 1" for $SW14 [system Minutes and Seconds]. Macro 1 and 2 are identical:- 'At successful password entry $B0 OR Keypad activity $SB5 this macro runs once. 'Add 10 minutes to the current Minute/Second time and store value. 'When the current Minute/Second time reaches this value data entry is locked. 'See project macro "When a value changed 1" for details . 'HMI Minutes and seconds in $SW14 are in BCD $W14=BIN($SW14)+1000; 'Convert Minutes/Seconds from BCD to numeral, add 10 minutes and 00 seconds IF ($W14>=6000) 'If greater than 60 minutes and 00 seconds $W14=$W14-6000; 'Subtract 60 minutes and 00 seconds ENDIF $W14=BCD($W14); 'Convert from numeral back to BCD MACRO 3 'This macro locks data entry when the current Minutes/Seconds equals $W14 '$W14 is written to by project macros "When a bit changed 1" and "When a bit changed 2" IF ($W14==$SW14) 'Current time equals data entry lockout time. $B0=0; 'Lock data entry ENDIF WORKS GREAT, BUT IS THERE AN EASIER WAY! Edited by BITS N BYTES

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0