• Not Answered

How to communicate with a MicroLogix 1400 to a PK controller using Ethernet/IP

 Let me first say that I have no experience connecting to PLCs using a PK controller over ethernet/ip.

So I have a Micro Logix 1400 and I am trying to monitor parameters from the Micro Logix in DeltaV v15 using a PK controller.

I need to know how to set up the LDT and the signals so that I can read the parameters that I have tried to attach here.

Any help would be greatly appreciated.  

...

4 Replies

  • COMMON

    PLC ADDRESS RO A

    PLC ADDRESS RO B

    DESCRIPTION

    LOGIC OR UNITS

    N40:0

    N40:1

    PERMEATE CONDUCTIVITY

    microsiemens

    N40:22

    N40:24

    PERMEATE FLOW

    GPM

    N40:23

    N40:25

    CONCENTRATE FLOW

    GPM

    N31:17

    N32:17

    FLUSH LEFT

    MINUTES

    F8:172

    ORP

    MILLIVOLTS

    N40:6

    PERMEATE TANK LEVEL

    USER DEFINED

    F8:49

    F8:53

    RECOVERY

    PERCENT

    N40:4

    N40:5

    MODE

    0=PRIMARY,1=SECONDARY

    N40:11

    N40:21

    PUMP SUCTION PRESSURE

    PSI

    N40:12

    N40:13

    MEMBRANE PRESSURE

    PSI

    N40:14

    N40:16

    PERMEATE PRESSURE

    PSI

    B41:9/2

    B42:92

    RO PUMP STATUS

    0=OFF,1=ON

    N40:3

    PERMEATE TANK LEVEL DISPLAY

    SCALED BY USER

    N40:6

    N40:7

    RO STATUS

    *

    B41:9/0

    201A SOFTENER STATUS

    0=SERVICE,1=REGEN

    B41:9/6

    202A SOFTENER STATUS

    0=SERVICE,1=REGEN

    B42:9/6

    201 B SOFTENER STATUS

    0=SERVICE,1=REGEN

    B42:9/7

    202B """"""""""""""""""""""""""

    0=SERVICE,1=REGEN

    N31:18

    N32:18

    RO INLET VALVE STATUS

    0=CLOSED,1=OPEN

    N31:19

    N32:19

    RO FLUSH VALVE STATUS

    0=CLOSED,1=OPEN

    *0=SERVICE,1=POST FLUSH,2=FAULT SHUT DOWN,3=CLEAN,4=SHUT DOWN,5=LOW PSI RETRY,6=TRANSITION,7=HIGH LEVEL SHUT DOWN,8=RO LOCKOUT,9=FLUSH HOLD,10=PREFLUSH

  • In reply to Adam Villhauer:

    Hi Adam,

    You need to configure the PK Controller P01 port for Ethernet/IP and assign a Primary IP address consistent with the PLC address range. Then create a physical device which will represent your Micrologix 1400 and enter its IP Address in the Primary IP Address field. The next step is to create Logical Devices. These are used to group the data you are bringing in from the PLCs and in the case of Micrologix, I would suggest using Class 3 with PCCC, which allows you to map directly to the register ranges used in your PLC. The supported types are N and F.

    When using Class 3 with PCCC, each LDT will contain groups of signals, and you need to specify the direction. Since you are interested in reading only, your LDTs will be Input type (Data direction field).

    I would also suggest grouping all your values in consecutive register ranges so you can use a single LDT for your reads. You will also need to map your bits to an integer word in the N Data File. Sorting your data by register addresses shows that there is opportunity to optimize it and make sure there are no duplicate addresses.

    Address Description
    B41:9/0 Common 201A SOFTENER STATUS
    B41:9/2 RO A RO PUMP STATUS
    B41:9/6 Common 202A SOFTENER STATUS
    B42:9/6 Common 201B SOFTENER STATUS
    B42:9/7 Common 202B SOFTENER STATUS
    B42:92 RO B RO PUMP STATUS
    F8:172 Common ORP
    F8:49 RO A RECOVERY
    F8:53 RO B RECOVERY
    N31:17 RO A FLUSH LEFT
    N31:18 RO A RO INLET VALVE STATUS
    N31:19 RO A RO FLUSH VALVE STATUS
    N32:17 RO B FLUSH LEFT
    N32:18 RO B RO INLET VALVE STATUS
    N32:19 RO B RO FLUSH VALVE STATUS
    N40:0 RO A PERMEATE CONDUCTIVITY
    N40:1 RO B PERMEATE CONDUCTIVITY
    N40:3 Common PERMEATE TANK LEVEL DISPLAY
    N40:4 RO A MODE
    N40:5 RO B MODE
    N40:6 RO A PERMEATE TANK LEVEL
    N40:6 RO A STATUS
    N40:7 RO B STATUS
    N40:11 RO A PUMP SUCTION PRESSURE
    N40:12 RO A MEMBRANE PRESSURE
    N40:13 RO B MEMBRANE PRESSURE
    N40:14 RO A PERMEATE PRESSURE
    N40:16 RO B PERMEATE PRESSURE
    N40:21 RO B PUMP SUCTION PRESSURE
    N40:22 RO A PERMEATE FLOW
    N40:23 RO A CONCENTRATE FLOW
    N40:24 RO B PERMEATE FLOW
    N40:25 RO B CONCENTRATE FLOW

    Since many of these are not contiguous, you may end up moving data that you don't need or creating more LDTs for reading all these parameters. 

    Assuming that all your integer data is in the N40 data file, your configuration would look like this:

    PK Controller P01:

    Primary IP Address is required.

    Physical Device:

    PLC Primary IP Address is required.

    Integer Inputs LDT (including a 16-bit signed integer for your 6 bits):

    Floating Inputs LDT (assuming they are contiguous and start at F8:49):

    If optimizing the data mapping in the PLC is not possible, you will need to create LDTS that allow grouping your data. If you only want those parameters in the list, you may need more LDTs. If you don't mind bringing extra data, create LDTs per data file:

    1. LDT1 for Data File N31
    2. LDT2 for Data File N32
    3. LDT3 for Data File N40
    4. LDT4 for Data File F8 (max number of signals per LDT is 50 floats, so you may need 2 LDTs: One LDT for F8:49 to F8:53 and another LDT for F8:172)

    I hope this helps,

    Camilo

    Camilo Fadul | DeltaV Solution Marketing Director

    https://www.linkedin.com/in/cfadul

  • In reply to Camilo Fadul:

    Thank you, this is a good start. Below I have what I think all the LDTs Properties would look like for each set of addresses. Do these look right?

    Also how are the B41:9/0, B41:9/2, B41:9/6, B42:9/6, B42:9/7 and B42:92 Handled.

    What would the LDT look like for the B41 and B42?

     

    LDT for N31:17, N31:18, N31:19

    Number of Values- 3

    Data direction- Input

    Data type- 16 bit signed integer

    File type- N

    File number- 31

    Starting Address- 17

     

    LDT for N32:17, N32:18, N32:19

    Number of Values- 3

    Data direction- Input

    Data type- 16 bit signed integer

    File type- N

    File number- 32

    Starting Address- 17

     

    LDT for N40:0, N40:1, N40:3, N40:4, N40:5, N40:6, N40:6, N40:7, N40:11, N40:12, N40:13, N40:14, N40:16, N40:2, N40:22, N40:23, N40:24, N40:25

    Number of Values- 25

    Data direction- Input

    Data type- 16 bit signed integer

    File type- N

    File number- 40

    Starting Address- 0

     

    LDT for F8:49, F8:53

    Number of vales- 5 (assuming that this will bring in 49,50,51,52,53?)

    Data direction- Input

    Data type- Floating point

    File type- F

    File number- 8

    Starting Address- 49

     

    LDT for F8:172

    Number of vales- 1

    Data direction- Input

    Data type- Floating point

    File type- F

    File number- 8

    Starting Address- 172

  • In reply to Adam Villhauer:

    Hi Adam,

    These look good. I would only offer 2 comments:

    Your LDT for the Data File N40 starts with register 0 and goes to register 25. The number of values is 26.
    In the list of registers, N40:6 is used by RO A PERMEATE TANK LEVEL and RO A STATUS, so you may need an extra register.

    Since moving data from Data Files B is not supported, you will need to move those bits to a register in N40. For example: B41:9/0 --> N40:26/0; B41:9/2 --> N40:26/1 ...

    Camilo

    Camilo Fadul | DeltaV Solution Marketing Director

    https://www.linkedin.com/in/cfadul