Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: mhw on February 12, 2018, 09:03:10 AM

Title: Mode Switch
Post by: mhw on February 12, 2018, 09:03:10 AM
Is there a memory location that will show the position of the mode switch? I would like to show the position of the switch on the HMI. 
Title: Re: Mode Switch
Post by: Controls Guy on February 12, 2018, 11:13:07 AM
Just checked and ST1 stays at 1 in Program

This isn't exactly what you asked for (Mode Switch indication), but you can SET some bit in $FirstScan and RST it in $LastScan.  That works fine, but is really Run/Prog mode indication rather than tell you what position the switch is in.

ST16 tells you whether in Run or Prog mode if the switch is in Term.  That, plus the other idea, would get you Run and Term/Run, but can't distinguish between Term/Stop and Switch Stop.
Title: Re: Mode Switch
Post by: mhw on February 12, 2018, 03:13:21 PM
DST10 will give the run mode indication. I just wanted to display the switch position also.
Title: Re: Mode Switch
Post by: BobO on February 12, 2018, 03:18:11 PM
It can be read, but I don't think it is in DST memory at this point.