It's your place to connect with experts and peers, get continuous support, and share knowledge.
Contact SchneiderCommunity.Support@se.com if you have any questions.
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
You can subscribe to this forum after you log in or create your free account..
Posted: 2021-10-21 03:14 AM
I have a virtual machine with PLC simulator. I have 2 questions regarding that:
1. Is it possible to start the simulator on power up with the project already running in it?
2. Is there a way to write a script that will download a project to the simulator from remote without using the engineering software (for example, it is possible to do it with UlUmas.exe but it only works for physical PLCs)?
Posted: 2021-10-22 01:38 PM
You should probably consult this document
It is possible to launch the simulator from the command line, as shown on page 16.
To start an instance of PLC Simulator with a specific port number, you can execute in the console Command Prompt start sim /PORT<port number> from the PLC simulator installation folder.
For example start sim /PORT 503 for the port 503.
The default destination directory of the PLC simulator at Control Expert software installation is
C:\Program Files (x86)\Schneider Electric\Control Expert\••.•\PLC_Simulator\
The **.* is the version number of Control Expert.
It would also be possible to automatically load the program into the simulator if you have a system to do this to a normal PLC
It is standard procedure for the simulator to be installed on the same PC as Control Expert (Local Host). When the menu command PLC → Connect is selected, a connection to the Local Host PC on the default port 502 (Schneider Port) is automatically created. The project can also be loaded on a simulator in another PC via a TCP/IP connection or on a simulator running on a different port.
In this case you must specify the TCP/IP address and port number of the target PC in the Loading a project procedure before carrying out step 3 (creating a connection).
Then select the Control Expert menu command PLC → Set Address, and in the Simulator text box Address enter the TCP/IP address and the optional port number of the target PC (i.e.: 220.127.116.11:123 where 123 is the port number). Then continue with step 3.
If you want to load the project in the Local Host PC simulator running on default port 502 (Control Expert and simulator on the same PC), you do not have to carry out this step as the Local Host PC address and port number is automatically entered.
I haven't ever had to automatically load a project to a PLC, I've always done it manually using Control Expert itself... so you'd need to find a way to do this step yourself.
You could try to call the command line application with /? argument to see if it will provide command line usage information. Perhaps there are other options than just the PORT option.
Posted: 2021-10-25 09:23 PM
Posted: 2021-10-26 12:47 AM
I configured it to start with the application but it starts in STOP mode. How can I switch it to "RUN" ?
Posted: 2021-10-26 12:52 AM
In the CPU properties (configuration tab), have you enabled 'Automatic start in Run'?
Posted: 2021-10-27 10:03 PM
Posted: 2021-11-17 08:48 AM
I didn't find a way to start the simulator in run mode, the simplest way is to open the simulator face plate and click on the power cycle button. the automatic start in run must be checked of course.