Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
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)?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-10-22 01:38 PM
You should probably consult this document
https://www.se.com/au/en/download/document/EIO0000001714/
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.: 139.158.106.127: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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-10-25 09:23 PM
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-10-26 12:47 AM
Thanks.
I configured it to start with the application but it starts in STOP mode. How can I switch it to "RUN" ?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-10-26 12:52 AM
In the CPU properties (configuration tab), have you enabled 'Automatic start in Run'?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-10-26 12:58 AM
I don't see it. Is it in the simulator or in the control expert project?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.