Sample list

<< Click to Display Table of Contents >>

Manual > Appendix >

Sample list

Sample list

This is a list of the samples provided in this manual.

 

Client

Building the main features

Building server logic

Tags

Interface

Server duplication

Communication performance

Other

 

 

 

■Client

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

control

Full control

Control representative sample

This sample covers all controls. You can use it to check the operation and setting examples of each control.

Control Reference

bind

Binding configuration example

Binding setting example sample

This is a sample of a binding setting.

Binding setting example

design

animation

Animate Method Sample

This is a sample using the Animate method.

Animation

 

Visual Theme

Visual Theme Default Settings

Here is a sample of the default settings for the visual theme (VisualTheme.txt).

Visual theme default settings

Dialogs and Frames

Common Dialogue

Simple common dialog customization example

This is an example of customizing a simple common dialog.

Customize simple common dialogs

 

 

Example of customizing the extended common dialog

This is an example of customizing the extended common dialog.

Customize the Extended Common Dialog

 

 

Common Dialogue Original Form

This sample “rc.xml” contains the base form for the common dialog.

Customize simple common dialogs

Customize the Extended Common Dialog

 

User Dialog

Example of creating a user dialog

This is a sample that uses the OpenDialog method to display a form as a dialog. It summarizes several implementation examples for needs such as passing parameters between screens and sharing dialogs in one sample.

Example of creating a user dialog

 

Frame

Frame display sample

This is an example of setting frame display using the DefaultFrame property.

Frame

Script (SC2)

Tag access from script

Tag reading example

This is an example of loading tags from a script.

Read tag value

 

 

Tag writing sample

This is an example of writing tags from a script.

Writing a value to a tag

 

 

Example of bulk reading and writing tags

This is an example of reading/writing multiple tags at once from a script.

Bulk reading/writing of tags

 

 

Indirect Tag Reference

An example of indirect tag reference using the SetAliasTag method.

Indirect tag reference

 

Top of page

■ Construction of main functions

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

Alarm monitoring

Alarm customization example

Add a comment column to the alarm message

This is a sample that adds a message (comment) column to the standard alarm function.

Add a message to the alarm

 

 

Include tag values in alarm messages

This is an example of including the tag value (tag comment) in the alarm message.

Include tag value in alarm message

 

 

Changing alarm thresholds from the screen

This is a sample that creates an alarm threshold setting screen and sets the alarm detection conditions from the screen.

Set the alarm threshold from the screen

 

 

Create a representative alarm signal (client)

This is a sample of creating a tag for a representative alarm signal using client-side functionality.

Creating a representative alarm signal (client version)

 

 

Create a representative alarm signal (server)

This is a sample that creates a tag for a representative alarm signal using server-side functionality.

Creating a representative alarm signal (server version)

 

 

Customize alarm conditions (timers, wake conditions, etc.)

This is a sample that uses the occurrence wait timer, recovery wait timer, and recovery condition among the alarm conditions.

Recovery conditions, use of occurrence/recovery waiting timer

 

 

A sample that records screen operations as events

This is a sample that uses the FireAlarm method to record screen operations as events.

Record screen operation events

 

 

Alarm Send mail sample

This is a sample that sends emails when an alarm occurs and when the system recovers.

Send an alarm email

 

 

Implementing alarm sounds

This is a sample for sounding an alarm in a custom project that does not use the standard project.

Sound an alarm in your own project

 

Alarm ODBC

Change standard alarm CSV to ODBC

This is a sample to change the alarm CSV of the standard project to alarm ODBC (SQLServer). Table definition files for each DBMS are included.

Change the standard framework's Alarm server from CSV to ODBC

 

 

Save comments of various data types with Alarm ODBC

This is a sample that saves tag comments of various data types to a database using Alarm ODBC (SQLServer). Table definition files for each DBMS are included.

Add an alarm field to a DB-based alarm

 

Creating your own alarm screen

Unique alarm summary screen

This is an example of creating a unique alarm summary screen without using a screen library.

Create your own alarm summary screen

 

 

Unique alarm real-time display

This is an example of creating a unique real-time alarm screen without using a screen library.

 

*The download file is the same as above.

 

Create your own real-time alarm screen

 

 

Unique alarm history screen

This is an example of creating a unique alarm history screen without using a screen library.

 

*The download file is the same as above.

 

Create your own alarm history screen

Logging/Trend/Daily Report

Summary action setting sample

Summary action master setting example

This is a sample of each master file setting for summary actions.

Summary action configuration file and folder structure

 

Trend graph customization example

Include calculation results in the log

This is a sample that includes the results of tag calculations performed by a script before the action is executed in the log and displays them on a trend graph.

Display the results of tag calculations in a graph

 

 

Graph display when data is missing

This is an example of customizing the graph display when data is missing.

Customizing graph display when data is missing

 

 

Displaying power factor on a trend

This is an example of displaying power factor on a trend graph.

Displaying power factor on trend graph

 

 

Sample of original trend graph screen

This is a sample for displaying a unique trend graph on the user screen using Histrical data graph control.

Display your own trend graph on the user screen

 

 

Change Standard Summary CSV to ODBC

This is a sample that changes the standard Summary CSV action to a Summary ODBC action.

Change summary action from CSV to ODBC

 

 

Graphical display of long-term data

This is an example of displaying long-term data on a trend graph.

Displaying long-term data on trend graphs

 

 

Graphical display of aggregated data

This is an example of displaying aggregate data such as Daily/Monthly/Yearly Report in a trend graph.

Display aggregated data on trend graphs

 

Using Historical data server

Trend graph display via Historical data server (CSV)

This is a sample that displays a trend graph via Historical data server (CSV).

Display trends of log data from external systems via CSV

 

 

Trend graph display via Historical data server (ODBC)

This is a sample that displays a trend graph via Historical data server (ODBC). Table definition files for each DBMS are included.

Trend display of log data from external systems via ODBC

 

 

Accessing Historical data server (CSV) from a script

This is a sample that retrieves log data from a client script (SC2) via Historical data server (CSV) and displays it in Grid control.

Get log data from a script

 

Logger action examples

Logging to CSV

This is an example of setting up logging to a CSV file using the Logger (CSV) action.

Export log data to CSV (Logger CSV)

 

 

Logging to a ODBC database

This is an example of setting up logging to a database using the Logger (ODBC) action. Table definition files for each DBMS are included.

Write log data to DB (Logger ODBC)

 

 

Event-based logging example

This is a configuration example for logging event-type logs using the logger (CSV) action.

Logging by Tag event

 

 

Controlling when logging starts and stops

This is an example that uses the tag value as a trigger to control the start/stop of logging.

Controlling start/stop of logging

 

 

Include calculation results in the log

This is a sample that uses a script before the action is executed to perform calculations between tags and include the results of the calculation in the log data.

Include tag calculation results in log

 

 

Logging large amounts of data with array tags

This is an example of a setting for logging large amounts of data using array tags.

Logging large amounts of data using array tags

 

 

Output alarm history with event-type log

This is a sample that uses an event-based log to output alarm history.

Record alarm history with event-based logging

 

 

Controlling logging with PLC triggers

This is a sample that receives a logging request from a PLC to a tag and controls the start/stop of logging using the tag value as a trigger.

Receive a logging request from the PLC

 

 

Periodic event logging

This is a sample that performs event-based logging at regular intervals.

Log periodically using event-based log format

 

 

Dynamically change the log file name

This is a sample that dynamically changes the file name of the CSV file that is the logging output destination.

Dynamic change of CSV log file name

Operation monitoring

Operational monitoring practice

Introduction level 1) Simple operation monitoring

This is an example of a simple operation monitoring setting.

Implementation level 1) Simple operation monitoring

 

 

Implementation level 2) Detailed operation monitoring

This is an example of detailed operation monitoring settings.

Implementation level 2) Detailed operation monitoring

 

 

Implementation level 3) Understanding production results

This is a configuration example that adds production results to detailed operation monitoring.

Introduction level 3) Understanding production results

Energy Management (EMS)

Energy Management Configuration Examples

Group setting example

This is a specific example of graph group and point group settings on the energy management screen. It can be used as a reference when actually managing energy.

Energy management practices

 

Top of page

■ Building server logic

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

action

External application execution

External application execution Sample

This is an example using the External application execution action.

Run an external application

 

Batch transfer

Batch transfer (Text → Tag)

This is an example of the Batch transfer (text → tag) action.

Write text value to tag (Batch transfer)

 

 

Batch transfer (tag → text)

This is an example of the Batch transfer (tag → text) action.

Write tag value to text (Batch transfer)

 

 

Batch transfer (ODBC → tag)

This is a sample of the Batch transfer (ODBC → Tag) action. It includes table definition files for each DBMS.

Write DB values to tags (Batch transfer)

 

 

Batch transfer (Tag → ODBC)

This is a sample of the Batch transfer (tag → ODBC) action. It includes table definition files for each DBMS.

Write tag values to the database (Batch transfer)

 

Tag Bridge

Tag bridge (building a gateway between PLC)

This is a sample that uses a tag bridge action to build a gateway for sharing data between PLC.

Build a gateway between PLC

 

 

Tag Bridge (Array Tag Example)

This is an example of bulk transfer using array tags in a tag bridge action.

Build a gateway between PLC

 

Dial-up

Dial-upAction sample

This is an example using the Dial-up action.

Dial-upMake a connection

 

File operation

File operationAction sample

Here is an example of using the File operation action to copy a file to another folder.

Copy the file to another folder (File operation)

 

File backup

File backupAction sample

This is an example of using the File backup action to create a backup of a specified folder.

Back up the specified folder (File backup)

 

FTP transfer

FTP Sending sample

This is a sample that uses the FTP transfer action to transfer a file on your PC to a FTP server.

Send and receive files with FTP

 

 

FTP receiving sample

This is a sample that uses the FTP transfer action to transfer a file on the FTP server to a PC.

Send and receive files with FTP

 

Send mail

Send mail sample

This is a sample of the Send mail action that uses Tag event as a trigger to perform Send mail at any timing.

Send an email using the tag value as a trigger

 

 

Send mail Sample (attached file)

This is an example of using the Send mail action to send an email with an attachment (an example of combining the Tag report action and the Send mail action).

Include the tag value in the email body and send it

 

 

Send mailSample (Edit the email body)

This is an example that expands on the above and updates the email body itself.

Include the tag value in the email body and send it

 

Screenshots

Screenshot action sample

This is an example of using the screenshot action to create a screenshot of the PC on which the server is running.

Take a screenshot

 

Script Ver1 (SC1)

Example of tag calculation by SC1

SC1 sample. This is a sample that performs calculations between tags using Periodic event.

Perform calculations between tags at regular intervals (SC1)

 

Script Ver2 (SC2)

SC2 Sample (Major Events)

This is a sample that covers major event handling in SC2 scripts.

Script Ver2 event usage example

 

 

SC2 Sample (Database Access)

A sample of database access via DirectQuery from SC2 scripts. Includes table definition files for each DBMS.

Access the database from script Ver2

 

 

SC2 Sample (Access to Historical data server)

This is a sample of connecting to Historical data server from an SC2 script to obtain time series data.

Get historical data from script Ver2

 

 

SC2 Sample (Accessing Tags)

This is a sample of periodically accessing tags from an SC2 script.

Access tags periodically from script Ver2

 

 

SC2 sample (detecting changes in tag values)

This is an example of detecting changes in tag values from an SC2 script.

Detecting changes in tag values from script Ver2

 

shutdown

Shutdown action sample

This is an example of using the shutdown action to terminate the Server application.

Terminate the Panel Server application

 

Execute SQL

Execute SQLAction sample

This example uses the Execute SQL action to execute SQL statements (INSERT, DELETE) using Tag event as a trigger. Table definition files for each DBMS are included.

Execute SQL on the server side (Execute SQL (ODBC))

 

Tag report

Example of embedding tag values in HTML files

This is an example of how to use the Tag report action to insert tag values into a HTML file and dynamically update the HTML file.

Embed tag values in text files such as HTML

 

 

Sample of embedding tag values in HTML files (automatic screen update)

This is an example that adds automatic display updates using JavaScript to the above example.

Embed tag values in text files such as HTML

 

Time sync

Time syncAction sample

This is an example of using the Time sync action to write the PC time to a specified tag.

Perform PLC with the PC

event

Event handling example

Enabling and disabling events by bit tag

This is an example that enables an event when the bit is ON.

Enable the event only while the bit is ON

 

 

Enabling and disabling events by time

This is an example of enabling an event for a certain period of time (using a time bit tag).

Enable an event for a certain period of time

 

 

Enabling and disabling events based on tag values

This is an example that uses Tag event to switch the events to be enabled depending on the tag value.

Switch events according to conditions

 

 

Execute an event a specified number of times

This is an example of executing an event a specified number of times.

Execute the event a set number of times

 

Top of page

■ Tags

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

tag

Alias tag

Sample of Alias tag

This is an example of using the Alias tag function. Using Alias tag, you can access tags by a name (alias name) different from the actual tag name.

Alias tag

 

Tag Comment

Bulk registration of tag comments

This is a sample file used in this manual to describe the bulk registration operation of tag comments.

Tag comment

 

Tag Filter

Automatically convert tag values based on the contents of the table file

This is an example of using the tag filter function "Refer to table file and convert to numeric or string" to automatically replace tag values according to values defined in a file.

Tag filter list

 

Top of page

■ Interface

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

DDE

Connection example using DDE

DDE connection from a cell in Excel

This is a sample of DDE connection from a cell in Excel.

DDE connection from a cell in Excel

 

 

DDE connection from VB.net2010 app

This is a sample of DDE connection from VB.net2010 application.

DDE connection from VisualBasic.NET

 

 

DDE connection from ExcelVBA

This is a sample of DDE connection from ExcelVBA.

DDE connection from ExcelVBA

 

 

DDE connection from ExcelVBA (Example using array)

This is a sample that uses an array and makes a DDE connection from ExcelVBA.

DDE connection from ExcelVBA

OPC

Testing connection with OPC client

Sample server configuration file used in the manual

This is a sample server configuration file provided in the manual procedure for testing a connection using the OPC Connection Test Client Tool (OPCTestClient.exe).

Test client

 

Connection from VB.net 2010

OPC connection from VB.net2010 app

This is a sample of OPC connection from the VB.net2010 app.

OPC connection from VisualBasic.NET

IPLink

IPLink client library

 

Monitoring via IPLink

This is a sample app that monitors tags via IPLink from the VB.net2010 app.

Monitoring

 

 

Tag loading via IPLink

This is a sample app that reads tags from the VB.net2010 app via IPLink.

Loading data

 

 

Tag writing via IPLink

This is a sample app that writes tags via IPLink from the VB.net2010 app.

Writing data

 

 

Example of using array tags with IPLink

This is a sample app that handles large amounts of data using array tags via IPLink from the VB.net2010 app.

How to handle large amounts of data

 

 

Example of accessing tags from multiple forms simultaneously using IPLink

This is a sample of connecting multiple forms simultaneously via IPLink from the VB.net2010 app.

How to use multiple forms

 

 

Sample of connecting to a duplicated server using IPLink

This is a sample of connecting to a redundant server via IPLink from the VB.net2010 app.

Connection to duplicated operation server

 

 

Non-KVB.net samples

VC++ is a reference sample of using the IPLink client library from a C# application.

IPLink client library sample collection

 

Top of page

■ Server duplication

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

Server duplication

Operational status monitoring

Displaying the duplex operation status on the screen

This is a sample that displays the operation status of the duplex system on the monitoring screen by binding the system property of the duplex interface.

Operation of a redundant system

 

Top of page

■ Communication performance

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

Communication Performance

Communication Performance

Communication performance measurement sample

This is a sample configuration file used to measure the communication performance described in this manual.

Communication performance

 

Top of page

■Other

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

others

Browser ActiveX

A sample of embedding and displaying a monitoring screen in the VB.net2010 app

This is a sample that embeds and displays a client configuration file via Browser ActiveX on a VB.net 2010 application form.

Steps for embedding in a VB application

 

Old IE (IE11 and earlier)

Sample of displaying the screen using IE11 and earlier versions

This is a sample for when using versions prior to IE11 (a sample that displays the screen via a web browser control attached to a form).

If you are using a version earlier than IE11

 

Top of page