ISPSoft User Manual

ISPSoft User Manual ISPSoft User Manual

02.09.2014 Views

Chapter 4 Quick Start Table of Contents 4.1 Quick Start.................................................................................................4-2 4.1.1 Example .............................................................................................4-2 4.1.2 Hardware............................................................................................4-2 4.1.3 Program .............................................................................................4-2 4.2 Procedure for Creating a Project in ISPSoft ..............................................4-3 4.3 Creating a Project......................................................................................4-3 4.4 Hardware Configuration.............................................................................4-4 4.4.1 Configuring a Module .........................................................................4-4 4.4.2 Setting the Parameters in a CPU Module and a Module ....................4-6 4.5 Creating a Program ...................................................................................4-8 4.5.1 Adding a Ladder Diagram ..................................................................4-9 4.5.2 Basic Editing─Creating a Contact and a Coil ...................................4-10 4.5.3 Basic Editing─Inserting a Network and Typing an Instruction ..........4-13 4.5.4 Basic Editing─Selection of a Network and Operation.......................4-15 4.5.5 Basic Editing─Connecting a Contact in Parallel...............................4-17 4.5.6 Basic Editing─Editing a Comment....................................................4-18 4.5.7 Basic Editing─Inserting an Applied Instruction.................................4-19 4.5.8 Basic Editing─Creating a Comparison Contact and Typing a Constant .........................................................................................................4-21 4.5.9 Writing a Program ............................................................................4-22 4.5.10 Checking and Compiling a Program.................................................4-23 4.6 Testing and Debugging a Program..........................................................4-24 4.6.1 Creating a Connection......................................................................4-24 4.6.2 Downloading a Program and Parameters ........................................4-27 4.6.3 Connection Test ...............................................................................4-29 4-1

ISPSoft User Manual 4.1 Quick Start The chapter provides a simple example, and leads users to create a traditional ladder diagram in ISPSoft in a short time. However, in order to help users who are not familiar with IEC 61131-3 understand the functions provided by ISPSoft, and create a traditional ladder diagram, programming concepts related to IEC 61131-3 are not introduced in this chapter. For example, POUs, function blocks, variables, and etc. are not introduced. The concepts related to IEC 61131-3 will be introduced in the following chapters. 4.1.1 Example When the equipment operates, the parts on the conveyer are conveyed from left to right. If a sensor senses that a part is under an injector, the PLC will send a trigger signal to the injector, and the injector will injects the glue. How long the part will be injected is set externally, and is not controlled by the program in the PLC. However, the program in the PLC must be able to turn the trigger signal OFF so that the trigger signal can be sent next time. There are two injectors above the conveyer, and the two injectors inject glue in the same way. Besides, there is a sensor at the left side of the conveyer. When a part passes the sensor, the sensor value increases by one increment. If the sensor value is 100, the internal completion flag will be set to ON. The state of the flag can be used by other procedures later. However, the use of the state of the flag is not introduced in this example. 4.1.2 Hardware In this example, the AH500 series CPU module used is AHCPU530-EN, the digital I/O module used is AH16AP11R-5A, and the main backplane used is AHBP04M1-5A. The table below is an I/O allocation table. Type ID Description Digital input X0.0 START button Digital input X0.1 STOP button Digital input X0.2 In position sensor 1 Digital input X0.3 In position sensor 2 Digital input X0.4 Counting sensor Digital output Y0.0 Conveyer Digital output Y0.1 Trigger signal for injector 1 Digital output Y0.2 Trigger signal for injector 2 4.1.3 Program (1) When the START button (X0.0) is turned from OFF to ON, the internal operation flag is set to ON, and the conveyer (Y0.0) starts to run. When the STOP button (X0.1) is turned from OFF to ON, an error occurs (the error flag is ON), the operation flag is reset to OFF, and the conveyer stops running. 4-2

<strong>ISPSoft</strong> <strong>User</strong> <strong>Manual</strong><br />

4.1 Quick Start<br />

The chapter provides a simple example, and leads users to create a traditional ladder diagram in<br />

<strong>ISPSoft</strong> in a short time. However, in order to help users who are not familiar with IEC 61131-3<br />

understand the functions provided by <strong>ISPSoft</strong>, and create a traditional ladder diagram, programming<br />

concepts related to IEC 61131-3 are not introduced in this chapter. For example, POUs, function<br />

blocks, variables, and etc. are not introduced. The concepts related to IEC 61131-3 will be<br />

introduced in the following chapters.<br />

4.1.1 Example<br />

When the equipment operates, the parts on the conveyer are conveyed from left to right. If a sensor<br />

senses that a part is under an injector, the PLC will send a trigger signal to the injector, and the<br />

injector will injects the glue. How long the part will be injected is set externally, and is not controlled<br />

by the program in the PLC. However, the program in the PLC must be able to turn the trigger signal<br />

OFF so that the trigger signal can be sent next time. There are two injectors above the conveyer,<br />

and the two injectors inject glue in the same way.<br />

Besides, there is a sensor at the left side of the conveyer. When a part passes the sensor, the<br />

sensor value increases by one increment. If the sensor value is 100, the internal completion flag will<br />

be set to ON. The state of the flag can be used by other procedures later. However, the use of the<br />

state of the flag is not introduced in this example.<br />

4.1.2 Hardware<br />

In this example, the AH500 series CPU module used is AHCPU530-EN, the digital I/O module used<br />

is AH16AP11R-5A, and the main backplane used is AHBP04M1-5A. The table below is an I/O<br />

allocation table.<br />

Type ID Description<br />

Digital input X0.0 START button<br />

Digital input X0.1 STOP button<br />

Digital input X0.2 In position sensor 1<br />

Digital input X0.3 In position sensor 2<br />

Digital input X0.4 Counting sensor<br />

Digital output Y0.0 Conveyer<br />

Digital output Y0.1 Trigger signal for injector 1<br />

Digital output Y0.2 Trigger signal for injector 2<br />

4.1.3 Program<br />

(1) When the START button (X0.0) is turned from OFF to ON, the internal operation flag is set to<br />

ON, and the conveyer (Y0.0) starts to run. When the STOP button (X0.1) is turned from OFF to<br />

ON, an error occurs (the error flag is ON), the operation flag is reset to OFF, and the conveyer<br />

stops running.<br />

4-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!