News:

  • October 14, 2025, 05:26:06 AM

Login with username, password and session length

Author Topic: Do-Simulator RUN/TERM/STOP Switch  (Read 3072 times)

Hannebaum

  • Newbie
  • *
  • Posts: 8
Do-Simulator RUN/TERM/STOP Switch
« 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.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Do-Simulator RUN/TERM/STOP Switch
« Reply #1 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Hannebaum

  • Newbie
  • *
  • Posts: 8
Re: Do-Simulator RUN/TERM/STOP Switch
« Reply #2 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.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Do-Simulator RUN/TERM/STOP Switch
« Reply #3 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Hannebaum

  • Newbie
  • *
  • Posts: 8
Re: Do-Simulator RUN/TERM/STOP Switch
« Reply #4 on: July 15, 2016, 10:39:28 PM »
Works tonight. Don''t know why it wasn't working last night.
Thank you.