chapter 7 data sampling screen otasuke gp-ex! 7 - 0 chapter 7 data sampling screen

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

Upload: brice-west

Post on 21-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 1

Chapter 7 Data Sampling Screen

Chapter 7

Data Sampling Screen

Page 2: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 2

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

Page 3: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 3

Chapter 7 Data Sampling Screen

7. 1Data Sampling

Screen

7.1

Page 4: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 4

Chapter 7 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.

1) Display collected data in a list on the screen. ( → See page 7-5.)

2)

3)

Collect data by touching.

4)

5)

Delete collected data by touching.

12

Change the currently displayed screen to the trend graph screen by touching. ( → See page 7-14.)

3

4

6

Display collected data in a trend graph.

6) Display historical data in a trend graph. ( → See page 7-18.)

Data Sampling Screen

5

Page 5: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 5

Chapter 7 Data Sampling Screen

7. 2Sampling Data

Display

7.2

Page 6: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 6

Chapter 7 Data Sampling Screen

Image of Sampling Feature

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

Printer

CF Card BackupSRAM

1

Internal Device(LS, USR)

43

5

2

Inside of GP

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.

USB Memory

Memory Card

Collect Data

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

Page 7: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 7

Chapter 7 Data Sampling Screen

1) Set the Sampling Group

<Address>Specify an address to collect data in.

<Mode> Set the timing to collect data.

Setup Procedures of Data Sampling 1

Sampling List

Make the Address settings, the Mode settings, and the Display/Save in CSV settings for each sampling group.

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

To the next page ->

Page 8: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 8

Chapter 7 Data Sampling Screen

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.

Setup Procedures of Data Sampling 2

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

Page 9: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 9

Chapter 7 Data Sampling Screen

[Setup Procedure]

1. In the Sampling settings, create a Sampling Group.

2. Place the Sampling Data Display on the base screen “7”.

Let’s collect data and display them in a list!

On the [Common Settings] menu, select [Sampling]. Or click the [Sampling] icon on the tool bar.

(1) Select Sampling

The Sampling Group List will open.

Click [Create]. 1)

1

(2) Create Sampling Group

Set [Group] to “1” and [Comment] to “Group” . Click [OK].

2)

2

Let’s Display Sampled Data in List

<Practice Screen> <Completed Screen>

Page 10: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 10

Chapter 7 Data Sampling Screen

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: M220Sampling Cycle: 1 SecondNumber of Times: 20Data Full Bit Address: Not CheckedData Clear Bit Address: M223

Set an address in which sampling data are stored.

Here, make settings as below.Addressing: Sequential Sampling Start Address: D300Bit Length: 16 BitSampling Words: 4

(3) Address Settings

(4) Mode Settings

Page 11: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 11

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.

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

SRAM

Page 12: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 12

Chapter 7 Data Sampling Screen

Display/Save in CSV: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.

Basic Settings/Custom Settings:Select a format setting mode.

[Basic Settings]

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.

(5) Display/Save in CSV Settings

1)

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.

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

2)

3)

1

2

3

Page 13: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 13

Chapter 7 Data Sampling Screen

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

Open the base screen “7”.

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

1)

2)2

(6) Select/Place Sampling Data Display

3) Click the screen where to place the sampling data display.

3

Page 14: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 14

Chapter 7 Data Sampling Screen

(7) Basic Settings

Group Number:Specify the group number, which has been

created in the sampling settings.

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

2) Click [OK] and adjust the position of the sampling data display.

(8) Display Settings

Select “Standard Font” for [Font Type] and “8 x 16 Pixels” for [Size].

(9) Switch Settings

Set scroll switches.

No settings of scroll switch placement are required with this practice project data.

1)

1

2

Page 15: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 15

Chapter 7 Data Sampling Screen

(1) Place Historical Trend Graph

[Setup Procedure]1. Place a Historical Trend Graph on the base

screen “105”. Let’s collect data and display

the data in a trend graph!

Open the base screen “105”.

Click the [Historical Trend Graph] icon on the tool bar.

Click the screen where to place the historical trend graph.

1)

2)

1

2

Let’s Display Sampled Data in Trend Graph

<Practice Screen> <Completed Screen>

Page 16: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 16

Chapter 7 Data Sampling Screen

1

(2) Select Shape

1) Double-click the placed historical trend graph.

2) Click [Select Shape] and select a shape of the graph.

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

2

3

(3) Graph Settings

2

1) Select the “Normal” graph type.

2) Group Number:Specify the sampling group number to display in a graph.

* Please be sure to make the data sampling settings in the Sampling settings beforehand.

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

3

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

Page 17: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 17

Chapter 7 Data Sampling Screen

3) Channel Number:Specify a channel number to set up the 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 BinInput Sign: NoneMin.: 0Max.: 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 -> RightwardData Samples: 19Samples to Scroll: 19Scale Divisions: Set as you like.

Select from the pull-down menu.

Page 18: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 18

Chapter 7 Data Sampling Screen

MEMO

(5) Color Settings

Select each channel from 1 to 4, set [Line Type], [Line Thickness], and [Display Color] as you like.

1

2

1)

2) Set [Border Color], [Scale Color], and [Graph Area Color] as you like.

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

3

Page 19: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 19

Chapter 7 Data Sampling Screen

(1) Display Historical Data

[Setup Procedure]1. Open the base screen “105”.2. Set the Historical Trend Graph.

Let’s display older data than currently displayed data

in a trend graph.

Open the base screen “105”.

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 Address] and set it to “USR100”. Check off [Status Address].

Let’s Display Historical Data in Trend Graph

<Practice Screen> <Completed Screen>

Page 20: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 20

Chapter 7 Data Sampling Screen

(2) Switch Settings

1) Select whether or not to place each switch. Check all and set [Samples to Scroll].

Display Historical Data:Places a switch to change to the mode to display historical data.

Scroll for Old Data:Places a switch to scroll backward from the currently displayed data to the older data. Set “1” for [Samples to Scroll].

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.

4) Select a switch color.

3) Select a font type and a text color for switches. Set labels as below.

Display Historical Data: DisplayScroll for Old Data: BackScroll for New Data: FwdZoom Display: Zoom InZoom Out Display: Zoom Out

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

1

2

3

4

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.

Page 21: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 21

Chapter 7 Data Sampling Screen

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

Switches and Date/Time Displays can be also created individually and placed on the base screen.

(3) Time Display Settings

You can add date and time to be displayed in graph data by these settings. The date and time are displayed under the graph display.

Most Recent Time:Displays the most resent time.

Oldest Time: Displays the oldesttime.

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: CheckedDisplay Position: MiddleSearch Status: Not Checked

Click

1

Set [Font].

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

Set colors as you like.                 

2

2)

1)

3

Page 22: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 22

Chapter 7 Data Sampling Screen

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: CheckedUse Memory Card as Backup Area: CheckedSave in: CF CardBackup Count: 100When Backup Count is exceeded: Overwrite oldest dataStatus Address: Not Checked

(4) Mode Settings of Sampling Settings

Open [Common Settings] -> [Sampling]

Page 23: Chapter 7 Data Sampling Screen Otasuke GP-EX! 7 - 0 Chapter 7 Data Sampling Screen

Otasuke GP-EX!

7 - 23

Chapter 7 Data Sampling Screen

Let’s Transfer Data to GP and Check Performance

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.

1

2

<Completed Screen>

4

3