Sample: Master configuration

This chapter shows by way of example which configuration parameters are important for the communication between a master and a slave.

The instance numbers of an EtherNet/IP slave are important for the configuration of the EtherNet/IP master. In the case of a CX8095 the instance numbers are displayed on the Configuration tab in the entry "IO Assembly Settings".

Instance numbers of a ready parameterized CX8095:

Sample: Master configuration 1:

As an example, a master is parameterized in the RSLogix5000 program, showing how the instance numbers from the CX8095 are used.

To do this, open the RSLogix and create a new project. In this sample a CompactLogix (L32E) is used.

  1. Create a new controller.
    Sample: Master configuration 2:
  2. Append a new module.
    Sample: Master configuration 3:
  3. Select ETHERNET MODULE "Generic Ethernet Module".
    Sample: Master configuration 4:
  4. Enter the IP address from entry 8000:21. 129dec is entered for the input instance, 130dec for the output instance and 128dec for the config instance.

    The data length is dependent on the Comm format. In this sample INT was selected as the Comm format, therefore the number of data items from entries 8001:05 and 8001:07 must be divided once again by 2, since these are specified in TwinCAT in bytes and on the RSLogix in Word length (INT).
    If the number of bytes is an odd number it must be rounded up. This also applies even if the Comm format is set to DINT, in which case you must round up to the next whole number.
    Sample: Master configuration 5: