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

 

 

■Client

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

FA-Client

FA-Client Settings

Client Connection Sample

This is a sample of connection settings from FA-Client to FA-Server.

Client Configuration Guide

 

Top of page

■ Construction of main functions

 

Category 1

Category 2

Sample Name

Contents

Manual reference (link)

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

 

 

Displaying power factor on a trend

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

Displaying power factor on trend graph

 

 

Change Standard Summary CSV to ODBC

This is a sample that changes the standard Summary CSV action to a Summary ODBC action. Table definition files for each DBMS are included.

Change summary action from CSV to ODBC

 

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

 

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

 

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.

Close the FA-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