51
http://youtu.be/dqKeHD5WNcc How to program and hardwire a typical PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel) http://youtu.be/0ADfFPOzIUE http://youtu.be/51oqLRxXcHk http://youtu.be/mJfT4z1oCeo

How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

  • Upload
    others

  • View
    33

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

http://youtu.be/dqKeHD5WNcc

How to program and hardwire a typical PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel) http://youtu.be/0ADfFPOzIUE

http://youtu.be/51oqLRxXcHk

http://youtu.be/mJfT4z1oCeo

Page 2: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

This part of document only provides brief definitions of the key terms and concepts that is just a part of the complete document. You may download the complete document from website just by clicking on:

Symbol if it is a PDF file. Symbol if it is a ZIP file.

. What is a “Human Machine Interface (HMI)” device? HMI stands for Human Machine Interface. This is the interface between the operator and the controller. The HMI is the controller operating panel. The panel comprises a numeric keypad and a LCD screen that displays text. The keypad is used to input data into the application, such as Timer values. The PLC's Display screen can show operator messages, variable information from the program and system information…. A typical HMI screen design software allow us to perform different functions to design different control screens. HMI messages are created in the Display Editor. Variable information fields are created in the Variable Editor. In general, most typical HMI screen design software allow us to perform following function easily: Creating and Naming a Display, Creating a fixed text Display, Creating Variables In this document, we are going to design 3 HMI sample screens to demonstrate how we may take advantage of PM Designer software to design simple yet beautiful screen for our PLC projects. Developing an HMI screen design for a 4 floor Elevator system Developing an HMI screen design to change connection configuration of a 3 phase electro motor Designing a continuous digital (variable frequency) pulse train Key terms discussed on the download file: Application of a 4 × LED indicators, 4 × push pushbuttons, Bit Lamp,4× LED indicators light,5× pushbuttons 4, 5 × Seven segment displays, Draw > Text to specify floor name and number, Bit Lamp to relate flag status, Numeric Display, inserting a triangle, Bit Lamp dialog box appear, numeric display, Numeric Display > drag and,

2

Page 3: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

picture at the background, Screen Properties dialog box, a continuous Digital Pulse train with a Variable Frequency, imaginary potentiometer, interpret the imposed voltage to generate a continuous Digital Pulse train with a Variable frequency, HMI display, analog voltage input to the PLC's A/D module, Frequency and Period, pulse train, HMI output instead of a potentiometer's output, analog input address, an INT value, is changed to a real one, input value is change to DINT variable delay time in milliseconds, PT expires, SFB4 TON IEC_TC timer instruction to the program.

3

Page 4: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Table of content

Human Machine Interface (HMI) .................................................................... 6 Installation of PanelMAster model PT070 LCD........................................... 7 Doing some primary setups ............................................................................ 8 Developing our first sample exercise ............................................................. 14 Developing an HMI screen design for a 4 floor Elevator system Developing our second sample exercise ........................................................ 23 Developing an HMI screen design to change connection configuration of a 3 phase elector motor Developing our third sample exercise ............................................................. 43 Designing a continuous digital (variable frequency) pulse train

4

Page 5: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Chapter 1

Human Machine Interface (HMI)

5

Page 6: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

What is a “Human Machine Interface (HMI)” device? In the “industrial design” field of, the “Human Machine Interface (HMI)” is the space where interaction between humans and machines occurs. The goal of interaction between a human and a machine at the user interface is effective operation and control of the machine, and feedback from the machine which aids the operator in making operational decisions. To work with a system, operators have to be able to control and assess the state of the system. For example, when operating an industrial machinery, the operator uses different pushbuttons to control the direction of “electro motors” or to control parameters such as temperature, pressure, velocity, angular speed of different moving sections of the machine .The “user interface of the machinery” is on the whole composed of the “instruments” the operator can use to accomplish the tasks of operating and maintaining the machinery visually. Human Machine Interfaces are devices that enable operators to check present condition of the operating machine, and if needed, impose changes in the operation of the machine at hand. For example, HMI Series Air Compressor Control System is a touch screen-based control system. As a new touch-screen human-machine interface, from the appearance of a concern, easy to use, powerful features and excellent stability make it well suited for industrial environments. The use of man-machine interface can clearly instruct and tell the operator the current status of machinery and equipment, allowing operation become simple, vivid, and can reduce operational errors, even if the novice can easily operate the machinery and equipment. As long as operator gently points, he can enter the interface he wants. To get information about parameters such as real-time data, tens of fault records, allowing the compressor to be used more efficient and stable. Usually, General Operators, simply input the required loading and unloading pressure can allow air compressor running, easy operation, and fast. To protect related data security, one can change the parameters, he need to enter a password to prevent other people to change parameters, resulting in unnecessary air compressor failures. To use an HMI device, usually, it has to be programmed before connected to a PLC. Different HMI manufactures have developed software to suitable to their devices. For example one can use SIMATIC WinCC software developed by Siemens AG to program MP 277 8 or 10 inch key or touch models. Other software such as LabVIEW EasyBuilder 8000, or PanelMaster are also among those could be used to program HMIs. Functionality of these software are very similar thus, one learns how to work with one, he usually should be able to use different for the same task. In this chapter, we are going to use PanelMaster software to program a product name PT070-WST which is a 7 inch HMI device and show the steps to be take to write few simple programs. LabVIEW (short for Laboratory Virtual Instrument Engineering Workbench) is a system design platform and development environment for a visual programming language from National Instruments. Engineers, scientists, and inventors across the world use NI LabVIEW software to make machines move, think, and do. EasyView ® is a registered trademarks of MKS instruments. http://www.lamonde.com/acatalog/Programming_Software.html

6

Page 7: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

EB8000 EasyBuilder Programming software on CD Contains both EB8000 version 3.4.5 for continuing support of existing projects, and latest version of EB8000 for completely new projects, including support for the built-in RS485 MPI 187.5K Siemens Interface. PanelMaster ® is a registered trademarks of Cermate Technologies INC. Installation of PanelMAster model PT070 LCD Touch Control Panel The first step to use the device, is to install it on a fixture, connect it to 24 V DC power source and to a PLC via a suitable cable as well as seen on figure 1.

Figure 1 But you have to program the device (from now on, the word "device" means HMI display panel device) first and after that done, you can connect it to a PLC and use it. PanelMaster has developed a software name "PM Designer" which is "free" and can be downloaded from "internet" to be used to program the device. Now let's take a look to see how to use "PM Designer" to program the device to show few elements such as "START, STOP" pushbuttons and of course later we will interface it to our PLC. We can connect the device to a PC using either COM1/COM3 or USB ports seen on the figure 1. In doing this example, I am using the USB port of the device to it to my desktop PC. After the software is "RUN", click on FILE >NEW and do the following settings. See figure 2.

7

Page 8: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 2 When "New Project" appears, type in "Project Name" and "Location" where you want the file to be saved. See figure 3.

Figure 3 Click on "Next >" icon to go to the next dialog box. Type in your "Application Name", "Display Size in my case it is 7.0" ", and other information as seen in figure 4. At the end when clicked on "Next >", you will be directed to the next dialog box as seen in figure 4.

8

Page 9: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 4 In "New Link" dialog box, fill out the information as seen in figure 4 and at the end, click on "Finish" icon. See figure 5.

Figure 5 PM Designer "D:\TEST\right_left\Left_Right.pm2" appears. See figure 6. In figure 6, "Screen 1 (#1) is the area where we can start "editing" our first HMI file.

9

Page 10: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 6 Now, should we decide to change some setting such as "Baud Rate", "PLC and Panel address", we can do so by clicking on "Link 1" as seen in figure 7.

Figure 7 Figure 8, shows that some data to establish communication between "device" and PLC is selected. Remark: When you "Run" PM Designer setup software for the first time, it installs related software needed to establish communication between "device" and a PC automatically and you do not need to be worry about these communication parameters anymore. Based on brand and model of our PLC which we are going to use in this project, we select "parameters" that in "Link Properties" dialog box as seen in figure 8 and at the end, click on the "OK" icon.

10

Page 11: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 8 To select and bring out any device picture, you can click on Draw > Picture. See figure 9. At of bottom of the figure 9, notice you have two options: 1- To import from Library. 2- To import from file.

Figure 9 PM Designer has lot's of symbols for pushbuttons, sensors, motors (etc) that we can use them in our design. See figure 10, a list of some of these devices.

11

Page 12: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 10 To select a picture as a background, simply, from the "PM Designer" dialog box, click on "Screen" and then from "Screen Properties" dialog box, click on "Background" tab, to select the "color" or "picture" you want to use in your design. See figures 11and 12. Figure 11 displays how a motor "symbol" is chosen and placed on the design area.

Figure 11

12

Page 13: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 12

Exercise Example 1 Developing our first sample “HMI” program In our first sample program, let's write a PLC control program which accepts 4 inputs from different pushbuttons to control a 3 phase motor to function as following: When S2 is depressed, motor starts running (STAR connection) and clock wise (CW) direction. When S4 pushbutton is depressed, STAR connection changes to DELTA. To change the connection, motor must be stopped first using S1 pushbutton and then when S3 is depressed, the direction changes from CW to CCW. Depressing S4, changes the revolving direction from STAR to DELTA. Figure 13 displays the control circuit diagram of the sample problem. Figure 14 displays the ladder logic program of the sample problem.

13

Page 14: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 13

14

Page 15: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 14 Now we need to write an HMI program to show all pushbuttons on the screen and also choose a picture as our "background" one. To select S1 to S4 pushbuttons, we can use "Bit Button" symbols. See figures 15 and 16.

Figure 15

15

Page 16: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

From PM Designer > Bit Button to open Bit Button dialog box to choose 4 buttons and to set their properties.

Figure 16 4 pushbuttons are placed on the designed area to simulate S1 to S4 as seen on figure 17.

Figure 17 From Bit Button dialog box, we can click on "Shape" icon to specify the shape of the buttons. See figure 18. Also from Bit Button dialog box, we can specify parameters such as BG Color, Border Color, Pattern and FG Color for any of the buttons we need to use in our design. See figure 18.

16

Page 17: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 18 Since we need to use S1 to S4 symbols as pushbuttons, on Bit Button dialog box, click on "Set ON Pulse" option in "Operation" section. In the "Write Address" section, address related to S1 is typed which would be "M 0.0". See figure 19.

Figure 19 From Bit Button dialog box, > Label tab, we can chose a suitable name and picture for the any of the button we have. See figure 20.

17

Page 18: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 20 By repeating the same steps, we can choose how our other pushbuttons need to be supposed to look, name, or function. See figure 21.

Figure 21 To display to show any messages on our HMI screen when it is operating, we can use Message Display dialog box to specify the messages. See figure 22.

Figure 22 From Message Display dialog box click on Visibility tab to specify address of the message you want to

be displayed. On figure 23, notice that Controlled by Bit is clicked and is set to q3.1 which means any time output bit q3.1= 1, Motor Turn Left message will be displayed as long as K2 (from figure 13) = q3.1 is high or = 1.

18

Page 19: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 23 Figure 24 displays our design stage so far.

Figure 24 To show if motor is revolving CW or CCW, I used two animate pictures to serve the purpose. As an example, to show CCW direction, I can select to place a small picture by taking following steps. See figures 25, 26, and 27.

19

Page 20: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 25

Figure 26

20

Page 21: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 27 Figure 28 show what we got so far.

Figure 28 And at the end of process, we need to save and compile the program. In figure 29, by clicking on icon number "1", you can compile your file and number "2" download it to the HMI's memory and it would executed automatically. Figure 30, displays final HMI screen design would be seen when you download and executed software developed V1.1 software.

21

Page 22: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 29

22

Page 23: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Exercise Example 2

Developing 4 Floor Elevator “HMI” program Figure 30, displays the final view of the program seen when developed HMI software is executed. Now let's take and write down steps needed to take to fix such a program.

Figure 30 The list of all lamp and pushbutton indicators supposed to be seen on the HMI screen are as followings: 4 × LED indicators light when any pushbutton related to each floor is depressed to call for a service. 4 × push pushbuttons depressed when there is a need to call for a service (located on each floor's keypad). Card sliding door symbol (Bit Lamp) to show if it is open or closed. Card internal panel which has 4× LED indicators light when any pushbutton related to each floor is depressed. Card internal panel which has 5× pushbuttons 4 of which related to each floor plus one to activate "Alarm Horn" or red blinking LED. An emergency message activated anytime any of external card door is left open or any of "UP or Down" emergency limit switch is activated. Green or Red blinking LEDs light during the time card is either moving up or down respectively. 5 × Seven segment displays indicate the floor number at which the card is located or is passing by.

23

Page 24: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 31 displays final look of the HMI design on PC monitor To start, we would like to show the floor number and a pushbutton related to each floor on the HMI screen. Click on Draw > Rectangle option and specify the size of the rectangle big enough to accommodate deferent element devices such as digit symbol, door, pushbutton and etc. See figure 32.

Figure 32 Double click on any point on the "Rectangle" to open Rectangle dialog box and specify the following settings. See figure 33.

24

Page 25: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 33 On figure 33 when controlled by bit is set to "on", and M10.3 = 1, meaning anytime the card reaches that floor, the color of the rectangle is going to change. Setting on figure 34 shows that anytime the card reaches to the destination floor, rectangle color will change to "purple".

Figure 34 In PM Designer click on Draw > Text to specify floor name and number to be displayed when the card gets to that particular floor. See figure 35.

Figure 35 On figure 35, double left click on "Lang1" to get to Text Object dialog box and set the other parameters. See figure 36.

25

Page 26: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 36 On figure 36, you can specify font size and click on Transparent ( ). Also click on From top to bottom ( ) to get the software to show texts vertically. See figure 37.

Figure 37 Since we want to show if the card door is open or closed, we need to create a Bit Lamp to relate flag status (On or Off) to the door status. In PM Designer > Object > Bit Lamp when flag symbol is placed, double left click on it to get to Bit Lamp dialog box to set the address and such. See figures 38 and 39.

Figure 38

26

Page 27: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 39 PM Designer has lot's of pictures that we can either import from a file or Library to use in our design to show device look and statuses. See figures 40 and 41.

Figure 40

27

Page 28: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 41 In figure 41, click on Select/Import from Library to choose a nice picture for the card sliding door. Select Garage door , Open and Garage door, Closed from Select/Import from Library dialog box to use in our design and related flags for the door statuses. See figures 42, 43, and 44.

Figure 42 On figure 43, Set Flip/Rotate: 90 to get the Garage door to rotated by 90 degree.

28

Page 29: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 43

Figure 44

29

Page 30: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Now we need to define a flag for each PB located at each floor door from Bit Button dialog box. See figure 45.

Figure 45 We want the color of each PB (Toggle switch) to be changed when "depressed". To insert a Toggle switch symbol, on PM Designer > Object and click on Toggle switch and drag it to edit area as seen in figure 46. On figure 46, double left click on Toggle switch symbol to get Bit Button dialog box to appear and click and turn on Monitor option and enter Monitor Address ( in my example q1.7) as seen in figure 47.

Figure 46 On figure 47, since the selected PB is some kind of Toggle switch, so on Operation section, click Set ON Pulse see figure 47.

30

Page 31: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 47 On figure 48, you set the rest of the settings for the toggle swich.

31

Page 32: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 48 And figure 49, displays Toggle switch's other parameter settings related to its status when it is turned on.

32

Page 33: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 49 To get toggle switch seen a little nicer, we can draw a rectangle around it. To do so, simply in PM Design > Draw > Rectangle drag it and place over your switch and then double click on it and in Rectangle dialog box, define Border and Solid properties.

Figure 50 Now based on figure 51, we need to place two back to back triangles on the rightmost side of the figure to represent the direction of card when it is moving either up or down. Need to place a "Numeric Display" to show floor number. To insert a triangle, in PM Designer > Bit Lamp to place the symbol on the display area. Double left click on the symbol to get the Bit Lamp dialog box appear. Click on Label tab and take steps similar to figure 41 to set the properties of the triangles. To place a numeric display, in PM Designer > Object > Numeric Display > drag and place a numeric display monitor on the design area. Left double click to get Numeric Display dialog box to appear and set the parameters as shown in figure 52.

33

Page 34: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 51 Notice that on figure 52, the content of 16 bit register MW120 is displayed as a one digit number on Numeric Display monitor.

Figure 52 Figure 53 displays final look of our floor number indicator on HMI screen.

Figure 53 Now you may take the same steps to design the same floor graphical objects for other three floors to get the final screen to look similar to figure 54.

34

Page 35: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 54 Now it is time to design card keyboard and display panel at the left side of the elevator main panel. The final screen should be looking similar to figure 55.

Figure 55 Notice that in card panel, we have 4 keys with numbers. Take steps shown on figure 40 to place numbers on the Edit window area and pull out key pictures from Computer Keys Library as shown on figure 56.

35

Page 36: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 56 PLC issues emergency alarm anytime any external floor door to be left open or any of two limit switches to be activated. In that case, we wish to see a cautionary message to be displayed on left bottom side of the HMI screen. The alarming message is "EX. Door Open". To include the message, in PM Designer dialog box click on Object > Message Display to drag a "Message display monitor" to Edit Window and double left click on it to open Massage Display dialog box to set the message parameters. See figures 57, 58 and 59.

36

Page 37: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 57

37

Page 38: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 58

38

Page 39: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 59 Now we need to have a "Danger" sign to display when any of emergency limit switch is activated to inform the operator. Since I could not find the sign that I like to have , I can use Draw from tool bar and design the one I like. See figure 60.

Figure 60 Now I would like to display a Text massage at the bottom side of the HMI screen to show some info about the project and since its length is longer than the screen, I click Marquee (to select it) and click Leftward for direction (the text would be moving from right to left). See figures 61and 62.

39

Page 40: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 61 At the end of design, to get screen look more attractive, I place a nice picture at the background. To place the background picture, on PM Designer > Screen > Screen Properties to open Screen Properties dialog box

40

Page 41: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 62 At the end of design, to get screen look more attractive, I place a nice picture at the background. To place the background picture, on PM Designer > Screen > Screen Properties to open Screen Properties dialog box. Click on Background tab to select options related to your background picture and click on Stretch to get it fitted to your HMI screen. Figures 63 and 64 display screen shots of the final design on monitor and HMI screen respectively.

41

Page 42: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 63

Figure 64

42

Page 43: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Exercise Example 3

Designing a continuous Digital (variable frequency) Pulse train

In this exercise we would like to design an imaginary potentiometer as shown on figure E3.1 with a slide switch symbol for simulating of input voltages (0 to 10 VDC) to the PLC's A/D module. We wish to develop a control software to interpret the imposed voltage to generate a continuous Digital Pulse train with a Variable Frequency governed by the slide switch (voltage changing from 0 to 10 V DC).

Figure E3.1 Figure E3.2 clearly display two equivalent circuits. We would like to develop a software program which on the HMI display, to simulate generation of an analog DC voltage of 0 to 10 volt and write it as content of some MW and process it. We know that any analog voltage input to the PLC's A/D module, is actually interpreted as a number from 0 to 27648. Meaning PLC defines 0 volt DC as number 0 and 10 V DC as number 27648.I may say when input voltage is 0, 1 or any other value in DC volt, I want PLC's output terminal (which is connected to a green LED) to turn on and off with some frequency (in which T is the period of the pulse train) based on the 27648 magic number.

43

Page 44: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure E3.2 Figure E3.3 shows the equations would be used to calculate output Frequency and Period. Theoretically, we should be able to implement the frequency equation and implement the pulse train with the define period and frequency. Sometimes we are limited to the PLC's hardware and instructions.

Figure E3.3 Figure E3.4 shows the tabulated calculation of F and T for all input voltages from 1 to 10 volts DC.

44

Page 45: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure E3.4 In the software program, we are going to use HMI output instead of a potentiometer's output, which will be saved in MV0. We could have used any other analog input address such as PIW256 as well. At the beginning of the program, input value which is an INT value, is changed to a real one. To do so, the input value is change to DINT and then to a real value.

Figure 3.4

45

Page 46: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 3.5

Figure 3.6

Figure 3.7 At this phase, we have calculated our output value as a real number, which might include all the rational numbers, such as the integer (5) and the fraction (4/3). We need to round the number to get rid of the fraction to get an Integer number at the end.

46

Page 47: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

We use this rounded integer number as an input parameter of the timer (variable delay time in milliseconds).

Figure 3.8 Now we need to add instructions to turn two LEDs on /off which start blinking when activated (Q0.0 = 1 Q0.1 = 0).

Figure 3.9

Figure 3.10 On delay timer has an output when there is a rising edge and the PT expires....the output duration would also depend on your IN.. So in this project, I need to use SFB4 timer to accommodate the disadvantage of S7 timers.

47

Page 48: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Next figure, shows how to bring SFB4 TON IEC_TC timer instruction to the program.

Figure 3.11

Figure 3.12

48

Page 49: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Figure 3.13

Figure 3.14

Figure 3.15

49

Page 50: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

Conclusion Now you have the information you need to become a successful PLC programmer. This is a moment for you to take the information you’ve been given and not be afraid to put it to use. The primary thing that keeps people from becoming successful is fear. If you can overcome this fear then you will succeed and prosper. All you need to do at this point is to stop putting things off and just do it. Start working and you will find it become easier as you go along. Once you accomplish any new skill or task, you will realize just how easy it is. That is when you want to kick yourself for not starting sooner. So don’t hesitate. Start right now. Start today. Break that cycle of doubt and enjoy your newfound skills and succeed in exploiting them. To your success and happiness, Seyedreza

50

Page 51: How to program and hardwire a typical PanelMaster touch ... · How to program and hardwire a typical . PanelMaster touch screen LCD HMI device? (Model PT070 LCD Touch Control Panel)

PLC-DOC product list Hardware, software & more

We would like to introduce our Teach Yourself Consumer PLC books as an excellent resource for readers who want to learn more about PLCs. So far, we have launched these new groundbreaking series with five exciting titles: 1- Programming with SIMATIC S7 300/400 Programming Controllers 2- Programming with SIMATIC S7-200 PLCs using STEP7-Micro/win software 3- Programming Siemens S5 PLCs using IBHSoftec simulator software 4- Programming Siemens S5 series of PLCs using PG 2000 compiler software 5- Basics of Programmable Logic Controllers (PLC) 6- Programming Alley Bradley series of PLCs using RSLogix 500 software compiler 7- Programming 4 types of PLC in 5 project 8- Household wiring, circuits, diagrams and projects Design and Implementation of some typical end year collage projects using PLC with youtube.com site links to watch the projects in action: 9- Programming a 4 floor elevator with SIMATIC STEP7 & LOGO! SoftComfort software http://youtu.be/dqkeHD5WNcc 10- Programming SIEMENS LOGO! PLC as a dyeing machine temperature controller http://youtu.be/mJfT4z1oCeo 11- Programming a Traffic Light Controller system using SIMATIC S7-300 & HMI display http://youtu.be/0ADfFPOzIUE 12- Programming a PLC based car Parking System with SIMATIC STEP 7 and S7-300 PLC http://youtu.be/51oqLRxXcHk 13- Programming a Traffic Light Control system using an AVR ATmega8 microcontroller http://youtu.be/q0eWsX2kMeU To learn more on each title, please check out my personal websites at the below addresses: www.plc-doc.com - www.plcgoods.net - www.plcgoods.net File name: HMI-PLC-DOC.doc

51