Connecting a Tag to a PLC

Introduction

Hello and welcome to a new quick start guide on how to best use Movicon.NExTâ„¢.
In this technote you will learn how to connect a Movicon.NExT project tag to programmable logic controller, commonly known as the PLC, by means of using a driver.

Connection Methods

To establish a connection between a tag and a PLC, you'll need either a PLC or a PLC simulator, along with a Movicon.NExT project that has a configured driver and at least one defined tag.
There are two different methods which you can use to connect a tag to a PLC or a generic field device:

First Method

Let's go through the first method.
To test the connection of a tag to a PLC in this scenario, we will use ModRS_Sim, which is a PLC simulator that use the Modbus TCP protocol, along with a new Movicon.NExT project.
Start the Modbus simulator by double clicking the simulator icon.
Open Movicon.NExT in design mode and create a new project:

Now we will create a tag to connect to the PLC simulator:

When you have finished configuring the tag, save the project by clicking on the Save All icon on the Movicon.NExT editor's toolbar at the top.

Startup the project's Server side only by clicking the Start Server icon on the Movicon.NExT Editor's top toolbar.
Click on Tags in the OPC UA Browser window, which opens when starting up the Movicon.NExT Server, to monitor the previously created MbtcpTag tag.
Change the value of the MbtcpTag tag shown in the value column with an integer as pleased by double clicking on the table's cell. Press enter to send the entered value to the simulator and stored.
By opening the simulator and going to the Holding Registers section, you will see the value written in Movicon.NExT at the Modbus simulator's 40001 address. Of course, the reverse process also holds true.

Second method

Lets now look at the second method to import a tag directly from a field device.
In this example, we will use the OPC UA Prosys simulator.
Once the simulator has been installed, double click its icon to open it.
When the simulator has started up, go back to the previously used Movicon.NExT project.
We will use the same procedure used for the Modbus TCP-IP driver to configure the OPC UA Client driver. Therefore:

Now that the driver has been added, we shall now import the items configured in the OPC UA Prosys simulator. In order to do this, we will start with the driver list:

As soon as this procedure is completed, the Counter and Constant items will be inserted on the list of tags on the Tags List tab.
Select the tag that has just been imported on the list and note that the tag's Physical I/O Address is configured independently in accordance with the OPC UA Client property.

Save the project by clicking on the Save All icon on the Movicon.NExT editor's toolbar at the top.

As before, run the project's server side by clicking on the Start Server button on the Movicon.NExT Editor's top toolbar.
Click on Tags in the OPC UA Browser window that opens when starting up the Movicon.NExT Server and expand Station0 and then Simulation to monitor the previously imported Counter and Constant tags.
Double click on the table cell to change the value of the Constant tag shown in the value column with any integer value. Press enter, to store and send the written value to the simulator.
Open the OPC UA simulator and then go to the Objects tab and expand the Simulation folder and select the Constant item. Note that in its properties, the Value is equal to the one set in the Movicon.NExT's OPC UA Browser window.