Chapter 1 Introduction Table of Contents 1.1 1.2 1.3 Manuals.....................................................................................................1-2 System Frameworks..................................................................................1-3 Operation of the CPU module ...................................................................
A H 5 00 Q uick Star t 1.1 Manuals Delta Electronics, Inc. provides users with the manuals related to the AH500 series programmable logic controllers according to different application requirements. AH500 Hardware Manual: It introduces hardware specifications, addressing, wiring, maintenance, troubleshooting, and etc. AH500 Operation Manual: It introduces the configuration of the hardware, the setting of the connection, the operation of the CPU module, the setting of the software, and etc.
Ch ap te r 1 In tro duc tio n 1.2 System Frameworks The AH500 series programmable logic controller is a medium type of programmable logic control system. The execution speed and the memory capacity are increased. Besides, the complete program development function of function blocks is supported. In order to meet users’ more advanced application requirements, the AH500 series programmable logic controllers provide more flexible system extension frameworks.
A H 5 00 Q uick Star t The configuration is as follows.
Ch ap te r 1 In tro duc tio n System framework: Rack 1~rack 8+RTU modules Remote I/O ... . . . . . . . 7 backplanes . . . . . 7 backplanes Note: Users are provided with the special cables to connect the extension backplanes. The length of a special cable can be up to 100 meters. They are also provided with the fiber cables which are used with the special adapters. The length of a fiber cable can be up to 2 kilometers.
A H 5 00 Q uick Star t System planning 1 Concentration point Concentration point Serial communication module Master Rack 2 (eight-slot main backplane) Remote master Digital input module Analog output module Power supply Digital output module Digital output module Digital output module Analog input module Analog input module Analog input module Digital input module Digital input module Digital input module Digital input module Digital input module Network module CPU module Power supply Eight r
Ch ap te r 1 In tro duc tio n System planning 2 Slave 1 Master Control panel Control panel Over 100 meters Concentration point Concentration point Sixty-three racks at most Slave 1 (The remote I/O system is Rack 1 (eight-slot main backplane) in use.
A H 5 00 Q uick Star t System planning 3 Control panel Control panel 設備集中區 設備集中區 Concentration point Slave 1 Slave 2 Slave 3 Control panel Control panel Control panel Concentration point Control panel Master Control Panel Slave 1 Slave 2 Slave 3 設備集中區 設備集中區 Concentration point Master Slave 1 Slave 2 Slave 3 Slave 1 Slave 2 Slave 3 Note: The remote masters in DeviceNet are the network modules. They have to be installed with the CPU modules on the same backplane.
Ch ap te r 1 In tro duc tio n extension backplanes at most. 1.3 Operation of the CPU module The CPU module is the nucleus of the AH500 system. It is responsible for not only the execution of the logic program, but also the data exchange and the processing of the communication data. The relation between the AH500 system and the external devices are illustrated below.
A H 5 00 Q uick Star t The CPU module is supplied with power. The system enables the initialization. y The non-latched memory is initialized. y The user program is checked. y The parameters in the CPU module are checked. y The parameters in the module table are checked. y The module table in the CPU module is compared with the actual I/O configuration. y The I/O setting is downloaded to the I/O module. y If the memory card is installed, whether to execute the system copy procedure or not is checked.
Chapter 2 Programming Table of Contents 2.1 Preparations ..............................................................................................2-2 2.1.1 Hardware............................................................................................2-2 2.1.2 Software .............................................................................................2-3 2.1.3 Tools and Materials ............................................................................2-3 2.2 Installation ..........
A H 5 00 Q uick Star t 2.1 Preparations 2.1.1 Hardware The hardware needed in the example is as follows. 1. Eight-slot main backplane AHBP08M1-5A x 1 POWER 2. CPU I/O0 I/O1 I/O2 I/O3 3. Power supply module AHPS05-5A x 1 PS05 PO WER I/O4 I/O5 I/O6 I/O7 CPU module (with the built-in network function) AHCPU530-EN x 1 C PU5 3 0-EN RU N ERR OR BU S FAUL T SYST EM COM VS Ether net VS NC FG USB LG COM N INPUT L 4. Digital input module (16 inputs) AH16AM10N-5A x 1 16AM10N 5.
Ch ap te r 2 Prog ramming 6. Analog input/output module (6 channels) AH06XA-5A x 1 06XA RUN E RRO R V0 V0 R0 V1 V1 R1 AI V2 V2 R2 V3 V3 R3 V0 I0 AO CO M V1 I1 ZP UP FE 1 0V, 2 0m A 1 0V,0 /4 ~ 20 m A 2.1.2 Software The software needed in the example is as follows. z ISPSoft version 2.0 or above z COMMGR version 1.0 or above 2.1.3 Tools and Materials The tools and the materials need in the example are as follows.
A H 5 00 Q uick Star t 1. 2. Insert the projection under the module into the hole in the backplane. Push the module in the direction indicated by the arrow until it clicks. 3. Tighten the screw on the module. 2.2.2 Installing Removable Terminal Blocks Please install the removable terminal block on the module, as illustrated below. z Installation 1. Level the terminal block at the printed circuit board, and press it into the module.
Ch ap te r 2 Prog ramming 2. Press the clip in the direction indicated by the arrow. z Removal 1. Pull the clip in the direction indicated by the arrow. 2. Pull up the clip.
A H 5 00 Q uick Star t 3. The terminal block is removed. 2.3 Wiring After the modules are installed, the wiring of the modules follows. In order for the following example to proceed smoothly, the power supply module and the analog module have to be wired. Be sure to cut off the power supply before wiring the modules. To lend convenience and reality to the simulation, the signal lines can be connected to the switch and the bulb according to the personal needs. The rough framework is as follows.
Ch ap te r 2 Prog ramming The wiring of the modules is described in detail below. (Please refer to AH500 Hardware Manual for more information.) 2.3.1 z z z z z z Wiring the Power Supply Module The alternating-current input voltage is within the range between 100 V AC and 240 V AC. Please connect the power supply to the terminals L and N. If the 110 V AC or the 220 V AC power supply is connected to the input terminals VS+ and VS-, the PLC will be damaged.
A H 5 00 Q uick Star t ④ ⑤ ⑥ ⑦ Alternating-current power supply: 100~240 V AC, and 50/60 Hz Circuit breaker Emergency stop: The emergency stop button can be used to cut off the power when an emergency occurs. Power indicator AC power load Fuse (2A) The ground impedance is less than 100 Ω.
Ch ap te r 2 Prog ramming 2.3.2 Wiring the Digital Input Module The input signal is the direct-current power input. Sinking and sourcing are current driving capabilities of a circuit. They are defined as follows. z Sinking z Sourcing 2.3.3 Wiring the Digital Output Module The output unit can be the relay output, the transistor output, or the TRIAC output.
A H 5 00 Q uick Star t 2.3.4 Wiring the Analog Input/Output Module AG Voltage input -10 V~+10 V CH0 *3 V0+ I0+ 1M 1M VI0Shielded cable*1 CH0 250 *6 SG AG Current input CH3 -20 mA~+20 mA V3+ *2 1M 250 VI3Shielded cable*1 *6 SG Voltage output -10 V~+10 V An AC motor drive, a recorder, a proportioning valve... CH0 VO0 *5 CH0 IO0 Shielded cable*4 AG *6 SG Current output AG CH1 0 mA~20 mA An AC motor drive, a recorder, a proportioning valve...
Ch ap te r 2 Prog ramming normal phenomenon which can be ignored temporarily. 2.4 Exemplification After the hardware is installed, the wiring of the modules is complete, and the CPU module is supplied with power, users can write the program. In order for users to have a precise object and direction, the manual provides users with an example before they write the program. The manual teaches users how to create a new project and how to download the program to the CPU module step by step.
A H 5 00 Q uick Star t 3. 4. A pump The pump is installed near the underground pool. However, the device to which the PLC actually connects is not the pump but the control panel. Generally speaking, three digital inputs and one digital output are connected to the digital input/output module. (Remote control x 1 (DI) & Run x 1 (DI) & Trip x 1 (DI) & Start x 1 (DO)) A level meter The level meter is installed in the underground pool, and the signal contact is connected to the analog input module.
Ch ap te r 2 Prog ramming Next, the environment of the project is displayed, and the project name SPW appears in the upper left corner. The operation interface of the software: n Function area: The main functions of the software are in this area. Many functions which are frequently used are placed on the toolbar, and other functions are placed on the menus. o Project management area: The framework of the project is displayed in this area.
A H 5 00 Q uick Star t 2.6 Hardware Configuration After the project is created, users can configure the hardware. Suppose the configuration is as follows. z Digital input module 16AM10N-5A/16AM30N-5A (16 inputs)ÆX0.0~X0.15 z Digital output module 16AN01R-5A/16AN01T-5A/16AN01P-5A/16AN01S-5A (16 outputs) ÆY0.0 ~ Y0.15 z Four-channel analog input module AH06XA-5AÆD0~D7 z Two-channel analog output module AH06XA-5AÆD100~D103 z The water level inside the underground pool is low.ÆX0.
Ch ap te r 2 Prog ramming Double-click the CPU module to open the PLC Parameter Setting window. Type “SPW PLC” in the Name box, and then type “The example in AH500 Quick Start” in the Comment box. Finally, click OK, and close the window. User can begin to place the modules. First, find the first module which is needed, that is, AH16AM10N-5A, in the product list. Then, drag the module to I/O 0 and drop it.
A H 5 00 Q uick Star t addresses to the module. The default addresses are X0.0~X0.15. They exactly meet the need, and therefore they do not need to be modified. If they do not meet the need, users can click the column to modify the addresses. Users can drag AH16AN01R-5A to I/O 1 and drop it. The addresses are Y0.0~Y0.15.
Ch ap te r 2 Prog ramming Users can drag AH06XA-5A to I/O 2 and drop it. The input device range is D0~D7, and the output device range is D100~D103. (The default output device range is D8~D11. Please remember to modify it.) In addition to specifying the input device range and the output device range, users also have to specify the version of the firmware for the analog input/output module. Please select the version of the firmware according to the version of the firmware in the module.
A H 5 00 Q uick Star t The voltages of the signals are 0 V~10 V. The conversion values are 0.0 and 10.0. Click OK. After the hardware configuration is complete, please save the file and exit.
Ch ap te r 2 Prog ramming 2.7 Creating Global Symbols In order to make the program more readable and the connection with the SCADA system more convenient, the I/O addresses are accompanied with the global symbols. Users can use the symbols when they write the program. The global symbol table also supports import and export. As to the system equipped with many inputs and outputs, users can use Microsoft Excel to make the editing more convenient. The global symbols created are as follows.
A H 5 00 Q uick Star t Users can see a new piece of data. Users can create the global symbols for the data in the table above in the same way. (For the analog module, the data type is a real floating-point number. Therefore, the symbol occupies two data registers, and the address in the Address box is the initial address.) 2.8 Creating Function Blocks The procedure in this example is to create a function block first. Users also can create the main program first.
Ch ap te r 2 Prog ramming Type “FB_SPP_Sys” in the POU Name box, and then type “Supply Water Pump Control Function” in the POU Comment box. Finally, click OK. Users can see the FB_SPP_Sys window on the main screen. Users need to create the local symbols. In order to make the use of the function block more convenient, the system automatically distributes the addresses to the module, and users are not allowed to type the addresses by themselves.
A H 5 00 Q uick Star t VAR_INPUT When the program is executed, the value of the external variable is brought into the internal variable. If the value of the corresponding internal variable is altered, it is not transmitted to the external variable. VAR_INPUT is often used if the value of the external variable should not be modified. Most of inputs in this example are digital inputs, and these inputs should not be modified.
Ch ap te r 2 Prog ramming Users can begin to write the program in the function block. In order to improve the convenience of scanning the program, users are recommended to write the comments. If users want to write the . network comments, they have to click Type the following description as the comment on network 1. If users want to start a new line of text at a specific point, they can press Alt+Enter on the keyboard. Users can begin to edit the program code.
A H 5 00 Q uick Star t Click ???, and type “Pump_Remote”. When “Pump_Remote” is typed, the drop-down list appears. Users can select the item directly, or type the words by themselves. After “Pump_Remote” is typed, press the enter key. (If the address appears, users can click to switch the mode. In either mode, users can use the words or the addresses when they write the program.) Users can write the following program in the same way.
Ch ap te r 2 Prog ramming To meet the condition that there is water in the underground pool and no water in the water tower, the state of Tank_R_LSW should be OFF. Users can double-click the contact marked “Tank_R_LSW”, and the drop-down list appears. Select “Normally Closed”. Please click , and then move the mouse to the red frame.
A H 5 00 Q uick Star t Click ???, and type “Pump_Out”. Users can double-click the coil marked “Pump_Out”, and the drop-down list appears. Select “Set”. Please click , to add a new network. Users can write the following program in the same way.
Ch ap te r 2 Prog ramming To meet the condition that there is no water in the underground pool, or the condition that the pump , and move the mouse to the position under a contact. When trips, users need to click appears, users can click the left mouse button. Then, users need to click ???, and type “Tank_B_LSW”. Finally, users can double-click the coil marked “Tank_B_LSW”. When the drop-down list appears, select “Set”. Users can write the following program in the same way.
A H 5 00 Q uick Star t So far the automatic program control is complete. Please write the following program in the same way. Finally, users need to save the file, and the function block is created.
Ch ap te r 2 Prog ramming 2.9 Creating Main Programs After the function block is created, users can create the main program. Right-click window at the left side of the main screen of the software to add a new POU. in the Type “Prog_Main” in the POU Name box, and then type “Main program” in the POU Comment box. Finally, click OK.
A H 5 00 Q uick Star t Users can see the Prog_Main window on the main screen. The difference between the function block and the main program is that the function block has to be called before it is executed while the main program is executed directly. The creation of the local symbols for the main program is omitted in this example. Please write the following program by means of the skills learned previously. Users can prepare to call the function block. First, click to open the API/FB window.
Ch ap te r 2 Prog ramming After the function block interface appears, type the identifiers as shown below. Users need to create a data block for the function block. The data block can be created as a global symbol or a local symbol, but it is created as a local symbol in the main program here. Notice that users need to select Function Block in the Type Class box, and select “FB_SPP_Sys” in the Type box.
A H 5 00 Q uick Star t not only the function of checking the syntax, but also the function of compiling all programs and the contents of the function block. Note: In order to help users understand the control program, the example provided here is simple. The actual control program is much more complex because the functions related to judging the start failure and the conversion from the local control to the remote control have to be taken into account.
Ch ap te r 2 Prog ramming consider that the value of VAR_OUTPUT and that of VAR of in the first system does not affect those in the second system. Otherwise, please create a new identifier for the second system, as shown below.
A H 5 00 Q uick Star t MEMO 2-34
Chapter 3 Downloading and Monitoring the Program Table of Contents 3.1 Setting COMMGR .....................................................................................3-5 3.1.1 Enabling COMMGR............................................................................3-5 3.1.2 Opening the COMMGR Window ........................................................3-5 3.1.3 Setting the Communication ................................................................3-5 3.2 Downloading the Program ..............
A H 5 00 Q uick Star t After the writing of the program is complete, users can prepare to download the program. In order to increase the functions and the convenience, the latest software package is divided into COMMGR and ISPSoft. In addition to preparing the hardware, supplying power to the CPU module, and installing the USB driver, users need to set the communication software to communicate with the CPU module.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am The path C:\Program Files\Delta Industrial Automation\ISPSoftx.xx\drivers\Delta_PLC_USB_Driver shown in the picture below is the folder where the software is installed. If the path is modified, please select the folder where the software will be installed.
A H 5 00 Q uick Star t After the software is installed, users can see the USB driver in the Device Manager window. (The COM number of the USB may vary from computer to computer.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am 3.1 Setting COMMGR 3.1.1 Enabling COMMGR After the software is installed, the shortcut for COMMGR automatically appears in the notification area in the operating system. Whenever the computer is turned on, users can see located at the far right of the taskbar. If users do not see the icon, they can enable the software manually. The shortcut to enabling the software is StartÆProgramsÆ Delta Industrial AutomationÆCommunicationÆCOMMGRÆCOMMGR. 3.1.
A H 5 00 Q uick Star t 3.2 Downloading the Program After the editing above is complete, users need to download the parameters and the program to the CPU module. In this example, the data which is downloaded to the PLC is the hardware configuration, the CPU parameters, and the program. 3.2.1 Setting the Communication After the setting of COMMGR is complete, users can set the communication in ISPSoft. First, find Communication Settings… on the Tools menu.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am 3.2.2 Downloading the Hardware Configuration The hardware configuration is downloaded first. Open the SPW-HWCONFIG window as shown below. After users click , the Transfer Items window will appear. After the users click OK, the hardware configuration and the CPU parameters will be downloaded to the CPU module.
A H 5 00 Q uick Star t If the CPU module which is actually connected is different from the setting in ISPsoft, the HWCNFIG window will appear. Users have to make sure that the CPU module which is actually connected is the CPU module to which the hardware configuration and the CPU parameters will be downloaded. After users click Yes, the hardware configuration and the CPU parameters will be downloaded to the CPU module.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am 3.3 Monitoring and Debugging the Program 3.3.1 Monitoring the Program When the program is executed, users can monitor the program to understand the current logical control state, or modify the values in some devices to test the system. The operation of the program monitoring is as follows. z Monitoring the program Open the Prog_Main window, and click . Not only the logic program, but also the information related to the devices is monitored.
A H 5 00 Q uick Star t After the system is tested, users have to cancel the setting so that the CPU module can return to normal. z Monitoring the device When the logical control is tested, the devices which have to be modified may be used in different programs. It is not convenient to find these devices in the programs and monitor them. Besides, users sometimes do not alter the value in a device for debugging. They alter the value for testing the external device.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am Type “SPP01_Table” in the Monitor Table Name box, and click OK. Users can right-click a blank area in the Monitor Table window, and then click Select Symbols. They can also double-click a blank area in the Monitor Table window to open the Device Monitor Input window. Click Select All, and then click Apply. Click Cancel, and then save the file. The device monitoring table is as follows.
A H 5 00 Q uick Star t Click . Owing to the fact that only devices are monitored and modified, users do not need a copy of the program. If users want to alter the value in the device, they can click the right mouse button. The state of SPP01_Man_SW is altered here. Owing to the fact that the device does not correspond to an actual I/O device, users can set the device to ON or OFF. After the state of SPP01_Man_SW is altered, users can get the following device monitoring table.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am 3.3.2 Debugging the Program and the System When the system operates, an error may occur, and the error LED indicator on a module may be ON. If an error occurs, and the error LED indicator is not ON, the error is a logic program error. If users follow the steps in the example, no error will occur. In order to demonstrate a system error, users are asked to turn off the 24 V DC power supply.
A H 5 00 Q uick Star t in all modules. In other words, for some modules, there may be no error log in the History box. Since no error occurs, users can close the Module Error Log window. Besides, users can find that the whole system returns to normal. Users can set the CPU module to STOP, and then set it to RUN. When the CPU module runs, the system and the screen of the software return to normal. Close the SPW-HWCONFIG window, and return to the main screen of ISPSoft.
Ch ap te r 3 Down lo ading a nd Mo nitor ing th e Pr ogr am As the picture below shows, the power supply is abnormal, and an error occurs when the analog data is converted into the digital data. If users want to delete the old error log, they can click Clear Log. After closing the software, users complete the operation illustrated in this example.
A H 5 00 Q uick Star t MEMO 3-16