Вы находитесь на странице: 1из 11

Xpanel SPC Trend with PLC-S

Goal
- Set up a communication between Xpanel(SPC Trend) and CIMON PLC-S by
using Ethernet(CIMON HMI protocol, UDP).
- Use Xpanel SPC Trend to display a PLC data with X and Y coordinate(No legend on data).
- By changing Screen Control Tag, control the SPC Trend graph including data and
moving pen.

Trend is not supported by Xpanel Simulator.


Tag type must be a Real type for Trend feature except few cases.
XpanelDesigner Version : 2.34R20140530
CICON Version : 5.02R20140609
Xpanel Size : 7

Content - 1

1. Create a New project and Page.


1) Go to [File] [New Project], enter a project name. Click Next button, and select a Xpanel
screen size(7inch in this example). Click OK to finish.

2) Go to [File][New Page], click Save menu to enter a page name.

2. Select a CIMON PLC-S as I/O Device.


1) Go to [Tools][I/O Device], and click New Device. Select an Ethernet Device, and enter
a Device name. Click OK to select a CIMON PLC.

Content - 2

2) Select a CIMON-PLC as Device Type. Move to Station tap, enter a Station name and
select CM3-plcS as Station type. Enter an IP Address of PLC. Enter a Socket Port number
(UDP : 10262, TCP : 10260).

3. Create Tags at Tag Database.


Go to [Tools][Database] menu. Click New Tag icon to register a new Tag.

Analog (19 = Real (15)+ Virtual(4)) :


D0, D1, D2, D3, CONTAG, DATACNT, XMAX(Virtual), XMIN(Virtual), XMOV,
YMIN(Virtual), YMAX(Virtual), YMOV, X_P1, X_P2, X_P3, X_P4, X_P5, X_P7, X_P7
Digital (1, Real Tag) : CONBIT
Group Tag (1) : X

Content - 3

At Real Tag configuration, select the I/O Device and Address for PLC-S device.
Ex) DATACNT (Analog ,Real Tag),
I/O Device Sample.ST1
I/O Address D101
4. Set up for SPC Trend.
Go to [Draw] [Trend Graph].
1) Trend
Enter a Trend name(test). Select a Trend type as SPC.

2) Object Style
Select a white color as Object style (graph background color).
3) Line color
Select a black for graph line.
4) Pen
Content - 4

Click the each pen number, and select the corresponding Tag at Tag Database. Comment
and color for each pen can be set up as well.

5) Grid
Enable Display Grid, and enter 10 for each X and Y axis.
6) Y-Asix Legend
Enable Display Min/Max value, and enter 40 into Size.
Be sure that Max. Y value is bigger than Min. value. If Max. Y value is or less than Min.
value, Trend graph might not be displayed properly.
7) X-Axis Legend
To display the Min and Max. value of X-axis on graph.
8) SPC Option
A. Using Moving Point
Besides data point, moving point with X and Y coordinate is displayed on graph. Moving
Point color and size of point can be selected.
B. Using Moving Point Trace
Multiple moving points can be displayed on graph up to 800. Select the number of
moving point.

Content - 5

Update Trace At X(Y) axis data changed


When Trend Control Tag CONTAG value is 4, X or Y moving point is updated when
moving point data changes.
C. Data Point
The number of data point is set up.
D. Draw Border
An exterior graph boarder is drawn in black color.
E. Data Connection
Data is connected with polyline.

9) SPC Tags
Select the each Tags as shown below.

Content - 6

Control CONTAG
Data Count DATACNT
Control Bit CONBIT
X-axis Start Address X_P1
X-axis Minimum XMIN
X-axis Maximum XMAX
Y-axis Maximum YMIN
Y-axis Minimum YMAX
X-coordinate of Moving Point XMOV
Y-coordinate of Moving Point YMOV

Click OK to finish a SPC Trend setting.


All SPC Tags must be Real type except for X-axis Minimum, X-axis Maximum, Y-axis
Minimum, Y-axis Maximum.
At pen and Data Count setting, you must take into account the amount of data represented
by each pen.
Ex) Pen #1 display total 10 Data starting from address D0. Pen #2 is set at address D8.
In this case, SPC Trend is not displayed properly. This is because the starting address of
Pen #2 is overlapped with Pen#1 address. Pen #1 data takes address from D0 to D9.
(No. of #1 Pen Data = 10, Address Gap between #1Pen and #2 Pen = 8).
Content - 7

The Address is also determined by the Tag data type of Pen.


Ex) Pen #1's data type is in INT32, and its Data Count is 10.
Those 10 Data are in INT32, so the Pen #1 takes D0~D19. Pen #2 takes the address with
INT32 data type automatically.

6. Use a Dynamic Tag to display a Tag value.


Go to [Draw] [Dynamic Tag] menu. Click on page, and select an Analog Tag D0 at Database.
Click OK to finish.
Create more Dynamic Tags for each data (D1,D8,D9) and SPC Tag(CONTAG, DATACNT, X-Start
XMAX, XMIN, XMOV, YMIN, YMAX).

8. Control a SPC Trend Graph


(1) How to control the number of data that is displayed on graph.
Each number of data D0or D1 is set up here.
A. Double click on Dynamic Tag DATACNT, and click EntryData feature in it. Set Action
type as Numeric, and select a Tag DATACNT at Tag database.
B. Click OK button to finish.

Content - 8

(2) How to display a Trend graph.


Data and Moving pen data are displayed according to screen control Tag CONTAG.
A. Double click on Dynamic Tag CONTAG, and click EntryData feature in it. Set Action
type as Numeric, and select a Tag CONTAG at Tag database.
B. Set Min value as 1. and Max. value as 6(Tag value of SPC Trend screen is between 1 and
6).
C. Click OK button to finish a button setting.

Content - 9

Content - 10

How To control SPC Trend on Xpanel


1. Set the X-Max. value is bigger than X-Min. value. Set the Y-Max. value is bigger than Y-Min.
value.
2. Set X-Mov and Y-Mov data.
3. Set a Tag DataCNT for the number of data between 1~8 (in this example).
4. Change the Screen Control Tag CONTAG by entering a number between 1~6.
123456-

Add a graph to the previous graph.


Delete a graph.
Draw a graph
Start a Moving pen.
Pause a Moving Pen.
Stop a Moving Pen.

Regarding the detailed information on Trend, please refer to Xpanel User Manual.

PLC Operation

D0 has the value between 1~50.


When data of D0 becomes 1, D0~D15 start to increase its data.
When data of D0 becomes 50, D0~D15 start to decrease its data.
X- Moving point value is increased by 25 at every 0.2 second with a range between
100~700.
Y- Moving point value has a fixed value as 1500.
A Default Max. X value is 800 on graph(Editable).
A Default Min. X value is 0 on graph(Editable).
A Default Max. Y value is 4000 on graph(Editable).
A Default Min. Y value is 0 on graph(Editable).

Content - 11

Вам также может понравиться