User Manual ADAM-5560 Series Programmable Automation Controllers
Copyright The documentation and the software included with this product are copyrighted 2012 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable.
Declaration of Conformity CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. FCC Class A Note: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules.
Safety Instructions 1. 2. 3. Read these safety instructions carefully. Keep this User Manual for later reference. Disconnect this equipment from any AC outlet before cleaning. Use a damp cloth. Do not use liquid or spray detergents for cleaning. 4. For plug-in equipment, the power outlet socket must be located near the equipment and must be easily accessible. 5. Keep this equipment away from humidity. 6. Put this equipment on a reliable surface during installation.
Contents Chapter 1 Overview...............................................1 1.1 1.2 Introduction ............................................................................................... 2 Features .................................................................................................... 2 Table 1.1: Programming Languages Table ................................. 4 Figure 1.1 Cross-Language Programming .................................. 4 Table 1.2: I/O Module Support List.................
2.4 Chapter Chapter 3 Quick Start......................................... 29 3.1 3.2 3.3 3.4 3.5 Set IP Address to ADAM-5560KW.......................................................... 31 Configure ADAM-5000 Local I/O ............................................................ 35 Multiprog Installation ............................................................................... 39 Create a Project and Test the System ....................................................
A.1 A.2 A.3 A.4 Chapter B Grounding Reference ......................173 B.1 B.2 B.5 Field Grounding and Shielding Applications ......................................... 174 Grounding ............................................................................................. 174 B.2.1 The ‘Earth’ for reference ........................................................... 174 Figure B.1 Think the EARTH as GROUND.............................. 174 B.2.2 The ‘Frame Ground’ and ‘Grounding Bar’............
ADAM-5560 Series User Manual viii
Chapter 1 Overview 1
1.1 Introduction ADAM-5560 Series Controller is Programmable Automation Controller designed for control tasks which require Industrial PC computing performance with the PLC’s robustness. ADAM-5560 Series Controller offers Intel ATOM Z510P CPU along with control specific features such as watchdog timer, battery backup RAM and deterministic I/O. ADAM-5560KW Controller features 5 standard IEC61131-3 programming languages in CE 5.
Support atorage function by battery backup rAM and SD card I/O module ADAM-5560 Series Controller has built-in 1GB DDR2 SDRAM with 1MB battery backup RAM for saving important data. The ADAM-5030 I/O Module supports two SD cards and two USB ports. So users can use SD cards or USB sticks for large amount of data storage requirement. Built-in real-time clock and watchdog timer The ADAM-5560 Series Controller also includes a real-time clock and watchdog timer.
Table 1.1: Programming Languages Table Textual Languages Graphical Languages Instruction List (IL) Structured Text (ST) Function Block Diagram (FBD) Ladder Diagram (LD) Sequential Function Chart (SFC) Cross-Language Programming For some project integrate and scalable issues, cross-language can help you to choose the different language for your project.
Pre-defined function library Advantech Multiprog provides many pre-defined function library such as maximum of strings as string function block, Convert REAL to INT as type convert function block. It helps you to build up your program more conveniently. It is more convenient than the traditional control programming tools. With this pre-defined function, you can make your project easier in timer control, variable type conversion or strings conversion, etc.
Table 1.
Built-in SQL Mobile Server ADAM-5560KW Controller embeds SQL server so it is very easy to exchange data between enterprise database/local HMI software and SQL server by SQL query functions. Following is the Architecture of ADAM-5560KW Controller Kernel. Chapter 1 Remote maintenance via FTP Server and DiagAnywhere Software For remote maintenance function, the built-in FTP server provides service for uploading application program or downloading data logging files.
Remote I/O Expansibility ADAM-5560 Series Controller supports not only Modbus/RTU Master function via serial ports, but also the Modbus/TCP Client to retrieve data from remote I/O, and Modbus/TCP Server to exchange data with other Modbus devices via Ethernet port. This Modbus features are very useful when the control system needs expand the remote I/O modules or connect to other controllers. 1.3 Specifications 1.3.
Connector: DB-9 pin Transmission speed: Up to 115.2 Kbps Max transmission distance: – RS-232: 50 feet (15.2 m) – RS-485: 4,000 feet (1220 m) Chapter 1 1.3.6 RS-485 interface (COM2) Signals: DATA+, DATAMode : Half duplex, multi-drop Connector: Screw terminal Transmission speed: Up to 115.2K bps Max transmission distance: 4000 feet (1220 m) 1.3.
1.3.11 Mechanical Case: ABS+PC with captive mounting hardware Plug-in screw terminal block: Accepts 0.5 mm2 to 2.5 mm2, 1 - #12 or 2 - #14 to #22 AWG 1.3.12 Environment Operating temperature: 0 ~ 55° C (32 ~ 122° F) Storage temperature: -25° to 85° C (-13° to 185° F) Humidity: 5 to 95 %, non-condensing Atmosphere: No corrosive gases Note! Equipment will operate below 30% humidity. However, static electricity problems occur much more frequently at lower humidity levels.
Chapter 1 There are two LEDs besides each Ethernet port. The LEDs indicate operating status, as explained below: TX (Green): This LED blinks whenever the ADAM-5560 Series Controller transmitting data to Ethernet. Link (Orange): This LED is on whenever the ADAM-5560 Series Controller connecting to Ethernet. 1.6 Limitations ADAM-5560 Series Controller can connect to ADAM-4000 Modbus I/O modules through COM1/COM2/COM3/COM4 RS-485 port by Modbus protocol.
ADAM-5560 Series User Manual 12
Chapter 2 Installation 2
2.1 Overview This chapter describes how to install an ADAM-5560 Series Controller. A quick hookup scheme is provided that let you easily configure your system before implementing it into your application. 2.2 System Requirements Before you start installing the ADAM-5560 Series Controller, make sure the system requirements are met as below: 2.2.1 Host Computer Requirements 1. 2. 3. 4. 5. 6. 7. 8. IBM PC compatible computer with Pentium II 350MHz processor. Microsoft Windows 95/98/NT4.
2.3.1 Selecting I/O Module Refer to discrete & analog I/O module selection guidelines as below. Table 2.
ADAM5013 ADAM5017 ADAM5017UH ADAM5018 ADAM5024 Resolution 16 bit 16 bit 12 bit 16 bit - Input Channel 3 8 8 7 - Sampling Rate 10 10 8K (Total) 10 Analog Input Voltage Input - ±150 mV ±500 mV ±1 V ±5 V ±10 V Current Input - Direct Sensor Input Module Analog Output ±10 V 0~10V 0~20mV ±15 mV ±50 mV ±100 mV ±500 mV ±1 V ±2.
ADAM5056 ADAM5056D ADAM5056S / 5056SO Resolution - - - - - Input Channel - - - - - Sampling Rate - - - - - Analog Input Voltage Input - - - - - Current Input - - - - - Direct Sensor Input - - - - - Resolution - - - - - Analog Output Voltage Output - - - - - Current Output - - - - - Digital Input and Digital Output Digital Input Channels 8 8 W/LED - - - Digital Output Channels - 8 W/LED 16 16 W/LED 16 W/LED Channels - - - - - Input F
Module ADAM-5030 SD Card Slot 2 USB 2.0 Slot 2 2.3.2 Selecting Power Supply Module ADAM-5560 Series Controller works under unregulated power source between +10 and +30 VDC. When you arrange different I/O modules on ADAM-5560 Series Controller’s backplane, it may require comparable power supply. Use the following steps as guidelines for selecting a power supply for your ADAM-5000 Series control system. Refer to Table 2.2 to check the power consumption of ADAM-5000 Series Controller and each I/O module.
3-Channel RTD Input Module 1.1 W ADAM-5017 8-Ch Analog Input Module (mV, mA or High Voltage) 1.25 W ADAM-5017UH 8-CH Ultra High speed Analog Input Module (mV, mA 2.2 W or High Voltage) ADAM-5018 7-Channel Thermocouple Input Module (mV, V, mA, Thermocopule) 0.63 W ADAM-5024 4-Channel Analog Output Module (V, mA) 2.9 W ADAM-5050 16-Channel Universal DIO 1.2 W ADAM-5051 16-Channel Digital Input Module 0.53 W ADAM-5051D 16-Channel Digital Input w/LED Module 0.
Select a suitable power supply from Table 2.4 or other comparable power resource for system operation. Table 2.4: Power Supply Specification Table Specification PWR-242 PWR-243 PWR-244 Input Voltage 90 ~ 264 VAC 85 ~ 132 VAC 170 ~ 264 VAC 100 ~ 240 VAC Input Frequency 47 ~ 63 Hz 47 ~ 63 Hz 47 ~ 63 Hz Input Current 1.2 A max. 1.4 A max 25 A/110 VAC 50 A/220 VAC (Inrush current) Short Protection Yes Yes Yes Output Voltage +24 VDC +24 VDC +24 VDC Output Current 2.1 A 3A 4.
The ADAM-5560 Series Controller can be installed on a panel or on a DIN rail. 2.3.5.1 Panel Mount Mount the system on the panel horizontally to provide proper ventilation. You cannot mount the system vertically, upside down or on a flat horizontal surface. A standard #7 tatting screw (4 mm diameter) should be used. Chapter 2 2.3.5 Mounting Installation Figure 2.1 Panel Mount for ADAM-5560 Series 2.3.5.2 DIN-rail Mounting Figure 2.
The system can also be secured to the cabinet by using mounting rails. If you mount the system on a rail, you should also consider using end brackets at each end of the rail. The ended brackets help keep the system from sliding horizontally along the rail. This minimizes the possibility of accidentally pulling the wiring loose. If you examine the bottom of the system, you will notice two small retaining clips.
COM3 Jumper Setting The Communication port of COM3 is set by CN9, CN10, CN11 (Mode) and CN12 (Terminal Resistor). Figure 2.6 COM3 RS-232/485 and Terminal Resistor Settings COM4 Jumper Setting The Communication port of COM4 is set by CN14, CN15, CN16 (Mode) and CN1 7(Terminal Resistor). Figure 2.7 COM4 RS-232/485 and Terminal Resistor Settings 23 ADAM-5560 Series User Manual Installation Figure 2.
2.3.6.2 DIP Switch Setting Figure 2.8 ADAM-5560 Series DIP Switch Device ID Setting: You can set up your device ID by changing DIP Switch 1-8. The available ID for ADAM-5560 Series Controller is from 0 to 255. Please refer to the Table 2.6 Device ID DIP Switch Table to set up your Device ID. Table 2.
Chapter 2 2.3.7 COM Port Pin Assignments Figure 2.10 RS-485 Port Pin Assignment 25 ADAM-5560 Series User Manual Installation Figure 2.
2.4 System Wiring and Connections This section provides basic information on wiring the power supply, I/O modules and communication port connection. 2.4.1 Power Supply Wiring Although the ADAM-5560 Series Controller is designed for a standard industrial unregulated 24 VDC power supply, they accept any power unit that supplies within the range of +10 to +30 VDC. The power supply ripple must be limited to 200 mV peak-topeak, and the immediate ripple voltage should be maintained between +10 and +30 VDC.
Chapter 2 2.4.3.1 Remote I/O Wiring Modbus/RTU Master Function via COM1/COM2/COM4 RS-485: Installation Figure 2.12 Remote I/O Wiring You can connect typical 128 ADAM-4000 Modbus Remote I/O modules via COM1/ COM2/COM4. Please set the COM1 and COM4 as RS-485 mode. 2.4.4 Ethernet Network Connection The ADAM-5560 Series Controller provides Ethernet interfaces for network integration.
ADAM-5560 Series User Manual 28
Chapter 3 Quick Start 3
This chapter will help you get familiar with ADAM-5560KW Controller and Multiprog Programming Software by following step by step examples. In this chapter, you need to prepare the system configuration as below. Main Module: ADAM-5560KW X1, IP Address: 192.168.1.5 Local I/O Modules: ADAM-5051D in Slot 0 ADAM-5056D in Slot 1 Advantech Multiprog CD: Advantech Multiprog Software with license key.
[PAC Device] Power up ADAM-5560KW and click “Start”. 2. [PAC Device] Click “Settings” and “Network and Dial-up Connections”. Quick Start 1. Chapter 3 3.
3. [PAC Device] Right click “PCI-RTL81391” icon and then click “Properties”. 4. [PAC Device] Type IP Address like “192.168.1.5” and Subnet Mask “255.255.255.0”.
6. [PAC Device] Type IP Address like “192.168.1.6” and Subnet Mask “255.255.255.0”. Now the IP address configuration has been finished. Quick Start [PAC Device] Right click “PCI-RTL81392” icon and then click “Properties”. Chapter 3 5.
7. If your PC has installed DiagAnywhere Software, you can search the ADAM5560KW and check the Ethernet connection. Please click the “Remote device” and click “Search” button. 8. Click “ADAM-5560” and then click OK button without entering any password.
The screen of ADAM-5560KW will be shown in the window. Now it is possible to remotely control the ADAM-5560KW by PC’s mouse. Chapter 3 9. Quick Start 3.2 Configure ADAM-5000 Local I/O 1. [PAC Device] Click “Start” -> “Programs” -> “Advantech” -> “Adam.NET Utility”.
2. [PAC Device] Click “Local system” to view the local I/O modules. 3. [PAC Device] ADAM-5051 and ADAM-5056 are listed. Select “ADAM-5051”.
[PAC Device] Check the state of DI 0 is “ON”. 5. [PAC Device] Change the state of DI 0 to “OFF” and check the display. Chapter 3 4.
6. [PAC Device] Select “ADAM-5056”. 7. [PAC Device] Change the state of DO 0, DO 2, DO 4, DO 6, DO 8, DO 10,DO 12, DO 14 to “ON” and check the display.
3.4 Create a Project and Test the System In following demonstration, a simple project of performing DI and DO function by ladder diagram is shown. After finish this section, you can ensure the system is workable. 1. Open Advantech Multiprog by clicking Multiprog item. 39 ADAM-5560 Series User Manual Quick Start Following will guide you how to setup Multiprog IEC-61131-3 development environment on your PC. 1. Please use your web browser to visit Advantech web site. (www.advantech.com) 2.
2. Click “OK” to enter the DEMO Mode. 3. Click “Register” to enter the Registration Code.
5. Click “OK” to finish the registration. Quick Start Enter the Registration Code which comes with Advantech Multiprog Software License Sheet. Chapter 3 4.
6. Open a new project and start to create the test project. 7. Select “ADAM-5560KW” item and then click “OK”.
9. Check the folder is at “Input”. Quick Start Double click “Advantech DAQ” item. Chapter 3 8.
10. Select “ADAM5051” and then click “Add”. 11. Select “0” for “Board ID”. Set “0” to “Start Address” and then click “OK”.
Chapter 3 12. Click “Create All Input Variables” and then click “OK”. Quick Start 13. Click “Output” folder. Select “ADAM5056” and then click “Add”.
14. Select “1” for “Board ID”. Set “0” to “Start Address” and then click “OK”. 15. Click “Create All Input Variables” and then click “OK”.
Chapter 3 16. Double click “main” and graphical worksheet will be shown. Quick Start 17. Click on the graphical editor and ladder objects will be activated.
18. Add a contact network. 19. Double click “C000”.
Chapter 3 20. Dialog box of “Contact/Coil Property” will be shown. Quick Start 21. Click “Global scope”. Select “In_ADAM5051_0_0” and then click “Apply”.
22. “Common” folder will be shown. Click “Contact” folder. 23. Click “Global”. Select “ADAM5051_B00C000_I” and then click “Apply”.
Chapter 3 24. Click “OK”. Quick Start 25. Double click “C001”.
26. Click “Global”. Select “ADAM5056_B01C000_O” and then click “Apply”. 27. Click “OK”.
Chapter 3 28. Back to graphical editor. Quick Start 29. Right click “Resource: ADV_CE” and then click “Settings”.
30. Type IP Address of ADAM-5560KW as “192.168.1.5”. 31. Click “Make” to build the execution file. Check the project has been compiled successfully.
Chapter 3 32. Click “Project Control Dialog” and then click “Download”. Quick Start 33. Check “Include boot project” and then click “Download”.
34. Downloading execution file to ADAM-5560KW. 35. Click “Cold” to execute a cold start. During a cold start all data are initialized.
Chapter 3 36. Click “Debug On/Off” to turn on the debug function. The ADAM-5560KW is running correctly when you see the status bar turns green color. You can see the DI0 and DO0 are turned blue color. It means the state is FALSE. Quick Start 37. When you change the state of ADAM-5051D CH0 as ON, ADAM-5056 CH0 turns ON correctly. The DI0 and DO0 on graphical editor are turned red color too. It means the state is TRUE.
38. Finish the test project and do not forget to save it properly.
ADAM-5050 is one of mix digital input/output module and each channel can be independently configured to be an input or an output channel by the setting of its DIP switch (Please refer the user manual of ADAM-5000 IO Module to get more detail). For the ADAM-5050 configuration in MultiProg KW, we define it as an output module only. The IO address will show as %QX by channel. Chapter 3 3.
ADAM-5560 Series User Manual 60
Chapter 4 4 Modbus Functions
4.1 Introduction The Modbus functions of ADAM-5560KW Controller are powerful features which provide high expansibility and flexibility for user’s applications. The supported modbus functions include following items. Modbus/RTU Master Function: Connect to Modbus/RTU remote I/O modules such as Modbus modules of ADAM-4000 series. Modbus/TCP Client Function: Connect to Modbus/TCP remote I/O modules such as ADAM-6000 series. Modbus/TCP Server Function: Connect to HMI/SCADA software via Ethernet port. 4.
[PAC Device] Run ADAM.NET utility by clicking “Start” -> “Programs” -> “Advantech” -> AdamNET Utility. 2. [PAC Device] Select “ADAM5000TCP_6000” item. Modbus Functions 1. Chapter 4 4.2.
3. [PAC Device] Click “Search” button. 4. [PAC Device] Click “192.168.1.12” item and then “6050” item will show.
6. [PAC Device] Enter “00000000” and then click “OK” button. Modbus Functions [PAC Device] Click “6050” item to see the channel setting. Chapter 4 5.
7. [PAC Device] Check ADAM-6050 DI bit 0 is OFF. 8. [PAC Device] Turn on ADAM-6050 DI bit 0 and make sure the status is ON in the utility.
[PAC Device] ADAM-6050 setting is correct. Exit from the ADAM.NET utility. Chapter 4 9. Modbus Functions 10. Open “Test.mwt” and follow the example in section 3.4.
11. Double-click “main” to show the program in graphical editor. 12. Double-click “Advantech_DAQ” to show the “I/O Configuration” dialog box.
69 ADAM-5560 Series User Manual Modbus Functions 14. Set Modbus Command: “1X”, Slave ID: 1, Slave IF: “192.168.1.12”, Data Type: “BOOL”, Start Address: “1”, No. of points: 12. Chapter 4 13. Click “MODBUSTCP” item and then click “Add” button.
15. Click “Create All Input Variables” then click “OK” button. 16. Click “Contact Network” button.
Chapter 4 17. Double-click “C002”. Modbus Functions 18. Click “Gloabal scope” folder.
19. Select “In_MBTCPDRV_0_1” and then click “Apply”. 20. Click “Contact” folder.
Modbus Functions 22. Check the setting is correct and then click “OK”. 73 Chapter 4 21. Select “MBTR_1X0001_BOOL_00” and then click “Apply”.
23. Double-click “C003”. 24. Select “ADAM5056_B01C001_0” and then click “Apply”.
Chapter 4 25. Check the setting is correct and then click “OK”. Modbus Functions 26. Click “Make” button to make the execution file.
27. Check compile result is correct. 28. Click “Project Control Dialog” and then click “Stop” and “Reset”.
Chapter 4 29. Click “Download” button. Check the “Include Bootproject” item and then click “Download” button to proceed with the download process. Modbus Functions 30. Execution file is downloading.
31. Click “Cold” to run the project. 32. Check the status of ADAM-6050 DI bit 0 and ADAM-5056D DO bit 1 are OFF.
Chapter 4 33. Turn on ADAM-6050 DI bit 0 and check the status of ADAM-5056D DO bit 1 is turned ON correctly. Modbus Functions 34. Save the project properly.
4.3 Modbus/RTU Master Function The Modbus/RTU master function is supported by COM1/COM2/COM4 RS-485 Ports of ADAM-5560 Series Controller. There are typical 128 I/O modules can be connected to each COM port. So far, there are 12 modules of ADAM-4000 Series support modbus protocol as following list. (Please refer to ADAM-4000 User’s Manual for latest support list.
Chapter 4 System Wiring: Modbus Functions COM4 Jumper Settings: Note! After changing the jumper settings, please reset the ADAM-5560 Series Controller.
RS-485 Port Pin Assignment: 1. [PAC Device] Run ADAM.NET utility by clicking “Start” -> “Programs” -> “Advantech” -> AdamNET Utility.
[PAC Device] Select “ADAM4000_5000” item. 3. [PAC Device] Select “COM4” and then click “Search” button. Chapter 4 2.
4. [PAC Device] Click “Start” button and “4018P” will be shown. 5. [PAC Device] Click “4018P” to see the module setting.
7. [PAC Device] Select “COM4” and then click “Adam Commander” button. Modbus Functions [PAC Device] Click “Data area” to check the reading of Channel 0 is correct. This channel will be used by following demonstration. Chapter 4 6.
8. [PAC Device] Input “#010” and click “Send”. Check the response of the CH0 reading is correct. 9. [PAC Device] Set the ADAM-4018+ to initial mode by changing the switch position to “Init” side and then resetting the module. The switch is at the left side of the module. After that, select “COM4” and then click “Search” button again.
Chapter 4 10. [PAC Device] Click “Start” and “4018(*)” will be shown. “*” represents the module is at initial mode. Modbus Functions 11. [PAC Device] Select “4018P(*)” and then change the Protocol setting to “Modbus”.
12. [PAC Device] Click “OK” to change the setting. 13. [PAC Device] Select “Data area” and check the CH0 reading. Click “WaveScan” to see the wavescan window.
Chapter 4 14. [PAC Device] Check CH0 reading and then close the window. Modbus Functions 15. [PAC Device] Set the ADAM-4018+ to normal mode by changing the switch position to “Normal” side and then resetting the module. After that, select “COM4” and then click “Search” and “Start” buttons.
16. [PAC Device] Click “4018P(01)” to see the module setting. 17. [PAC Device] Select “Data area” folder and check CH0 reading.
Chapter 4 18. [PAC Device] Select “COM4” and then click “Adam Commander”. Modbus Functions 19. [PAC Device] Change to “MODBUS” folder.
20. [PAC Device] Check the reading of CH0. The formula is (1215*1370) / 65536 = 25.4 ºC. 21. Open the “Test.mwt” project and then double-click “main”.
Chapter 4 22. Double-click “Advantech_DAQ”. Modbus Functions 23. Select “MODBUSRTU” and then click “Add” button.
24. Set COM: “COM4”, Modbus Command: “3X”, Slave ID: 1, Start Address: “1”, No. of points: 8, Data Type: “INT”. 25. Click “Create All Input Variables” and then click “OK”.
Chapter 4 26. Click “Edit Wizard” to see the function blocks. Modbus Functions 27. Find the “GT” Greater Than Function Block.
28. Add one “GT” function block. 29. Add one coil by clicking “Add Coil Right” button.
Chapter 4 30. Connect “C004” coil to “GT” output. Modbus Functions 31. Double-click the first input of “GT” function block.
32. Select “Global scope” folder. 33. Select “In_MBRTUDRV_769_772” and then click “Apply”.
99 ADAM-5560 Series User Manual Modbus Functions 35. Double-click on the second input of “GT” function block. Chapter 4 34. Select “MBR_3X0001_INT_769_I” to read CH0 of ADAM-4018+ module and then click “Apply”.
36. Type “1196” and then Click “Apply” and “OK”. 37. Check the setting “1196” is correct.
Chapter 4 38. Double-click “C004”. Modbus Functions 39. Select “ADAM5056_B01C002_O” to connect the “GT” function block output to ADAM-5056D DO bit 2. Click “Apply” and “OK”.
40. Click “Make” button to make the execution file. 41. Check compile result is correct.
Chapter 4 42. Click “Project Control Dialog” button and then click “Stop” and “Reset”. Modbus Functions 43. Click “Download” button. Check the “Include bootproject” item and then click “Download” to proceed with download process.
44. Project is downloading. 45. Click “Cold” button to run the project.
Chapter 4 46. Click “Debug on/off” button. Modbus Functions 47. Check the reading of ADAM-4018+ CH0 is “1088” which is less than “1196”. The ADAM-5056D DO CH2 is OFF.
48. Heating the thermocouple of ADAM-4018+ CH0. When the reading is greater than “1196”, the ADAM-5056D DO CH2 will turn ON. 49. Save the project for following demonstration.
ADAM-5560 Series Controller supports Modbus/TCP server function for connecting to HMI/SCADA software. The Modbus/TCP server function is supported by using Ethernet port of ADAM-5560 Series Controller. 4.4.1 Modbus Address Mapping I/O Address Modbus Address %mw3.0 42001 %mw3.2 42002 %mw3.4 42003 ... Since unit of mw3.0 is Byte, users need to map the I/O Address and Modbus Address as following. For Bool data type: I/O Address Modbus Address Length Data 1 mw3.0.0 02001 1 Bit Data 2 mw3.0.
4.4.2 Example 1. Open the “Test.mwt” and add one “Move” function block. 2. “Move” function block will be shown on graphical editor.
4. Double-click output of “Move” function block. Modbus Functions Double-click the input of “Move” function block. Select “MBTR_1X0001_BOOL_00” (ADAM-6050 DI bit 0) and then click “Apply” and “OK”. Chapter 4 3.
5. Type “MB0X0001” and click “Apply” button. 6. Select “BOOL” for Data Type. Type “%mw3.0.0” for “I/O address” and then click “Apply” and “OK”.
8. Check compile result is correct. Modbus Functions Click “Make” button to make the execution file. Chapter 4 7.
9. Click “Project Control Dialog” button and then click “Stop”. 10. Click “Reset” button.
Chapter 4 11. Click “Download” button. Check the “Include bootproject” item and then click “Download” to proceed with download process. Modbus Functions 12. Project is downloading.
13. Click “Cold” to run the project. Click “Debug on/off” button to see the result. 14. Run Modbus/TCP Client utility Modscan and check the value of I/O address mw3.0.0 and Modscan I/O address 00001 are the same.
Chapter 4 15. Change the status of ADAM-6050 DI bit 0 to “1”. Check the values of I/O address mw3.0.0 and Modscan I/O address 00001 are all changed to “1”. Modbus Functions 16. Add one more “Move” function block for analog measurement.
17. Double-click the input of the 2nd “Move” function block. Select “MBR_3X0001_INT_769_I” (ADAM-4018+ CH0) and then click “Apply” and “OK”. 18. Double-click the output.
Chapter 4 19. Type “MB4X0001” and then click “Apply”. 117 ADAM-5560 Series User Manual Modbus Functions 20. Select “INT” for Data Type. Type “%mw3.2” for “I/O address” and then click “Apply” and “OK”.
21. Click “Make” button to make the execution file and check the compile result is correct. 22. Click “Project Control Dialog” button.
Chapter 4 23. Click “Stop” and “Reset” button. Modbus Functions 24. Click “Download” button. Check the “Include bootproject” item and then click “Download” to proceed with download process.
25. Project is downloading. 26. Click “Cold” to run the project . Click “Debug on/off” button to see the result.
Chapter 4 27. Run Modbus/TCP Client utility Modscan and check the values of I/O address mw3.2 and Modscan I/O address 40002 are the same. Modbus Functions 28. Save the project and the test is finished.
ADAM-5560 Series User Manual 122
Chapter 5 5 Network Functions
5.1 Web Server Functions ADAM-5560 Series Controller features built-in web server function of Windows CE 5.0. Before you using the web server function, please do follow the steps in section 7.1.1 to configure the basic settings properly. For monitoring and controlling the local I/O modules on ADAM-5560 Series Controller, the “Web5550” library, which is based on ISAPI extension, are useful. It has been pre-installed on the WinCE of ADAM-5560 Series Controller.
3. Gateway is resetting. Network Functions The NAS Admin page will be shown. Type in the password, for example, “admin” and then click “Apply”. Chapter 5 2.
4. Internet Explorer will connect to server automatically and ask to type the user name and password again. 5. Change the Device Name like “ADAM-5510-1” and then click “Apply”.
7. Type “admin” in “User” field. In following example, please type “admin” in “Password” field and then click “Apply New”. Network Functions Click “Add/Del Users” to change the password of user name “admin”, if necessary. Chapter 5 6.
8. The message “Add/Modify User Success” will be shown. 9. Run “Configuration Utility”.
Chapter 5 10. Click “Misc” folder. Network Functions 11. Change to “Misc” folder and “Web Server Root” will be modified. 12. User can put the developed web page in the specific folder in ADAM-5560 and link the webpage by change the Web Server Root.
13. Click “OK” to reboot the ADAM-5560.
131 ADAM-5560 Series User Manual Network Functions ADAM-5560 Series Controller features built-in FTP Server function of Windows CE 5.0. Before you using the FTP Server function, please do follow the steps as below to configure the basic settings properly. The default setting of FTP Server function in Windows CE 5.0 is disabled.
2. Click “Device Management”. 3. Click “Configure FTP Server”.
Enter the “FTP Server Configuration” page. 5. Check “FTP Server Enabled”, un-check “Allow Anonymous Users”, change “Default Directory” as “HardDisk\FTP”. Click “Submit” button. Chapter 5 4.
6. Click “Reboot” button. 7. After the ADAM-5560 was rebooted, following page will be shown again.
9. Wait for a moment for resetting. Network Functions Scroll down the page. Check the “Home Directory” for all users and then click “Submit” button. Chapter 5 8.
10. After resetting, following page will be shown again. The basic settings for FTP Server have been configured. 11. Right-click the mouse and then add a new directory “New Folder” under “HardDisk” directory of ADAM-5560 Series Controller.
Chapter 5 12. Enter the name for the new folder as “FTP”. Network Functions 13. Enter “HardDisk\FTP” directory.
14. Add “Test FTP” directory. 15. Type “ftp://192.168.1.5” to login the FTP Server. You will see the warning message because anonymous login is not allowed now.
Chapter 5 16. Click “Login As” item to enter the user name and password. Network Functions 17. Login the FTP Server by username: user1 and password: “user1”.
18. The “Test FTP” directory can be accessed now. 19. Try to upload files onto FTP Server.
Chapter 5 20. Upload the directory of “OPC” onto FTP Server. Network Functions 21. Uploading process is proceeding.
22. The uploaded “OPC” directory will be shown. 23. Check the files under “OPC” directory in FTP client.
Chapter 5 24. Check the files under “OPC” directory on the ADAM-5560. Network Functions 5.3 Email Alarm Function There is an example for demonstrating how to send an email from ADAM-5560 Series Controller. Please refer to following info. 1. Open “AdvMailDemo.mwt”.
2. The function block is included by “AdvToolPack” library. Double-click “main” to see the function block. 3. Type the correct settings in the “Init” fields as below and try to run this example directly. Note! The sending email function is only supported by mail server via intranet within enterprise network. The free mail box cannot support the sending email function.
There is an example for demonstrating how to use the built-in SQL Server function on ADAM-5560 Series Controller. Please refer to following info. 1. Open “AdvSQLDemo.mwt”. Chapter 5 5.4 SQL Server Function Network Functions 2. Type to run this example directly.
SQL Function Block Reference: AdvSQL_Init Function: Initialize SQL mobile database. 1. Enable: (BOOL), Enable AdvSQL function blocks. 2. DataBaseName: (STRING), SQL mobile database name. 3. TableName: (STRING), SQL mobile database table name. 4. ColumnTotal: (INT), Total number of fields in SQL mobile database. Maximum number is 10. 5. PrimaryIndex: (INT) KEY Index of SQL mobile database. 6. ClearDataBase: (BOOL), Clear SQL mobile database.
Chapter 5 AdvSQL_SelectLastData 147 ADAM-5560 Series User Manual Network Functions Function: Read the last record from SQL mobile database. 1. Enable: (BOOL), Enable AdvSQL function blocks. 2. DataBaseName: (STRING), SQL mobile database name. Rreserved for handling more than one SQL mobile database in the future. 3. ColumnIndex: (INT), The column index in SQL mobile database. 4. ColumnName: (STRING), Name of SQL mobile database. 5. ValLength: (INT), Maximum length of data field. 6.
ADAM-5560 Series User Manual 148
Chapter 6 Miscellaneous Functions 6
6.1 Advantech Utilities There are four Advantech utilities which are pre-installed on ADAM-5560 Series Controller. The major functions are as below. Adam.NET Utility: CE version of ADAM Utility for configuring ADAM-5560 Series Local ADAM-5560 I/O Modules, ADAM-4000 Remote I/O Modules, ADAM-6000 and ADAM-5560/TCP Ethernet I/O Modules. Most of the functions are mentioned in Chapter 3 and Chapter 5. Configuration Utility: Configure Auto-startup Programs, Web Server Root Directory and Watchdog Timer, etc.
Enter “Control Panel”. 2. Run “Regional Settings”. Miscellaneous Functions 1. Chapter 6 6.
3. Click “User Interface Language” folder and select “Chinese (Taiwan)” item. 4. Click “OK” to finish the change.
Click “OK” to reboot the ADAM-5560. 6. The Language Interface has been changed correctly. ADAM-5560 Series User Manual Miscellaneous Functions 153 Chapter 6 5.
6.3 Example of Configuring Touch Screen 1. Run the “Touch Screen Config” utility. 2. Select COM port as COM3, for example.
4. Enter “Control Panel”. Miscellaneous Functions Click “OK” and reboot the ADAM-5560 system. Chapter 6 3.
5. Run “Stylus” to set the properties. 6. Click “Recalibrate” button.
8. Follow the instructions and use finger to press the target on the screen. 157 ADAM-5560 Series User Manual Miscellaneous Functions Follow the instructions and use finger to press the target on the screen. Chapter 6 7.
9. Follow the instructions and use finger to press the target on the screen. 10. Follow the instructions and use finger to press the target on the screen.
Miscellaneous Functions 12. Press “Enter” key to accept the new settings. 159 Chapter 6 11. Follow the instructions and use finger to press the target on the screen.
13. Click “OK” to finish the recalibration. 6.4 Save and Upload Project Source 1. Open a project and click “Program Control Dialog”.
3. The “Upload” button will be activated when project source code has been downloaded correctly. 161 ADAM-5560 Series User Manual Miscellaneous Functions Click “Download” button. Check the “Include Sources” item and then click “Download”. Chapter 6 2.
4. Click “Upload” button and then click “Project Source” to test uploading source function. 5. Click “OK” to proceed with uploading the project source.
Uploading project source has been finished. Chapter 6 6. 1. Click “Extras\Options” item. 163 ADAM-5560 Series User Manual Miscellaneous Functions 6.
2. Select “Trad. Chinese” item. 3. Click “Apply” and “OK” buttons.
Close Multiprog and then reload it. The Language Interface will change to Traditional Chinese correctly. Chapter 6 4.
ADAM-5560 Series User Manual 166
Chapter A A RS-485 Networks
A.1 RS-485 Networks EIA RS-485 is the industry’s most widely used bidirectional, balanced transmission line standard. It is specifically developed for industrial multi-drop systems that should be able to transmit and receive data at high rates or over long distances.
Chapter A Star Layout In this scheme the repeaters are connected to drop-down cables from the main wires of the first segment. A tree structure is the result. This scheme is not recommended when using long lines since it will cause a serious amount of signal distortion due to signal reflections in several line-endings. Figure A.2 Star Structure 169 ADAM-5560 Series User Manual RS-485 Networks Figure A.
Random This is a combination of daisychain and hierarchical structure. Figure A.3 Random structure A.3 Line Termination Each discontinuity in impedance causes reflections and distortion. When a impedance discontinuity occurs in the transmission line the immediate effect is signal reflection. This will lead to signal distortion. Specially at line ends this mismatch causes problems. To eliminate this discontinuity, terminate the line with a resistor. Figure A.
Chapter A Example: Each input of the receivers has a nominal input impedance of 18 k feeding into a diode transistor- resistor biasing network that is equivalent to an 18 k input resistor tied to a common mode voltage of 2.4 V. It is this configuration, which provides the large common range of the receiver required for RS-485 systems! (See Figure D-5 below). RS-485 Networks Figure A.5 Termination Resistor Locations Because each input is biased to 2.
A.4 RS-485 Data Flow Control The RS-485 standard uses a single pair of wires to send and receive data. This line sharing requires some method to control the direction of the data flow. RTS (Request To Send) and CTS (Clear To Send) are the most commonly used methods. Figure A.6 RS-485 Data Flow Control with RTS Intelligent RS-485 Control ADAM-4510 and ADAM-4520 are both equipped with an I/O circuit which can automatically sense the direction of the data flow.
Chapter B B Grounding Reference
B.1 Field Grounding and Shielding Applications Unfortunately, it’s impossible to finish a system integration task at one time. We always meet some trouble in the field. A communication network or system isn’t stable, induced noise or equipment is damaged or there are storms. However, the most usual issue is just simply improper wiring, ie, grounding and shielding. You know the 80/20 rule in our life: we spend 20% time for 80% work, but 80% time for the last 20% of the work.
Grounding is one of the most important issues for our system. Just like Frame Ground of the computer, this signal offers a reference point of the electronic circuit inside the computer. If we want to communicate with this computer, both Signal Ground and Frame Ground should be connected to make a reference point of each other’s electronic circuit.
B.2.3 Normal Mode and Common Mode Have you ever tried to measure the voltage between a live circuit and a concrete floor? How about the voltage between neutral and a concrete floor? You will get nonsense values. ‘Hot’ and ‘Neutral’ are just relational signals: you will get 110VAC or 220VAC by measuring these signals. Normal mode and common mode just show you that the Frame Ground is the most important reference signal for all the systems and equipments. Figure B.
B.2.5 Single Point Grounding Figure B.7 Single Point Grounding (1) What’s Single Point Grounding? Maybe you have had an unpleasant experience while taking a hot shower in Winter. Someone turns on a hot water faucet somewhere else. You will be impressed with the cold water! The bottom diagram above shows an example of how devices will influence each other with swift load change. For example, normally we turn on all the four hydrants for testing.
Figure B.8 Single Point Grounding (2) The above diagram shows you that a single point grounding system will be a more stable system. If you use thin cable for powering these devices, the end device will actually get lower power. The thin cable will consume the energy. B.3 Shielding B.3.1 Cable Shield Figure B.9 Single Isolated Cable Single isolated cable The diagram shows the structure of an isolated cable. You see the isolated layer which is spiraled Aluminum foil to cover the wires.
Chapter B Double isolated cable Figure 10 is an example of a double isolated cable. The first isolating layer of spiraled aluminum foil covers the conductors. The second isolation layer is several bare conductors that spiral and cross over the first shield layer. This spiraled structure makes an isolated layer for reducing external noise. Additionally, follow these tips just for your reference. The shield of a cable cannot be used for signal ground.
B.3.2 System Shielding Figure B.11 System Shielding Never stripping too much of the plastic cable cover. This is improper and can destroy the characteristics of the Shielded-Twisted-Pair cable. Besides, the bare wire shield easily conducts the noise. Cascade these shields together by soldering. Please refer to follow- ing page for further detailed explanation. Connect the shield to Frame Ground of DC power supply to force the conducted noise to flow to the frame ground of the DC power supply.
Chapter B Shield connection (1) If you break into a cable, you might get in a hurry to achieve your goal. As in all electronic circuits, a signal will use the path of least resis- tance. If we make a poor connection between these two cables we will make a poor path for the signal. The noise will try to find another path for easier flow. Figure B.14 System Shielding (2) Shield Connection (2) The previous diagram shows you that the fill soldering just makes an easier way for the signal.
B.4 Noise Reduction Techniques Isolate noise sources in shielded enclosures. Place sensitive equipment in shielded enclosure and away from computer equipment. Use separate grounds between noise sources and signals. Keep ground/signal leads as short as possible. Use Twisted and Shielded signal leads. Ground shields on one end ONLY while the reference grounds are not the same. Check for stability in communication lines. Add another Grounding Bar if necessary.
Chapter C C Reference Documents
Following resources are helpful for understanding how to use Multiprog Software and IEC-61131-3 programming languages. C.1 Reference Documents Multiprog Quick Start Manual Multiprog User’s Manual Mulitprog On-line Help ADAM-5550KW Series User’s Manual (under Advantech Multiprog CD-ROM “Documentation” directory) ADAM-5000 I/O Module User”s Manual (under Advantech Multiprog CD-ROM “Documentation” directory) C.
Chapter C Reference Documents 185 ADAM-5560 Series User Manual
www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd.