plc编程软件学习教程(PLC programming software learning tutorials)
plc编程软件学习教程(PLC programming software learning
tutorials)
The sixth chapter programming software
Sixth chapters
6.1 6.2 6.3
programming software
Programming software installation function programming
Six point four
Debugging and operation monitoring
The sixth chapter programming software
Main contents of this chapter:
- programming software and install the software function of how to use programming software programmed with software debugging and operation monitoring of this chapter is the master PLC programming software program editing.
Return to the front page of this chapter
The sixth chapter programming software
Six point one
6.1.1
6.1.2 6.1.3 6.1.4 6.1.5 6.1.6
Programming software installation
system requirements
Software installation hardware connection parameter settings, online contact settings, modify PLC communication parameters
Return to the front page of this chapter
The sixth chapter programming software
6.1.1 system requirements
Operating system: Windows 95, Windows 98, Windows ME or Windows 2000 computer: IBM more than 486 compatible machines, memory more than 8MB, VGA display, at least 50MB hard disk space, Windows support mouse. Communication cable: PC/PPI cable (or using a communication processor card) to connect the computer to the PLC.
Return to this section
The sixth chapter programming software
6.1.2 software installation
STEP 7-Micro/WIN 32 programming software on a CD, the user can be installed according to the following steps: 1. Insert the CD-ROM into the CD-ROM drive. The system automatically enters the installation wizard, or click the "start" button to start the Windows menu. Click the "run" menu.
Complete the software installation according to the installation wizard.
At the end of the installation, the restart computer options will appear.
Return to this section
The sixth chapter programming software
6.1.3 hardware connection
The communication between personal computer and PLC can be established by using PC/PPI cable. This is the connection between a single host and a personal computer without any other hardware, such as modems and programming devices. Typical single host connections and CPU configurations are shown in Figure 6.1 below.
Return to this section
The sixth chapter programming software
6.1.4 parameter setting
After the software is installed and connected with the hardware, can verify the parameters according to the following steps: (1) in the default STEP 7-Micro/WIN 32 runtime communication or click icon from the menu select the option Communications View, is a communication dialog box appears. (2) double-click the icon of the PC/PPI cable in the dialog box, and the dialog box with the PG/PC interface will appear. See Figure 7.14 in the seventh chapter. (3) click the Properties button, and the interface property dialog box appears, as shown in figure 8.16. Check whether the attributes of the parameters are correct, in which the baud rate default value is 9600 Potter.
Return to this section
The sixth chapter programming software
6.1.5 online contact
The first few steps if successfully completed, it can be established with the SIMATIC S7200 CPU online contact, the steps are as follows: (1) in STEP 7-Micro/WIN 32, click the communication icon, or from the menu select the option Communications View, will be a result of the establishment of communication box, display is connected to the CPU host. (2) double-click the communication to create a refresh icon in the dialog box. STEP 7Micro/WIN 32 checks all the S7-200 CPU stations connected, and creates a CPU icon for each station. (3) double click the station to communicate, in the communication establishment dialog box can display the communication parameters of the selected station.
Return to this section
The sixth chapter programming software
6.1.6 settings modify PLC communication parameters
If you establish an online connection between the computer and the PLC, you can use software to check, set and modify the communication parameters of PLC. The steps are as follows: (1) click the system block icon in the boot bar, or select the System Block option in the View menu from the main menu,
The system block dialog will appear. (2) click the Port (s) tab. Check all the parameters and make sure that you click OK to confirm. If you need to modify some parameters, you can modify it first, then click the Apply button, and then click OK to confirm and exit. (3) Click icon in the download tool, can put the modified parameter is downloaded to the PLC host.
Return to this section
The sixth chapter programming software
Six point two
function
6.2.1 basic function 6.2.2 appearance 6.2.3 each part function 6.2.4 system configuration
Return to the front page of this chapter
The sixth chapter programming software
Basic functions of 6.2.1
Syntax checking in program editing can avoid errors in syntax and data types in advance. The error checking results of the ladder diagram and the statement table are shown in figure 6.2.
The sixth chapter programming software
The implementation of software function can be carried out online (online), and the implementation of some functions can also be done offline. On line: a computer or programmer with programming software is connected to the PLC, allowing direct communication between the two. Refer to section first of this chapter for online methods.
Offline mode: a computer or programmer with programming software is disconnected from the PLC, which can perform most of the basic functions at this time. Such as programming, compiling and debugging program, system configuration and so on.
Return to this section
The sixth chapter programming software
6.2.2 appearance
Start STEP 7-Micro/WIN 32 programming software, the main
interface appearance as shown in figure 6.3. The general interface can be divided into the following areas: (the menu contains 8 main menu items), tools (shortcut buttons), guide (quick operation window), instruction tree (Shortcut window), the output window and window (the user can be respectively or simultaneously open the 5 user window figure in the mouth).
The sixth chapter programming software
Figure 6.3
Programming software appearance
Return to this section
The sixth chapter programming software
Function of each part of 6.2.3
1. menu bar 2. tool bar 7. state chart 8. symbol table
3. guide bar
4. instruction tree
9. output window
10. state bar 11. programmer 12. local variable table
5. cross index
6. data block
Return to this section
The sixth chapter programming software
6.2.4 system configuration
1. digital input filtering
2. analog input filter 3. set pulse capture 4. output table
configuration
The sixth chapter programming software
1. digital input filtering
Figure 6.4 set the digital input filter
The sixth chapter programming software
2. analog input filtering
Figure 6.5 setting analog input filter
The sixth chapter programming software
3. set pulse capture
The method of setting the pulse capture function: first, set
the time of the input filter correctly so that the pulse can
not be filtered out. Then select the Pulse Catch Bit option in the System Block tab to select the digital input points required
to capture the input pulse, as shown in figure 6.6. The system defaults to no pulse capture for all points.
Figure 6.6
Set pulse capture
The sixth chapter programming software
4. output table configuration
Figure 6.7 set the output table (copy)
Return to this section
The sixth chapter programming software
Six point three
programming
6.3.1 program source 6.3.2 editor
Return to the front page of this chapter
The sixth chapter programming software
Source of 6.3.1 program
There are 3 sources of program files: open, top and new. 1. open and open a disk in the existing program files, you can use the menu File|Open, in the pop-up dialog box to select the open program file; can also be used in the toolbar Open button to complete. Figure 6.8 is an open program structure in the instruction tree window.
The program structure opened in Figure 6.8
The sixth chapter programming software
2. upload has already established communication with PLC premise, if you want to upload a PLC memory in the program file, you can use the menu File|Upload, can also be used in the toolbar Upload button to complete. 3. new build a program file, you can use the menu File|New, in the main window will show the new program file main program area; can also be used in the toolbar New button to complete. Figure 6.9 shows the instruction tree of a new program file. The default settings are as follows.
The sixth chapter programming software
Figure 6.9
Structure of new program
The sixth chapter programming software
The user can do the following operations according to the actual programming requirements:
(1) determine the host model
(2) rename the program
(3) add a subroutine
(4) add an interrupt program (5) edit program
Return to this section
The sixth chapter programming software
6.3.2 editing program
1. input programming element 2. complex structure 3. insert and
delete
4. piece operation
5. symbol table 6. local variable table 7. annotation 8.
language conversion 9. compilation
The sixth chapter programming software
Figure 6.10
Program
The sixth chapter programming software
1. input programming element
Method 1: using a series of instructions listed in the instruction tree window Instructions, double-click the instructions to be input, and then according to the type of instruction, the instructions are arranged in a number of sub directories, as shown in figure 6.10. Method 2: use a set of programming buttons on the toolbar, click contacts, coils or instruction box buttons, click the instructions from the drop-down menu in the pop-up window, and click the instructions you want to input. Button and pop-up window drop-down menu, as shown in Figure 6.11 and figure 6.12.
The sixth chapter programming software
Ascending line
Right line
Input coil
Down line
Left line
Input contact input instruction box
Figure 6.11
Programming button
Figure 6.12
drop-down menu
The sixth chapter programming software
Figure 6.13
Sequential input element
The sixth chapter programming software
2. complex structure
The ladder diagram of complex structure can be edited with the instruction button in the toolbar. The implementation in this example is shown in figure 6.14. Click the programming area below the first line of the graph, then display the small icon at the beginning of the next line of the line, and then enter the contact to generate a new line. When the input is finished, as shown in Figure 6.15, move the cursor to the point where you want to merge, and click the up line button.
The sixth chapter programming software
Figure 6.14
Freshmen travel
The sixth chapter programming software
Figure 6.15 upward merging
The sixth chapter programming software
3. insert and delete
Branch down cascade
Interrupt program subroutine
Figure 6.16
Insert delete
The sixth chapter programming software
4. piece operation
It is very convenient to delete, move and copy the program in large area by block operation. Block operations include block selection, block shearing, block deletion, block replication, and block pasting. These operations are very simple, and they are exactly the same as those in the general word processing software.
The sixth chapter programming software
5. symbol table
Figure 6.17 programming with a symbolic table
The sixth chapter programming software
Figure 6.18 symbol table
The sixth chapter programming software
6. local variable table
Figure 6.19 the use of the local variable table
The sixth chapter programming software
7. notes
The Network n in the ladder diagram editor marks each step, and at the same time it is the title bar, which can be used to add captions or necessary annotations for this step, so that the program is clear and readable. Methods: double-click the Network n area to pop up the dialog box shown in Figure 6.20, where you can type the title in the Title text box and type the note in the Comment text box.
The sixth chapter programming software
8. language translation
Software can be used to switch between three programming languages (editor). Methods: select the menu View item, and then click STL, LAD or FBD to enter the corresponding programming environment.
The sixth chapter programming software
9. compiler
Program editing is completed and can be compiled offline by menu PLC|Compile. When the compiler is finished, the output information is displayed in the output window.
The sixth chapter programming software
Figure 6.20 title and comment dialog box
Return to this section
The sixth chapter programming software
Six point four
Debugging and operation monitoring
6.4.1 select scan times 6.4.2 chart monitor, edit under 6.4.3 operation mode
6.4.4 program monitoring
Return to the front page of this chapter
The sixth chapter programming software
6.4.1 selected scan times
1. scan method: put PLC in STOP mode. Use the menu command
Debug|Multiple Scans to specify the number of scans executed, and then click the OK button to monitor. As shown in figure 6.21.
2. first scan
Placing PLC in STOP mode. Then use the menu command Debug|First Scan to do this.
The sixth chapter programming software
Figure 6.21
Perform multiple scans
Return to this section
The sixth chapter programming software
6.4.2 state chart monitoring
1. use status chart
Figure 6.22 status icon monitoring
The sixth chapter programming software
2. force a specified value (1) to force a range (2) to force a value (3) to read all mandatory operations (4) to terminate a mandatory operation
(5) lifting all mandatory operations
Return to this section
The sixth chapter programming software
Edit in 6.4.3 mode
The operating procedure (1) selects the menu Debug|Program Edit
in RUN
(2) pop up warning information on the screen
(3) download in run mode
(4) edit out of run mode
Return to this section
The sixth chapter programming software
6.4.4 program monitoring
1. ladder diagram monitoring
2. function block diagram monitoring
3. statement table monitoring
The sixth chapter programming software
1. ladder diagram monitoring
Figure 6.23
Ladder diagram monitoring
The sixth chapter programming software
2. function block diagram monitoring
Figure 6.24
Functional block diagram monitoring
The sixth chapter programming software
3. statement table monitoring
Figure 6.25
Statement table monitoring
Return to this section
The sixth chapter programming software
THANK YOU VERY MUCH!
This is the end of this chapter. Thank you for coming!
junction
beam
Return to the front page of this chapter
This TXT is provided by SkyDrive, a
本文档为【plc编程软件学习教程(PLC programming software learning tutorials)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。