Skip to content

PLCnext - PN - IO-Link master

Hi,

I've jumped in the deep end with a project and struggling a bit. Although I have a bit of experience with plc's and programming this is the first time, I'm doing something so extensive.

I have the following setup:

AXC F 2152 <-> PN <-> IFM AL1402

The AL1402 IO-link master has an IO-link I/O module, IO-link devices (sensers and actuators) and SMC IO-link valve island connected to it.

The hardware shows up in the equipment tree on the lefthand side of the PLCnext software but I'm struggling to get any further. I don't seem to be able to set any variables

The sensor is an IFM PN2098 pressure sensor.

For now, I would be grateful for any assistance up to viewing the pressure value in a watch table.

Any help will be much appreciated.

Thanks,

Arno

Comments

  • Hi Arno,


    NZ Application Engineer is going to be in touch with you. It looks like you have used process data that contains only inputs. There are options to use process data that includes outputs.

    Looking at the IODD file of that product, it does not have any OUT process data meaning that you can only read data with that device. Confirm the process data and choose the correct process data for the device.


    For 'watching' values, please refer to the following documentation:

    Regards,


    Declan

  • Hi Arno,

    you can try to create a global variable of type WORD in the PLCs data list, connect it to the "Input data 2 Bytes" and write the project to the PLC.

    You should see a live value in the variable when you are online.

    BR

    DivisionByZero

  • Hi Declan,

    Thank you for the reply, the NZ Application Engineer has been in touch, we have setup a meeting for Monday morning.

    Just as an update, I now have a Balluff IOL master BNI00AZ connected also and its layout and parameter configuration in PLCnext is very different to the IFM AL1402.

    For example, I can set the parameters for the BNI00AJ IOL analog module from PLCnext but it's not possible for the AL2605 IOL I/O module.

    I have a Phoenix AXL E PN IOL8 DI4 M12 6P arriving end of next week, keen to see how that differs from the other two.



    Regards,

    Arno

  • Hi DivisionByZero,

    Thank you for your advise, I have created the global variable as below.

    But I am still unable to assign any variables to the top to lines of the following table.

    I can only assign variables to lines 3 - 12.

    I must be missing something here.


    Regards,

    Arno

  • Hi Arno,

    the reason for that is that the data list will only show you variables that match the data type of your process data item. You can expand the Process data item column and check the data type of ~IN and Input data 2 Bytes.

    You'll have to create variables with matching data types. Usually the bit length is the important criteria for that. That is why I assumed "2 Bytes" would be connectable to a WORD variable. It's hard to tell without seeing the data types.

    BR

    DIvisionByZero

  • Hi DivisionByZero,

    Thank you for the reply,

    It is octetstring, but in plcnext there are no octetstring variable.

    How do I proceed with setting a variable and obtaining the pressure readout value.

    I appreciate your assistance.

    Regards,

    Arno

  • edited February 21

    Hi Arno,

    I just tried and it should work when you have variables with matching bit length. In my case I can connect an Octetstring8 (8*8 Bits -> 64) to an LWORD variable or a BYTE array with length 8 (TYPE MyByteArray : ARRAY[0..7] OF BYTE; END_TYPE).

    So I would expect an Octectstring2 to be connectable to a WORD variable or an ARRAY[0..1] OF BYTE

    BR

    DivisionByZero

Sign In or Register to comment.