GPEX Ch7 DataSampling 4th Edition Eng

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 23

Otasuke GP-EX!

Chapter 7 Data Sampling Screen

Chapter 7
Data Sampling Screen

7-1
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Chapter 7 Data Sampling Screen

7. 1 Data Sampling Screen

Data Sampling Screen ………………………………… 7-3

7. 2 Sampling Data Display

Collect Data …………………………………………… 7-5

[Practice] Let’s Display Sampled Data in List ……… 7-8

[Practice] Let’s Display Sampled Data in Trend Graph


…………………………………………… 7-14

[Practice] Let’s Display Historical Data in Trend Graph


…………………………………………… 7-18

[Practice] Let’s Transfer Data to GP and Check Performance


…………………………………………… 7-22

7-2
Otasuke GP-EX! Chapter 7 Data Sampling Screen

7.1

7. 1
Data Sampling
Screen

7-3
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Data Sampling Screen

The data sampling screen is used to manage/control production by


collecting and displaying data in a device/PLC on the GP screen at a
specified timing. The collected data can be printed out or saved in a CF
card and moved to a computer.

6
1 5
2
3

1) Display collected data in a list on the screen.


( → See page 7-5.)

2) Collect data by touching.

3) Delete collected data by touching.

4) Change the currently displayed screen to the trend


graph screen by touching.
( → See page 7-14.)

5) Display collected data in a trend graph.

6) Display historical data in a trend graph.


( → See page 7-18.)

7-4
Otasuke GP-EX! Chapter 7 Data Sampling Screen

7.2

7. 2
Sampling Data
Display

7-5
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Collect Data

To collect or save data in a device/PLC into a GP unit, use the


Sampling feature.
This feature allows you to save data in the GP backup SRAM at a
specified time or cycle and display the saved data in a list or a trend
graph on the screen. Also the data can be printed out or saved in a CF
card.
Image of Sampling Feature
Inside of GP

Internal Device
Printer (LS, USR)

2
1
3
4
CF Card USB Memory
Backup
5 SRAM

1) Address Settings/Action Settings: Collects or saves data in a


device/PLC at a specified time or cycle.

2) SRAM → Screen Display: Displays data in the SRAM on the screen.


* Use Sampling Data Display and Historical Trend Graph.

3) Write Data: Allows data to be edited or displayed in a bar graph or


trend graph by writing sampling data into the LS area
in the GP.

4) Print: Prints out sampling data from the GP.

5) Save in CSV: Saves sampling data from the SRAM to a memory card in
CSV format.

One Point
Memory Card
Data backed up from SRAM to a memory card
is saved in CSV format. You can edit the data
on your computer easily.

7-6
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Setup Procedures of Data Sampling 1

1) Set the Sampling Group

Sampling List

Make the Address settings, the Mode settings, and


the Display/Save in CSV settings for each sampling
group.

<Address> <Mode>
Specify an address to collect data in. Set the timing to collect data.

<Display/Save in CSV>
Set display formats for CSV data saving.

To the next page ->

7-7
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Setup Procedures of Data Sampling 2

2) Place a [Sampling Data Display] on the screen.


It shows the sampled data numerically in the list.

3) Place a [Historical Trend Graph] on the screen.


It shows the sampled data graphically.

4) Save the project file and transfer it to the GP unit.

7-8
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Let’s Display Sampled Data in List


[Setup Procedure]

Let’s collect data and 1. In the Sampling settings, create a Sampling


Group.
display them in a list!
2. Place the Sampling Data Display on the base
screen “7”.

<Practice Screen> <Completed Screen>

(1) Select Sampling

On the [Common Settings] menu, select [Samp


ling]. Or click the [Sampling] icon on the
tool bar.

The Sampling Group List will open.

(2) Create Sampling Group

1) Click [Create].

2) Set [Group] to “1” and [Comment] to “Group” .


Click [OK].

7-9
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(3) Address Settings

Set an address in which sampling data are store


d.

Here, make settings as below.


Addressing: Sequential
Sampling Start Address: D300
Bit Length: 16 Bit
Sampling Words: 4

(4) Mode Settings

Execution Condition:
Set a timing to collect data at.
(→ See page 7-8.)

Here, select [Constant Cycle while Bit


is ON].

Sampling Permit Bit Address:


Set a bit address which is a trigger to
start sampling
.
Sampling Cycle:
Set the time of the sampling cycle.

Number of Times:
Select the number of times sampling
will occur.
* The setting range is from 1 to 65535.

Data Full Bit Address:


Set a bit address that turns on when the specified number of data samplings are completed.

Data Clear Bit Address:


Set a bit address to control to clear sampled data.
When this address turns on, sampled data will be cleared. After clearing is completed, the a
ddress turns off.

< Settings >


Here, make settings as below.
Sampling Permit Bit Address: M220
Sampling Cycle: 1 Second
Number of Times: 20
Data Full Bit Address: Not Checked
Data Clear Bit Address: M223

7 - 10
Otasuke GP-EX! Chapter 7 Data Sampling Screen

One Point

Sampling Execution Condition

Specify the timing to collect data.

Set Time, Constant Cycle:


Data are collected at a specified timing or cycle.
* The internal timer of the GP unit monitors the set time or cycle.

SRAM

Bit ON, Bit Change:


Data are collected when a specified bit turns on or changes.

SRAM

Constant Cycle while Bit is ON:


Data are collected at a specified cycle while a specified bit is on.
* The internal timer of the GP unit monitors the cycle.

SRAM

7 - 11
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(5) Display/Save in CSV Settings

1) Display/Save in CSV: 1
Specify whether to display sampling
data on the GP screen or to save
the data in a memory card.

When you display data on the screen


or save data in a memory card, you
must check and set the format. 3
Basic Settings/Custom Settings:
Select a format setting mode.
[Basic Settings]
2
Allows you to configure settings
easily by using a preset format.
[Custom Settings]
Allows you to set a customized format.
Here, check [Display/Save in CSV] and select [Custom Settings].

CSV Control Word Address:


Specify whether or not to save sampling data in a memory card. If save, set a control address to
write data to a CF card.
Here, set it to “D160”.

Save in:
Select either [CF Card] or [USB Storage] to save data in.

2) Enter “Line A”, “Line B”, “Line C”, and “Line D” in Item Name (Horizontal) from Data 1 to Data 4
respectively.

3) Row: Set rows in the format.


Set [Item Name (Horizontal) Rows] to “1”, check off [Use Sampling Address as Item Name], set
[Calculation Results] to “0” and [Item Name (Horizontal)/Text Number of Characters] to “8”.
* Please be sure to enter item names (Procedure 2) before setting [Item Name (Horizontal) /
Text Number of Characters]. If the number of characters of [Item Name (Horizontal)] is 9 or
more, you can not set “8”.

Column: Set columns in the format.


Check off [Item Name (Vertical)].
* [Data Display Column] is set automatically depending on the number of data to be collected
at once.

7 - 12
Otasuke GP-EX! Chapter 7 Data Sampling Screen

3) Specify each column of “Date” and “Time”. Set a format and a color by opening [Detailed Settings].

(6) Select/Place Sampling Data Display

1) Open the base screen “7”.

2
2) Click the [Sampling Data Display] icon on
the tool bar.

3) Click the screen where to place the sampling 3


data display.

7 - 13
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(7) Basic Settings

Group Number:
Specify the group number, which has been
created in the sampling settings.

Group Number: 1
Display Rows: 11
Display Columns: 6
Edit Data: Not Checked
Data Border / Clear Color: Set as you like.

(8) Display Settings

Select “Standard Font” for [Font Type] and


“8 x 16 Pixels” for [Size].

(9) Switch Settings

1) Set scroll switches.

No settings of scroll switch placement are 1


required with this practice project data.

2) Click [OK] and adjust the position of the


sampling data display.
2

7 - 14
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Let’s Display Sampled Data in Trend Graph


[Setup Procedure]
Let’s collect data and display 1. Place a Historical Trend Graph on the base
screen “105”.
the data in a trend graph!

Open the base screen “105”.

<Practice Screen> <Completed Screen>

(1) Place Historical Trend Graph

1) Click the [Historical Trend Graph] icon on 1


the tool bar.

2) Click the screen where to place the historical


trend graph.
2

7 - 15
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(2) Select Shape

1) Double-click the placed historical trend


graph.

2) Click [Select Shape] and select a


shape of the graph. 2

3) After selecting a shape, click [OK].

3
(3) Graph Settings

1) Select the “Normal” graph type.

1
2) Group Number:
Specify the sampling group number to
display in a graph.
* Please be sure to make the data 2
sampling settings in the Sampling
settings beforehand.

Channel Number: 3
From the specified sampling groups,
specify the number of addresses of lines to
display and their addresses.

Here, set [Group Number] to “1”. Click [Channel Settings] and set [Number of Channels] to “4”.
Make settings for [Channel Number] as below.
• Channel Number 1: [PLC1]D00300
• Channel Number 2: [PLC1]D00301
• Channel Number 3: [PLC1]D00302
• Channel Number 4: [PLC1]D00303

7 - 16
Otasuke GP-EX! Chapter 7 Data Sampling Screen

3) Channel Number: Select from the


Specify a channel number to set up the pull-down menu.
Input/Display Settings for.

Input Range:
Set the input range of data to display in a
trend graph.

Here, make settings as below.


Data Type: 16 Bit Bin
Input Sign: None
Min.: 0
Max.: 400

(4) Display Area Settings

Display Direction:
Select a graph display direction.

Data Samples:
Set the number of data samples to be
displayed on a single line.
* The range of data samples depends on the
number of displaying dots of the set model.

Samples to Scroll:
Set the number of sets of data to scroll when the graph fills the display area.

Scale Divisions:
Set scale display.

Here, make settings as below.


Display Direction: Bottom Left Corner -> Rightward
Data Samples: 19
Samples to Scroll: 19
Scale Divisions: Set as you like.

7 - 17
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(5) Color Settings

1) Select each channel from 1 to 4, set 1


[Line Type], [Line Thickness], and
[Display Color] as you like.

2) Set [Border Color], [Scale Color], and


[Graph Area Color] as you like. 2

3) Click [OK] and adjust the position of the graph.

MEMO

7 - 18
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Let’s Display Historical Data in Trend Graph


[Setup Procedure]
Let’s display older data 1. Open the base screen “105”.
than currently displayed data 2. Set the Historical Trend Graph.
in a trend graph.

Open the base screen “105”.

<Practice Screen> <Completed Screen>

(1) Display Historical Data

Double-click the placed graph.


Open the [Display Historical Data] tab.

Display Historical Data:


Specify whether or not to display historical data.
If you check the box, the [Switch] tab will be added.

Show Cursor:
Specify whether or not to show a cursor on the
graph display.

Cursor Information Storage Address:


Specify whether or not to store graph data on which the cursor points into an address.
Data to be stored uses words for date and time (four words) and the number of channels from the
set address.

Status Address:
Specify whether or not to store the operating conditions or error information of the historical di
splay mode into a specified address.

<Settings>
Here, check [Display Historical Data] and [Show Cursor]. Check [Cursor Information Storage Addres
s] and set it to “USR100”. Check off [Status Address].

7 - 19
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(2) Switch Settings

1) Select whether or not to place each switch.


1
Check all and set [Samples to Scroll].

Display Historical Data:


Places a switch to change to the mode to
display historical data.
3
Scroll for Old Data:
Places a switch to scroll backward from the
currently displayed data to the older data. 4
Set “1” for [Samples to Scroll].
2
Scroll for New Data:
Places a switch to scroll forward from the
currently displayed data to the newer data.
Set “1” for [Samples to Scroll].

Zoom Display: Places a switch to zoom in 2 times, 4 times, and 8 times every time it is
touched.

Zoom Out Display: Places a switch to zoom out the zoomed display to 1/2, 1/4, and 1/8.

2) Click [Select Shape] and select a shape for switches.

3) Select a font type and a text color for switches.


Set labels as below.
Display Historical Data: Display
Scroll for Old Data: Back
Scroll for New Data: Fwd
Zoom Display: Zoom In
Zoom Out Display: Zoom Out

4) Select a switch color.

One Point
In the Sampling settings, check [Use Memory Card as Backup Area].
If it is not checked, [Zoom In] and [Zoom Out] features will not work.

7 - 20
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(3) Time Display Settings

1) You can add date and time to be displayed 1


in graph data by these settings. The date and Click
time are displayed under the graph display.

Most Recent Time: Displays the most


resent time. 2
Oldest Time: Displays the oldest
time.

Here, check both [Most Resent Time] and


[Oldest Time].

Selected Time: Displays the time on


which the cursor points
while the cursor is shown.

Display Position: Select a reference point from


[Right Axis], [Middle], and [Left Axis].

Search Status: Specify whether or not to set an address to check the search status of Selected
Time.

Here, make settings as below.


Selected Time: Checked
Display Position: Middle
Search Status: Not Checked

2) Set [Font].

Check [Date], [Hours], and [7-segment Display]. Select display formats for [Date] and [Hours].

Set colors as you like.

3
3) Click [OK] and adjust the position of the graph.

Switches and Date/Time Displays can be also c


reated individually and placed on the base scre
en.

7 - 21
Otasuke GP-EX! Chapter 7 Data Sampling Screen

(4) Mode Settings of Sampling Settings

Open [Common Settings] -> [Sampling]

Back up to internal memory


(Historical Data):
Select whether or not to save sampled
data to the backup SRAM.
If data is not saved, the data will be
deleted when the power of the GP unit
is turned off or reset.

Use Memory Card as Backup Area:


Select whether or not to write data
saved in the backup SRAM to the
location specified in [Save in].
Data is saved in Bin format.

Save in:
Select either [CF Card] or [USB Storage]
to save data in.

Backup Count:
Specify the number of times (the number of files to be created) to write the backup data from 1
to 500.

When Backup Count is exceeded:


Select an action when the number of backup files exceeds the value set in the Backup Count.

Status Address:
Specify whether or not to store the saved operation status and error information in a specified
address.

< Settings >


Here, make settings as below.
Back up to internal memory: Checked
Use Memory Card as Backup Area: Checked
Save in: CF Card
Backup Count: 100
When Backup Count is exceeded: Overwrite oldest data
Status Address: Not Checked

7 - 22
Otasuke GP-EX! Chapter 7 Data Sampling Screen

Let’s Transfer Data to GP and Check Performance

<Completed Screen>

1) Touch the Collect Data switch. Data will be collected every second
and be displayed in a list. Touch the Delete Data switch to delete
data.
2) If you touch the graph switch, the Trend Graph Screen will open.

3) Collected data are displayed in a trend graph.


4) Historical data can be displayed by switches.

7 - 23

You might also like