Menu

GET/PUT Functionality

Help
2021-04-16
2021-05-21
  • Sanel Kahrimanovic

    Is there any way to get NettoPLCSIM to allow GET/PUT functions to work over the network.

    Currrently if I want 2 PLC's to communicate via GET/PUT they have to be on the same machine/VM that PLCSIM is running on.

     
    • Thomas Wiens

      Thomas Wiens - 2021-04-17

      Plcsim with Nettoplcsim is similar to a CP343-1 Lean, it acts only as server for S7 communication. Means, you can connect to it and access data with Put/Get, but you can't connect from Plcsim/Nettoplcsim to a real PLC outside with Put/Get.

      In Plcsim for S7-300/400, you can connect Plcsim instances using Put/Get blocks (without Nettoplcsim). But for a S7-300 you must use the SFB14/15 for the communication when running in Plcsim.

       
  • Timo

    Timo - 2021-05-21

    Hi Thomas,

    at first I want to thank you for the tool.

    I have a question: I am using TIA-Portal V16 on a VM (VM1). I installed PLCSim V16 on another VM and also NetToPLCSIM (VM2).

    • I started PLCSIM on VM2 and chose S7-1200 and powered it on.

    • Then I started NetToPLCSIM on VM2 and added a server with the IP Adress of the VM2-Network-Adapter.

    • The PLCSimAddress was detected to be 192.168.0.1 (The IP Adress of the VM2-Network-Adapter is in another subnet btw).

    • Back on the TIA VM1 I created a Project with a S7-1200 CPU and entered the IP of the VM2-Network-Adapter.

    When trying to connect or download my Software from VM1 to VM2 TIA says the Machine with the found address not to be compatible. The Scanner of TIA detects the VM2 as "CPUcommon" with "CPU-1200 Simulation".

    Am I missing something here?

    Greetings,
    Timo

     
    • Thomas Wiens

      Thomas Wiens - 2021-05-21

      I've never tested it in this constellation with TIA portal, with classic Step7 it's not a problem. But as TIA portal is always picky about the data the the Plc transmits, I'd try to load Plcsim on the same machine (VM1), then save the Plcsim configuration to a file and load it in Plcsim on VM2, to get a correct initial configuration (PLC type, station name, IP etc.). I think it helps when the IP of VM2 is the same as the IP of the PLC you want to simulate.

       
  • Timo

    Timo - 2021-05-21

    Sorry, I just realized there are many other topics and my Answer is to the wrong one!

     

Log in to post a comment.

MongoDB Logo MongoDB