adccommunitymod (AutomationDirect) asked a question.

Write program to MODBUS

Created Date: April 08,2010

Created By: LIEY_V12

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

hello... 1) i want to ask how to write program into MODBUS. my H0-ECOM100 installed into slot 4 in DL-06 plc. my dip switch at H0-ECOM set to 1 i want to write address V2004 into MODBUS example of my program: SP 122 ---| |---------------- LD K401 | |--- LD K128 | |--- LDA O40600 | |--- WX V2004 it's true?


  • adccommunitymod (AutomationDirect)

    Created Date: April 08,2010

    Created by: bcarlton

    Pleasse provide more information about the target device - the unit where you are sending the information.

  • adccommunitymod (AutomationDirect)

    Created Date: April 09,2010

    Created by: LIEY_V12

    i wnt sent the data to the web based scada.

    this scada can recieve data using modbus.

    i did't used another unit devices.

    just only one H0-ECOM100.

  • adccommunitymod (AutomationDirect)

    Created Date: April 09,2010

    Created by: bcarlton

    SP 122

    ---| |---------------- LD K40 1 The '1 ' in this operand is the designation of the target's address. In the setup of the ECOM100 this number is translated to an IP address.

    |

    |--- LD K128

    |

    |--- LDA O40600

    |

    |--- WX V2004 This is the designation of the address in the target . Are you sure of this address

    it's true?

    ------------------

    In other words read the ENTIRE manual for the ECOM100 carefully. Be very sure of the target's addressing.

    In a typical installation though the SCADA system asks for the information. The PLC doesn't need any code.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: April 09,2010

    Created by: LIEY_V12

    V2004 = temperature value address

    i want to write it value in V2004 to SCADA, so this is adress in the target.

    i set my ip adress 192.168.1.15

    so the first box i must write:

    ---| |-----------LD K415

    is's true?

    tq

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: April 09,2010

    Created by: bcarlton

    You are not even close.

    YOUR IP has nothing to do with it. Please read on the setup of the table in the ECOM 100. You will relate a 'module ID to the TARGET's IP, not your (the PLC's) IP. THEN that 'module ID ' is what will appear in the first operand.

    Your 'V2004 ' translates to a MODBUS address of 31029 or 41029 (depending on the command). Is that correct. That position in the command IS NOT where you place the address IN YOU PLC that you want to write. It is the position in the target's Modbus table where you want to place the information.

    Please thoroughly read the ECOM100 manual first, especially the section on Modbus TCP.

    Only after that try to set up your communications.

    I'm still wondering why the SCADA package is doing the inquiry.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: April 08,2010

    Created by: LIEY_V12

    hello...

    1) i want to ask how to write program into MODBUS.

    my H0-ECOM100 installed into slot 4 in DL-06 plc.

    my dip switch at H0-ECOM set to 1

    i want to write address V2004 into MODBUS

    example of my program:

    SP 122

    ---| |---------------- LD K401

    |

    |--- LD K128

    |

    |--- LDA O40600

    |

    |--- WX V2004

    it's true?

    Expand Post