In the last tutorial,PLCNEXT Engineer software is installed on our machine. now we can try to connect your PLCNEXT CPU with your PC.
Reference Link:
Create an Empty Project
File>New Project to create a new Project.
The Project Object is inserted into your PLANT View.
Controller Parameter Check
Let’s check the Online CPU Parameters.
Double click the project object.
Click the Online Controllers.
The screen of the total view between offline and online is shown.
IP Scan Range setup
Before scanning the network, let’s set the IP range that you would like to detect.
Open the setting tab and that is a setting item that is named “IP range”.
What is the subnet range?
We can use wireshark to get the IP address of your PLC.
start up the wireshark and filter the LDDP protocol.
Open Link Layer Discovery Protocol>Managemet Address> Management Address.
You can see the IP address.
So the ip of the CPU is 192.168.1.10. Let’s enter the range.
Scan
Go back to the Online Controllers Tab, use the drop list to select the network interface that you are connecting to the CPU.
Click the circle icon to start to scan it.
After a few seconds, the PLC is shown.
Flashing
It is very common that more than 1 PLCs are connected in the same network, the Flashing Button is a very helpful function to check if the PLC that you are trying to connect is really the PLC that you need or not.
The LED Icon status has changed, and please check on the Real-PLC also.
Add to Project
Let’s Add the CPU into your Project.
Right click the CPU and click “Add to Project”.
Enter the username and password to login.
The PLC is inserted in your project now.
Connect to the PLC
Select the PLC under the Project object in the Plant view, Right click>Connect/Disconnect.
your Engineering tool is connected to the PLC if the green icon is shown.
Modify the IP Of PLC
Finally I will show you how to change the IP address.
Go to the Settings>Ethernet.
Change the IP in the IP address field.
Click the Connect/Disconnect to connect to the PLC.
Open the Online Controllers tab.
The status has changed to “!” and had a warning that the IP address is different.
Right click the Device>Apply Project Device Settings To Online Device.
Please wait a few seconds..
Done!Status is changed to green.
The Status is also OK now.