Professional Documents
Culture Documents
2-1
Ladder Program
Operating switch setting -On only when pressed -writing device P00000 Stop switch setting -On only when pressed -writing device P00001 Operating lamp setting -Bit -reading device P00010 Numeric output setting -Word, unsigned decimal -reading device D00010
2-2
An example of an action:
P10 P10
MOV K123 D10
(1) If you press the Start button on the left, the bit device is turned on.
P0 is on P0
P0 P1 P10
P10
(2) With the bit device PO being on, the bit device P10 is turned on. The operating lamp set as P10 is turned on.
P10
MOV K123 D10
(3) If the P10 bit is turned on, 123 are saved in the word device D10. Now, 123 are displayed on the numeric display device set as D10.
P10
MOV K123 D10
P0
P1
P10
P10
P10 123
MOV K123 D10
(4) If you click on Stop touch switch, the bit device P1 set in the Stop button is turned on. Bit device P1 is the condition in which P10 is turned off, so the operating lamp set as P10 is turned off.
123 shows up
123 D10
2-3
(b) Select the XGT Panel type, the PLC product to connect and its maker. Note (1) The PLC product and maker you select here are the basic settings. If you want to add an additional PLC, select and use 1:N connections in Menu Common Project Property Setting XGT Panel Settings.
In the following example, XP30-TTA has been selected as the device type and the GM (CPU) of LSIS has been selected as the PLC. Detailed communication settings are conducted in the project properties dialog box. Press the OK button after setting.
2-4
As the project is created, the following basic window is invoked at the center of the frame of XP Builder.
2-5
(b) If you click on [XGT Panel Settings], the second tab of the dialog box, the following text boxes is displayed.
2-6
(c) To change the current transfer speed of RS-232C, this is the default access setting, click on [Detail Settings]. As the access method of RS-232C is serial, the following serial setting dialog box is invoked.
(d) Change the transfer speed from 38400 to 19200 and click on the OK button.
2-7
(e) Now the serial setting dialog box is closed. Click on the OK button to finish the settings.
2-8
(b) The following screen is created and a tab of which the name is B-2 is also added.
(c) As shown below, [2 Base screen] has been added to the project list.
(d) To change the initial display number to 2, press the right button on the mouse on [2 Base screen] in the project list and then select [As Start Screen] or press the function key [F2] on the keyboard.
2-9
The [2 Base screen] caption in the project list is now shown in bold characters.
2-10
a b c d e f g
i j
Type Screen type(a) Screen No(b) Screen name(c) Window title(d) From text table(e) Text table(f)
Font (g)
Description The type of the current window such as the base screen, window screen or part screen is indicated The number of the present window is indicated. Indicates the specified name in the project tree Available at window screen. Indicates the window title when window object appears. Available at window screen. You can get the text from text table for window title not inputting text directly. Available at window screen. If you press this button, the text table dialog box appears where you can select text. Available at window screen. In case of inputting the window title directly, you can select the font from combo box. And in case of inputting the window title from text table, font of text table is indicated at the combo box. The user can enter the description on the display and the description previously entered is also shown. The size of the memory currently used in the window is indicated in the unit of Byte. The width and height of the present window is indicated.
2-11
In addition to the display properties, you can change the current background color of the screen to blue as follows. [Procedure] (a) Press the right button on the mouse on a point of the space of the window such as the base screen, window screen or part screen. Click on [Screen Property] or press Alt + C. (b) The following dialog box is invoked to display the information on the properties of the display. (c) Click on [Background] and then [Use BG Color]. (d) You can set the [FG color (Foreground Color)] and [BG color (Background Color)]. Set the background color as blue and as pattern #1.
2-12
Note (1) The relationship between the pattern number and foreground and background colors is as follows. Pattern Number Application Pattern 1 Pattern not used Pattern 2 The background color applied to all the patterns. Pattern 3 The foreground color applied to all the patterns. Pattern 4~42 The background and foreground colors apply to the background and foreground colors of the pattern respectively. #1#2#3
2-13
2-14
(b) Drag the figure until it becomes as large as you want and place the figure at a desired point. (c) Modify the Fill properties as follows in the dialog box invoked when you release the mouse button and then click on the OK button.
Note (1) You cannot select the texture in XP30-BTA. (d) The properties of the RoundRect have been changed as shown below.
2-15
2-16
(c) Modify the text properties as follows in the dialog box invoked when you release the mouse button and then click on the OK button.
(d) The properties of the Text (text, font, size) have been changed in the window. Adjust the size of the Text so that the entire text is shown.
2-17
(b) Drag the bit lamp until it becomes as large as you want and place the figure at a desired point.
2-18
(c) Modify the basic properties of the bit lamp as follows in the dialog box invoked when you release the mouse button and then click on the OK button.
(d) Modify the [Display] properties of the bit lamp as follows and click on the OK button.
Press the library button and change the image corresponding to Off as shown.
Press the library button and change the image corresponding to On as shown.
2-19
(b) Drag the bit switch until is becomes as large as the bit lamp.
2-20
(c) When the dialog box is invoked, modify the basic properties of the bit switch and press the OK button.
Select %MX0 as the device address and Alternative as the Action type.
(d) Modify the properties of the [Text] of the bit switch and press the OK button.
2-21
2-22
(b) Drag the word lamp until it is properly far from the bit switch.
(b) Modify the basic properties of the word lamp as follows in the dialog box invoked when you release the mouse button.
2-23
(d) The list is created in the Case List of the [Basic] item.
Add the case list by using the range editing dialog box invoked when you press the folder button.
2-24
You can enter the first item of the case list above in the range editing dialog box as follows.
Press operand A and enter the fixed value 100. Press operand B and click on the $V (reference device) radio button. Press operand C and enter the fixed value 200. The $V (reference device) refers to %MW0 which has been set in the basic item.
Now you should enter the display information of each condition. Each of the three condition lists can have their own lamp state and up to four states as well if the scope beyond it is included. (e) Create a list in the case list of the [Display] item. You can set the pattern and color of the lamp for the case corresponding to each case list of the display item.
This is the lamp setting for the value corresponding to the basic case, that is, the three conditions above. - Set the image type as [Sample Image & Change Color/Pattern] and select the second pattern, which means expressing the entire image in the pattern background color. For details on image types, see 16.2 Display Function Settings of Chapter 16 Object Setting.
2-25
This is the lamp setting for case 1, that is, the first of the case list above. Set the pattern as hatch 27, the foreground as white, background blue and frame color as yellow.
This is the lamp setting for case 2, that is, the second of the case list above. Use the first pattern. The green color here consists of phases according to the saturation and value. This is the HSV vector image processing method which changes only the color factors of the original image to green and maintains the value and saturation of the original image. HSV: the method of expression colors in the computer. (Hue, Saturation, Value) 2-26
This is the lamp setting for case 3, that is, the third of the condition list above. Set the pattern as hatch20 in the form of sloped lattice, pattern foreground color as blue, background color as sky-blue and frame color as the jade color. After setting is finished, click on the OK button.
2-27
(b) Drag the Numeric Input until it becomes properly far from word lamp.
2-28
(c) Set the properties of the numeric input in the dialog box as follows and click on the OK button.
2-29
What you entered at On and Off are displayed on the screen respectively when you press the object On/Off tool bar.
Off
On
(b) To check the case of the word lamp, while changing the case in the condition no. of word object combo box of the information tool bar as follows, check whether the color and pattern of the lamp is changed on the screen as you set above.
Basic Case
Condition 1 Case
Condition 2 Case
Condition 3 Case
2-30
%MW10
Address Viewer On
(b) When the saving dialog box is invoked, select the folder, enter the file name and click on the Save button.
2-31
(b) The output box and output window is activated to display the errors. If there are no errors, a message appears to say that 0 number of errors and 0 number of warnings have occurred as shown below. If there is any error, double-click on the relevant line and then you can shift to the screen and object where the error is. Modify the error and click on Data Check to check the error. ( For details on errors, see Appendix 2. Problems)
2-32
If you click on the bit button once again, the left bit lamp light is turned off because it is an l i i h (c) Enter some values randomly, say, 100,200,300 and 400 in the numeric input device.
If you click on the bit button, the left bit lamp light is turned on.
2-33
1) Touch the numeric input device on the simulator, enter 100 and click on the Enter key (on the keypad).
Case Condition 1: 0 < $V <= 100 As the word lamp color meets the first case of the case conditions which were set above, the lamp is displayed in the color and pattern as it was set. 2) Touch the numeric input device on the simulator, enter 200 and click on the Enter key.
Case Condition 1: 100< $V <= 200 3) Touch the numeric input device on the simulator, enter 300 and click on the Enter key.
4) Touch the numeric input device on the simulator, enter 400 and click on the Enter key.
The following communication dialog box is invoked. If the previously set connection information is the same as the information you are currently transferring, click on the Download button in the illustration below. Otherwise, set the connection information in the same procedure as 2).
2-35
Description Setting Serial and Ethernet. The default value is set as Ethernet. Detailed settings area based on current connecting type. While Ethernet can display the established IP and Port, RS232 can set up COM Port and transmission speed. When there are different PC and XP Panel for former 3 digits from IP XXX.XXX.XXX.XXX, 1:1 connection is recommended. It is used to search for XGT Panel list that can be connected now. The function is available only under Ethernet, which shows the list of all XP Panels that can be sent. Press the check box of light side to select IP to be transmitted and press OK button.
Search(d)
2-36
b c d
e f
Function Download to XGT Panel (a) Download project all forcibly (b)
Description It is to send the project through Communication(Ethernet, RS_-32C) Normally, XP-Builder judges if it sends only revised project or whole project through its internal algorithm. If the function is activated, the whole project will be sent. Normally, XP-Builder judges if it sends engine files of XP-Runtime folder in the installed XP-Builder through its internal algorithm. If the function is activated, the files will be sent. It is to save the project to external equipment including USB based on Offline type by inserting UPB into the devices. The option is to judge if it deletes or reserves the alarm, logging, and recipe data saved at SRAM of XP Panel. The option is to send the compressed data for upload. To set up the saving position of these uploaded files, refer to Chap.13.7 Setting storage devices. It starts sending the project based on users setting.
2) Click on the OK button, check the cables and check whether the data is being transferred to XGT Panel. If it is not transferred, see the Troubleshooting or Manual.
2-37
Read
2-38