Skip to content

AXC F 2152 as profinet device

Hello,

I have 2 AXC F 2152 and I'm trying to make a connection between them. I did everything exactly like in this topic https://www.plcnext.help/te/PLCnext_Engineer/Configuring_Profinet_controller_and_device.htm?rhsearch=DI4096

Now i need help with this variables DI4096 and DQ4096, I don't know how to use that data.

Like for example how can i turn a digital output in the device with a digital input in the controller?

Comments

  • edited June 2024

    Hello danielt01,

    please find the description under following link:

    https://pxc1.esc-eu-central-1.empolisservices.com/service-express/portal/object/esc/de-so-2fdd29ed-5d43-41de-b99b-d9c978a17fdf?context=%7B%22filter%22%3A%7B%7D%7D

    In the first step please declare the InputVar (Datatype Byte) as "Out-Port" (Producer variable) and connect it to "~DO8"-Process data (Consumer data) of AXL F DI8/DO8 modul (under "PLCnext" node in the "PLANT" -Area ).

    Then declare the OutputVar (Datatype Byte) as "In-Port" (Consumer Variable) and connect it to "~DI8"-Process data (Producer data) of AXL F DI8/DO8 modul (under "PLCnext" node in the "PLANT" -Area ).

    In the second step assign the variables InputVar and OutputVar to the PN-Data. This example describes the procedure:

    BR Eduard

  • Hi Eduard,

    I can't access that link :(


    I declared the InputVar and OutputVar and I assigned them to PN-data.



    Now what?

  • edited June 2024


    Hello danielt01,

    I assume there is an issue with your Browser sertificate and you have to create your account in Knowlege Base.

    You can create the projects by following steps:


    Step 1 (PN-Controller Project):

    Configure the PN-Bus-Configuration and declare the variables as showed in screenshot below:


    Step 2: Connect the PN-Process data to declared variables in step 1:


    Step 3: Open the Main-Program and Implement the following code:


    Step 4: Save the Project as PN-Controller and write and start it on the PLC.


    Step 5: Create a new PLCnEng Project for AXCF2152 PN-Device Controller and declare the PND_S1_OUTPUTS and PND_S1_INPUTS -Prozess Variable in Main Program (the variables must be allredy persists you can select/choose it).

    Step 6: Assign the PND_S1_OUTPUTS to PND_S1_INPUTS and check if you get/send the Data from/to PN-Controller


    Step 7:

    Declare the OutputVar and InputVar as in screenshot below:


    Step 8: Configure the AXL DI8/DO8 Modul and assign the OutputVar and InputVar to AXL DI/DO process data:


    Step 9:

    Now you can assign the PN-Data to Variables:


    Step 10: Write and start the Project to AXCF2152 PN-Device and monitor the values (Switch the Digital Input Channel 1 on AXL DI8/DO8 Modul on "True" Result: The Output Channel 1 will be set on "True").


    BR Eduard

  • It's working, thank you very much for your help Eduard. Now i want to do the same thing for the analog modules. I assume the procedure is the same.

  • Hello danielt01,

    you are welcome, yes you can transmit the Analog Values on the same way. Only you have to divide the data e.g. of datatype "word" as two "bytes" before sending (PN-Device). On PN-Controller you can collect the data transmitted as two bytes to word.

    BR Eduard

  • Can you show me an example please ?

    My datatype for analog input is "dint".

Sign In or Register to comment.