Mar 12 2009

Modbus TCP Protocol between ADAM-5510KW/TCP and Maple HMI5104T

Published at 10:14 pm under Advantech ePlatform, Maple Systems

ADAM-5510KW/TCP is PAC (Programmable Automation Controller) base on IEC-61131-3 standard package. IEC-61131-3 is the third part of open international standard IEC 61131 for graphical and textual PAC programming languages. Base on IEC-61131-3, PAC should support these programming languages :

  • Ladder Diagram (LD)
  • Function Block Diagram (FBD)
  • Structured Text (ST)
  • Instruction List (IL)
  • Sequential Function Chart (SFC)

adam-5510kw-tcpWith the IEC-61131-3 standard package, ADAM-5510KW/TCP support for comprehensive controling distribution, processing data and have more capability than old PLC function. Moreover, ADAM-5510KW/TCP also support with modbus TCP (Server/Client) and RTU (Master/Slave) protocol. These standard open protocol enable ADAM-5510KT/TCP to communicate with other device.

For this chapter, I will show you how to move the analog data from AI module into modbus register so it could reading online by HMI5104T via modbus TCP protocol. There are several hardware/software that need to provided :

  1. PAC ADAM-5510KW/TCP
  2. HMI Touchscreen Maple HMI5104T
  3. Ethernet Switch Hub
  4. 2 Straight ethernet cables
  5. 1 RS-232 cable (female to female DB9 connector) or Serial to USB converter
  6. Software KW Multiprog for ADAM-5510KW/TCP
  7. Software EasyBuilder5000 v1.31 for Maple HMI5104T
  8. PC or Laptop

Before you could perform PAC programming via KW-Multiprog, please configure these DIP switch. There are up to 8 DIP switch, where DIP 1 to 5 used for setting the device ID of ADAM-5510KW/TCP and DIP 6 to 8 used for setting the protocol communication in COM1 and COM2. On this chapter I will configure device ID = 1 and COM1 = RS-232 (baudrate 19200) for Multiprog Protocol. So only DIP 1 change to ON position. After that I insert the AI module into ADAM-5510KW/TCP PAC I/O slot and power on ADAM-5510KW/TCP with 24VDC power supply. Then connect COM1 ADAM-5510KW/TCP into PC or Laptop to start KW-Multiprog programming.

dip-switch-configuration-of-adam5510kwtcp

Click the icon of KW-Multiprog on Start Menu to create New Project base on ADAM5000. After that please select the active serial COM on Resource IPC_30. io-configurationDon’t forget to configure baudrate, stopbits, databits, parity, timeout similar with you physical COM PC or Laptop. Because All of I/O module that inserting into ADAM-5510KW/TCP slot board should defining in I/O configuration, so that you have to define the AI module in I/O Configuration. On I/O configuration, you should also set the IP address (ex: 192.168.1.1) of ADAM-5510KW/TCP to perform the next modbus TCP communication.

After you have successful install add on ADAM5000 library, you will have ADAM5K_AI function block. This function block using to move analog data from AI Module into modbus register. This is the simple configuration of ADAM5K_AI :

  • EN : BOOL#1
  • Slot : INT#0 (depend on your AI module placed)
  • CHx : CH0_AIx, where x = 0, 1, 2, …, 7 and CH0_AI is UINT data type with I/O address start from %MW3.0

adam5k_ai

adam5000-memory-for-modbus-register

After you have finish configure ADAM5K_AI, build your own project by pressing F9 to ensure there is no error in your project. To download into ADAM-5510KW/TCP click Online -> Project Control -> Download -> Download -> Cold. To see you project in online view click Online -> Debug (F10), then you will see the real analog value of AI module in Unsigned Integer (0 – 65535) representation. When you download your project into ADAM-5510KW/TCP, the IP address that have you set also download on there. It means that you could use UTP ethernet cable to perform the modbus TCP and Multiprog communication. Until this step, ADAM-5510KW/TCP success configurated and we will go to configure HMI5104T using EasyBuilder5000 v1.31.

model-of-maple-systemPower on HMI5014T with 24VDC to set IP address (ex: 192.168.1.2) manually. Then click EasyBuilder5000 icon on the Start Menu, then create New HMI Project (Ctrl+N) with model HMI5104x (640 x 480). On the EasyBuilder5000 v1.31 there are several model of Maple System touchscreen, as you can see on left.

On the System Parameter Setting, you should define the protocol/driver communication which will used between HMI5014T and ADAM-5510KW/TCP. For this chapter I choose modbus TCP protocol which these configuration :

  • Radio check box : PLC
  • PLC type : Modbus TC/IP Master
  • PLC I/F : Ethernet
  • PLC default station no : 1 (depend on modbus address of ADAM-5510KW/TCP)
  • Setting IP Address : 192.168.1.1 (depend on IP set of ADAm-5510KW/TCP)
  • Port no : 502

maple-modbusAfter you have create new HMI workspace, insert Numerical Display symbol and you will see a new popup window. On the popup window, you could configure the modbus function and modbus register, custom the graphical and text display or animation. The general configuration for this chapter are :

  • Device type : 4x (Read/Write Holding Register)
  • Address : 2001 to 2008
  • Data format : 16-bit Unsigned
  • Left of decimal Pt: 5

Please insert 8 Numerical Display symbols on the EasyBuilder5000 workspace, where each symbol used for each modbus register address. To verifying your project, click Tools -> Compile. To download your project to HMI5014T, click Tools -> Download. Before you download, you should have know the IP address, password of HMI5014T and connect your PC or Laptop with UTP ethernet cable. For this chapter the IP address : 192.168.1.2 and default password : 111111. After that, replace RJ45 port from your PC/Laptop into ADAM-5510KW/TCP. You will see the actual analog data of AI module in HMI5014T Touchscreen.

All of configuration that I have explain is base on my experiences. So that I could ensure you the configuration could perform the modbus TCP communication between ADAM-5510KW/TCP and HMI5014T Touchscreen. But if you have any questions or technical advice, please contact me immediately. :grin:

2 responses so far                                                                                                               Print This Post Print This Post


Related Posts

2 Responses to “Modbus TCP Protocol between ADAM-5510KW/TCP and Maple HMI5104T”

  1. Fantastic site, I really like your writing style. Very distinctive and to the point. On a lot of blogs people just drone on and on, but not you – very nice. Keep up the great work! I love reading other sites about web development. I really like what you wrote in this post, and some of your other articles are interesting. I’ll have to read more. Don’t have time to read everything here, I found your site while looking for something else on about.com. But I’ve bookmarked your homepage and will visit it regularly to read the latest. I have been teaching myself how to develop Android applications for a bit now. Seems like there is something new to learn constantly. Thanks again for a very educational site! Click here if you’d like to check out my site.

  2. Thomas says:

    Dear Mr. Reynaldo,

    I would like thanks a lot for your respons. I will update new post about my new experiences about automation configuration.


Leave a Reply