Raspberry Pi Polling Device by Ethernet/IP

2018-04-26
2018-05-03
  • danielchang - 2018-04-26

    Hi all,

    I am trying to get device data by Ethernet/IP. I add a "Generic_EtherNet_IP_device" under "Ethernet_IP_Scanner".
    Refer from https://help.codesys.com/webapp/rAlrUyiOs68zj7UlZdXT0yImTJI%2FGeneric_Service;product=EtherNetIPServices;version=3.5.12.0 to add Generic_Service (FB).
    But I do not know what the variable "WAGO_750_352_FC_ETHERNET" means.
    I try to add a variable "MOXA_E1242: ENIP.IEtherNetIPService;". How to set the related parameters like IP address.

    ( Get E1242 Assembly Input Data of BYTE )
    dut.xExecute := trigger;
    dut.itfEtherNetIPDevice := MOXA_E1242;
    dut.eClass := ENIP.CIPClass.AssemblyObject; ( 4 )
    dut.dwInstance := 16#65;
    dut.wAttribute := 16#3;
    dut.eService := ENIP.CIPCommonService.GET_ATTRIBUTE_SINGLE;
    dut.pReadData := ADR(bytDataArray);
    dut.udiReadDataSize := 63;
    dut();

    BR

     

Log in to post a comment.