Virtual PLC and Python Communication

Join Date
Nov 2012
Location
Pretoria
Posts
11
Good day dear Experts!

Is there a way to simulate a communication between a S7-1200 PLC and python script? I know this is possible physically using an Ethernet cable (using the Ethernet port on the PLC) but what I am trying to achieve now is to use the S7-1200 simulator with python script running on the same PC be able to communicate with the PLC using the T_Con, T_Send, T_Rec functions from Siemens.

Can anyone assist on how to go about this?

Your assistance will be highly appreciated.🤞🏻

Sonia
 
The extended simulator PLCsim advanced comes with an api for third party applications but it also supports simulation of T_Con, T_Send, T_Rec directly without a third party application.
 
Well i haven't tried with the 1200 but i used a generic 300, using siemens PLCSIM and NettoPLC software.

I used it to try my hmi application with the original program running on the PLCSIM, i used snap7 library to communicate with it. First started learning about it with python and moved to c# to implement my hmi.
 
As far as I know, you can't do it for a 1200.

With the S7300/400 some communication can be done, as qamrij said.

PLCSIM Advanced supports communication, but as far as I know it only supports the 1500, not the 1200. The code would likely be similar/the same in a 1500, but the hardware & IO would be different.
 

Similar Topics

Hi everyone, I am a starter with PLC programming and HMI. Allen bradley to be specific. I have RSLogix Micro, Studio 5000 and Factorytalk View...
Replies
39
Views
22,773
Hello, I am setting up a virtual machine with PLC monitoring software. For serial/USB connections to the PLC's, there is no issue connecting a...
Replies
2
Views
1,670
we are trying to go online, with RSLogix5000 v17, to access a Rockwell plc ControlLogix. All the softwares are running on a Virtual Machine...
Replies
7
Views
5,535
Has anyone been able to connect their PLC to their software on Virtual Machine? For some reason on my regular host machine the PLC connection...
Replies
9
Views
4,590
Hi guys, sorry for my english, i am new at plctalk, great forum, great threads. So i want to learn plc as qualification for job applications. I...
Replies
15
Views
9,527
Back
Top Bottom