PDA

View Full Version : schedule plus automatic startup


joshl
27 Jul 08, 12:58 PM
hi guys
this is my first post! but heres my problem, hope you guys can help

Having a bit of trouble with exiting run mode via a button with a special function "operation mode exit" because schedule plus isn't running the background. On windows startup I can get schedule plus runtime.exe to startup with the project which is what I want, but when someone needs to edit the project there is a "exit run mode" button which needs to go back to schedule plus to make the changes.

Is there a way to start up schedule plus with the project first and once schedule plus is open being able to automatically put it into "run mode/simulation" without having to click the button itself?

if i put schedule plus and the runtime exe in start up schedule plus will open with the project but the runtime will only open after schedule plus is closed, but i figured that after schedule plus is opened its not windows problem anymore as I need schedule plus to automatically go into run mode.

thanks guys
josh

chris
28 Jul 08, 04:04 AM
See

http://www.cbusforums.com/forums/showthread.php?t=1968

Hope this helps

joshl
28 Jul 08, 07:41 AM
thanks chris
yep I have done this already, thats the first step, once the project has opened automatically it needs to go into runmode/simulation mode. What I gathered is it needs to be in the logic to start it up automatically and I found the code but Im guessing the special function isn't supported in the logic at the moment?

once GetBoolSystemIO("nameofIO") = ON then
ExecuteSpecialFunction("Operation Mode Enter", 0);

Ive tried executing the runtime.exe in logic in the initialization part of the logic but this just runs the run time, doesn't open the current schedule plus project into simulation mode.

Darren
28 Jul 08, 12:43 PM
The help file topic "Command-Line Parameters" gives details of how to get the software to automatically start in Operation Mode.

joshl
28 Jul 08, 06:33 PM
thanks darren, I reckon I didnt read that full page, but thanks again :D