My name is Oscar Loyola and I am teacher in one institute in Chile. We are working with Plcnext and I have the next question for make the communication between two modules of PLC in profine.
1. What happend when one controller only have the led D in ambar?, how I can solve this?
2. When I make the communication one PLC is controller and the other device, but the led SF is red and don’t change, I read the manual and say make diagnostic… How I make? 3. How I can visualice from device the controller when I access to the web server, because from the controller I see at device. (see the image) 4. Have a document to make the communication between PLC in profinet if you have one switch?
Hello Oscar, I hope I can help. - What firmware version are you running on the PLCs, and what version of PLCnext Engineer are you using? For your project, these should both be version 2019.6 - For each PLC, please create a default project in PLCnext Engineer, with the only changes to the default project being (a) IP address details of the PLC, and (b) Axioline F hardware configuration for the local I/O modules you have connected to the PLC. When you download this project to the PLC, the RUN and D LEDs should be solid green, the BF-C and BF-D LEDs will be red, and all other LEDs should be off. If this does not work, please let me know what LEDs you see. - Here is a series of steps that demonstrates how to communicate between two PLCs via Profinet: On the PLC that will be the Profinet device: 1. Start with the default PLCnext Engineer project. Set the required PLC IP address and Axioline F hardware configuration. Also set the “Name of Station” in the TCP/IP [Profinet] section of the PLC settings, and take note of the name - you will need this when configuring the Profinet Controller. 2. Download the PLCnext Engineer project and check that the RUN and D LEDs are both solid green. Both the BF-C and BF-D LEDs will be red. On the PLC that will be the Profinet controller: 1. Start with the default PLCnext Engineer project. Set the required PLC IP address and Axioline F hardware configuration. Make sure that the “Name of station” for this PLC is different to the station name for the other PLC. 2. Add an Axioline F Profinet Controller Device to the “Profinet” branch of the project tree. 3. In the Settings for this Profinet device, change the IP address assignment mode to Manual, enter the IP address details of the other PLC, and (very important) set the “Name of station” to the name that you set in the other PLC. 4. Download the PLCnext Engineer project and check that the RUN and D LEDs are both solid green. 5. The BF-D LED on this PLC will be red, but the BF-C LED should be off, indicating that there are no faults on this Profinet Controller. The BF-D LED on the other PLC will now also turn off, indicating that there are no faults on that Profinet Device. 512 bytes of data will now be exchanged in each direction between the two PLCs. In the Device, this data is in the System variables PND_S1_INPUTS and PND_S1_OUTPUTS. In the Controller, this data is in the variables DI4096 and DQ4096 in the Data List for that Profinet device - this data can be copied to PLC global variables or connected to program IN and OUT ports. Please let me know if you have any other questions. Martin.
Moved to the PLCnext Control section
Frank, I stay trying to communicate a PLCnext with other. the link was functionaly but I can´t take off date from the device, I know the memory from the data is DI4096 and DQ4096 but how make the read of that directions in the controller. Can you send me one example to make this?
Hi Oscar, Here is a short video showing how to read and write the data to/from the DI4096 and DQ4096 variables in the Profinet device. I hope this helps. - Martin.
Hi Oscar, I’ve just sended you a very small example via private mail I hope that it will make it, with Martins video, more clear… Take care! Frank
Thanks for all your support Frank… But we (Soledad and I) have a lot of questions about all… We think PLC is a really powerful tool, but we like to have more information… In this case we make the communication but when we try to send one side to side value we can’t… At this moment we are using one block called buf to byte… But i don’t know what more can do.
Hi Oscar, yeah, such a PLC offers a lot of possibilities. In case of the Profinet Controler / Device relation of those two AXC F 2152 is a array of byte (size 512Byte) transferred to offer the highest flexibility.
To transfer values you’ve several options:
* You can address directly the Bytes of the array (like I've did in the example).
This is quite handy when you’ve byte based types of variables (byte, sint, usint)
* For other datatypes you can use the x_to_buf functionblock.
In fact it just copys the variable as a byte stream into the DST (byte stream, in this case the PN Array).
* For structs or arrays you can use the MEMORY_COPY FB.
It copies a complete field (struct or array) into the byte stream and the other way around.
Of course you’ll need to know on the receiver side which data are located in the byte stream. I hope that helps you a bit the possibility of the PN Control / Device communication. Take care Frank
Hi Frank, I try to make your step but can’t make nothing…can you send me a guide or I don’t know something to read or other video for make control and interchange information between the PLC. I stay waiting your answer. Thanks.
Hi Oscar, were do you’ve exactly the problem? Is the Profinet Communication already running or is the problem the conversion of the datatypes? I guess it would be the best when you first check the Profinet Connection, this can be done best with the WBM.
If the connection is not established it is usualy caused from a mismatch of the PN device name in the project and on the device.
Please scan you network and make sure that the names matches or assign the name to the device.
node Profinet → Online Device → scan for device When the connection is working should the seconds by transfered in the first byte of the stream, can you check this on both sides and post maybe the content of the arra? Thanks Frank
Frank, the communication is done, but I would like to turn on a digital output in the controller with one digital input in the device. What means WBM? Thanks for all.
Hi Oscar, WBM is the abbreviation for web based management, here you get many valuable information and diagnostics from your device.
You can check also if your configured Profinet connections are running. In case your Profinet communication works you can now use the 512 Byte Array device variables (in my example INPort_PND_PD and OUTPort_PND_PD - type PND_IO_512) to copy any given value from the device to the control and vice versa. Just check the few lines of code in the main POE of my example: OUTPort_PND_PD[0] := TO_BYTE(RTC.SECONDS); I’m converting here an int type into a byte on the first[0] field of the array. In case you’ve just a bool you can also use the syntax OUTPort_PND_PD[0].X0 = yourBooleanVariable; On the receiver side you’ve to do that of course the other way around. Take care Frank
Hi Frank, Thanks for all your information, but you have something to read for make this or something to read that have more information about other configurations. Thanks for all.
Hello Oscar, did you see the Knowledge Base → PLCnext Info Center link here in the PLCnext Community?
There you can find information about the WBM. Or what exactly are you looking for kind regards, Oliver
Hi Oliver, I stay seeking information for make more interesting classes for my students, at this moment I have a lot of different equipments, but now I stay stopped because make the communication. I stay working for make a laboratory for industrial processes and connect this via WLAN. For this is important to me have information and onli make questions here if can’t make. The other protects that I have is make non linear controllers in PLCnext with simulink and measure respect classic controllers.
And don’t have information?
Hello Oscar, I still dont know what exactly you are looking for.
Maybe you can find inspiration in the MakersBlog area of the PLCnext Community, or the PLCnext GitHub Channel.
Otherwise I can recommend the Technical Support Youtube Channel. Also you might find interesting Solutions or Usecases to showcase and lots of freeware in the[ PLCnext Store.
W](https://www.plcnextstore.com/#/)hat kind of classes do you teach?
`Maybe something like this helps?
General automation technology. → IEC 61131 Programming or standard protocolls like PN , IO Link, Modbus, Mqtt ect. https://www.plcnext-community.net/en/hn-knowledge-base/hn-e-learning/plcnext-engineer-basics.html
Communikation technology: → Like creating OpenVPN connection from your PLCnext technology to some remote cloud. www.google.de → OpenVPN
High level language programming like C# Funktionblocks. https://www.plcnext-community.net/en/hn-knowledge-base/hn-e-learning/plcnext-technology-basics.html
Visualisation https://www.plcnext-community.net/en/hn-knowledge-base/hn-e-learning/plcnext-engineer-ehmi.html ,
You could also explore Nginx and posibility of adding support pages to PLCnext eHMI. kind regards,
Oliver