Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Hannebaum on July 13, 2016, 10:08:18 PM

Title: Do-Simulator RUN/TERM/STOP Switch
Post by: Hannebaum on July 13, 2016, 10:08:18 PM
Would it be possible to be able to have the Simulator always launch with the Switch in TERM with the CPU stopped?

This would be helpful when wanting to load different project, but launches will wrong project. I'm using the simulator to test local PC application(HMIs)via. Modbus TCP/IP. Always have to remember stop cpu before exiting simulator.

Right now it launches with the switch in the last state it was in when Simulator was exited.
Title: Re: Do-Simulator RUN/TERM/STOP Switch
Post by: BobO on July 14, 2016, 02:34:35 PM
It is already possible to set the mode switch from the command line, but that won't override the previous mode for TERM. I've added a new command line switch (/m[PR]) that will force the keyswitch to TERM and force the initial mode to program or run as selected.
Title: Re: Do-Simulator RUN/TERM/STOP Switch
Post by: Hannebaum on July 15, 2016, 01:24:21 AM
Can you give me an example of the existing /k<POS> switch?
Not getting results in change of mode of simulator on startup.

Not experienced switch user. Did get /? to work by showing message window with the switch definitions P T and R, but i'm not using correctly I guess.

Tried various versions of in my shortcut:
C:\Do-more\Designer1_4\Bin\DmSim.exe /k<p>
tried /kp and /k p

Sure would be nice to have a check option in the menu of the simulator like disable inputs option.
Title: Re: Do-Simulator RUN/TERM/STOP Switch
Post by: BobO on July 15, 2016, 10:02:53 AM
Can you give me an example of the existing /k<POS> switch?
Not getting results in change of mode of simulator on startup.

Not experienced switch user. Did get /? to work by showing message window with the switch definitions P T and R, but i'm not using correctly I guess.

Tried various versions of in my shortcut:
C:\Do-more\Designer1_4\Bin\DmSim.exe /k<p>
tried /kp and /k p

Sure would be nice to have a check option in the menu of the simulator like disable inputs option.


/kP is working for me, although /kp should work as well.

I can create command line switches very quickly. Menus or option dialogs (which is what this really needs) with file persistence require more time than I have right now.
Title: Re: Do-Simulator RUN/TERM/STOP Switch
Post by: Hannebaum on July 15, 2016, 10:39:28 PM
Works tonight. Don''t know why it wasn't working last night.
Thank you.