Connect to a SQL Database with Monitouch



Similar documents
CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

How to Connect to CDL SQL Server Database via Internet

Video Administration Backup and Restore Procedures

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

Querying Databases Using the DB Query and JDBC Query Nodes

Installing SQL Express. For CribMaster 9.2 and Later

Print Audit 6 - SQL Server 2005 Express Edition

Migrating helpdesk to a new server

The manual contains complete instructions on 'converting' your data to version 4.21.

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

Installing Cobra 4.7

Jolly Server Getting Started Guide

Active Directory Integration for Greentree

Setting up an MS SQL Server for IGSS

EMR Link Server Interface Installation

1. Technical requirements 2. Installing Microsoft SQL Server Configuring the server settings

User Setup for SQL Security

How To Use Exhange On Outlook On A Pc Or Macintosh Outlook 2007 On Your Pc Or Ipad (For Windows Xp) On Your Ipad Or Ipa (For Your Windows Xp). (For A Macintosh) On A

NetSupport DNA Configuration of Microsoft SQL Server Express

QUANTIFY INSTALLATION GUIDE

Install MS SQL Server 2012 Express Edition

How To Upgrade a local MSDE database to an SQL Server

Matisse Installation Guide for MS Windows. 10th Edition

Setting Up ALERE with Client/Server Data

Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports

ACCESSING IBM iseries (AS/400) DB2 IN SSIS

Basic SQL Server operations

Creating a System DSN for Crystal Reports to Access a Sentinel Server Database. Configuration Guide Version 1.0

ODBC Driver Version 4 Manual

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

System Area Management Software Tool Tip: Integrating into NetIQ AppManager

Backup/Restore Microsoft SQL Server 7.0 / 2000 / 2005 / 2008

Installing the BlackBerry Enterprise Server Management console with a remote database

These notes are for upgrading the Linko Version 9.3 MS Access database to a SQL Express 2008 R2, 64 bit installations:

Connecting to SQL server

SQL EXPRESS INSTALLATION...

ODBC Client Driver Help Kepware, Inc.

How To Configure Windows Server 2008 as a RADIUS Server with MS-CHAP v2 Authentication

Define ODBC Database Library using Management Console

MS SQL Express installation and usage with PHMI projects

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

Reporting works by connecting reporting tools directly to the database and retrieving stored information from the database.

Linking Access to SQL Server

Crystal Reports Installation Guide

Connect to MySQL or Microsoft SQL Server using R

Managing MSDE with TOAD

Instructions. Introduction

The purpose of this document is to describe how to connect Crystal Reports with BMC Remedy AR System using ODBC.

Migrating a Database from Legi for Windows 2.X to MS Access

9. Database Management Utility

ilaw Installation Procedure

Connecting to Manage Your MS SQL Database

MS SQL 2000 Server with CDR DICOM 3.5 and Recommended WAN Configuration

Installing RMFT on an MS Cluster

DigiVault Online Backup Manager. Microsoft SQL Server Backup/Restore Guide

Accessing a Microsoft SQL Server Database from SAS on Microsoft Windows

How to gain direct access to SQL Server at Garching via SSH

The following items are trademarks or registered trademarks of Kaba Mas in the United States and/or other countries. GITCON

Archive Server for MDaemon disaster recovery & database migration

Installing LearningBay Enterprise Part 2

Linko Software Express Edition Typical Installation Guide

MX-Contact Instruction Sheet: Importing Data Business Contact Manager

NetSupport DNA Configuration of Microsoft SQL Server Express

Shellfire L2TP-IPSec Setup Windows XP

Database Assistant. Once Database Assistant is installed you must login to gain access to the database. Copyright 2009

IMF Tune Quarantine & Reporting Running SQL behind a Firewall. WinDeveloper Software Ltd.

Using Windows Task Scheduler instead of the Backup Express Scheduler

Microsoft Office 365 with MailDefender

Issue Tracking Anywhere Installation Guide

MS SQL Installation Guide

Installing T-HUB on multiple computers

3 Setting up Databases on a Microsoft SQL 7.0 Server

Operating System Installation Guide

Using MS-SQL Server with Visual DataFlex March, 2009

MS SQL Server Database Management

SQL Tuning and Maintenance for the Altiris Deployment Server express database.

DB Administration COMOS. Platform DB Administration. Trademarks 1. Prerequisites. MS SQL Server 2005/ Oracle. Operating Manual 09/2011

Creating IBM Cognos Controller Databases using Microsoft SQL Server

Xopero Backup Build your private cloud backup environment. Getting started

Windows Clients and GoPrint Print Queues

Database Selection Guide

Moving the TRITON Reporting Databases

Using ODBC with MDaemon 6.5

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

Application Note 116: Gauntlet System High Availability Using Replication

Larger, active workgroups (or workgroups with large databases) must use one of the full editions of SQL Server.

INSTALLING AND MANAGING DATABASES WITH PRIMAVERA P6 PRO RELEASE 8.2

1 of 10 1/31/2014 4:08 PM

SafeCom G2 Enterprise Disaster Recovery Manual

PRIME Installation Guide

Installation Guide v3.0

The FlexiSchools Online Order Management System Installation Guide

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

How to Copy A SQL Database SQL Server Express (Making a History Company)

Moving a database from MS Access to MS SQL server. Introduction. Selecting the database. Creating a Data Source

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

Release Notes For Versant/ODBC On Windows. Release

Guidelines for Installing SQL Server and Client (SQL Server Management Studio)

Transcription:

Connect to a SQL Database with Monitouch Monitouch HMI Technical Note TN-MH-0015a Table of Contents 1. Introduction...2 2. Requirements...2 3. Configure the Database...2 4. Configure the ODBC Driver...4 5. Configure V-SFT...7 6. For More Information...9 Monitouch HMI Division of Fuji Electric Corp. of America 55 Westech Drive Tyngsboro, MA 01879 Phone: (978) 649-8383 Toll Free: (866) 838-4031 Fax: (978) 649-0090 E-Mail: Support@MonitouchHMI.com Website: June 8, 2006 p. 1 of 9

1. Introduction This document describes how to connect to a SQL database from a Monitouch panel. There are several components to the system: SQL Database, ODBC Driver, V-Server and Monitouch. This has been tested with an MSDE installation and with a SQL server installation. The database can be on any PC on a network. The V-Server installation needs to be on the same PC as the ODBC driver, but it does not need to be on the same PC as the database. A minimal amount of database experience is required to configure the database and ODBC driver correctly. 2. Requirements 1) V-SFT programming software. 2) MSDE installation or SQL Server 3) V-Server 4) Monitouch panel with Ethernet (V7i series, V706 series or V715) 3. Configure the Database 1) For this technical note we will assume that we are using an instance of MSDE. When installing MSDE, set the command line parameters of SAPWD= monitouch and SECURITYMODE= SQL. 2) You can configure the database through SQL Enterprise Manager or MS Access. We will use MS Access for this technical note. Click File New and select Project using new data Enter a file name for the project June 8, 2006 p. 2 of 9

Select the SQL server (it should be (local) if you used the default for the MSDE installation. Then enter the login and password from the MSDE installation. Then give a name to the new Database. Create your database as required. For this test we will make a single table with user names and passwords. 1 Click on Tables and click New to create a new table. 2 In this example we will create 3 columns: 1. VsPrimaryKey (varchar, 26 bytes) 2. UserName (varchar, 50 bytes) 3. Password (varchar, 4 bytes) June 8, 2006 p. 3 of 9

3 Right-click on VsPrimaryKey and select Primary Key 4 5 Save the table as Users Open the table and enter: 6 Save and close the table 4. Configure the ODBC Driver 1) Open Windows Control Panel and click on Administrative Tools 2) Open Data Sources (ODBC) 3) Click on System DSN and Add June 8, 2006 p. 4 of 9

4) Select the SQL Server driver and follow the Wizard Step 1 gives a name and description as well as the SQL server Step 2 Enter the user data. Change to the SQL Authentication and enter the user data from the MSDE installation (User = sa, password = monitouch) June 8, 2006 p. 5 of 9

Step 3 Change the default database to the one that was created in Access (Monitouch_DBConnect) Step 4 Settings in the Database (defaults usually OK) June 8, 2006 p. 6 of 9

Test the ODBC driver to confirm the settings. Click OK and you are done. 5. Configure V-SFT 1) Create a new application for the appropriate Monitouch model and PLC. 2) We will first create a macro that will return all of the Users and their passwords. Click Item Macro Block 0 and enter (comments optional): First Clear all of the memory This is the return memory $u04000=0 C:1000(FILL) This is the Send memory $u01000=0 C:200(FILL) Command Header Command ID for V-Server $u01000='vsvr' Database command ID - Search $u01002=1000 (W) ODBC Driver name $u01003='monitouchdb' User Name, password for DB access $u01019='sa' $u01035='monitouch' Table Name $u01051='users' Return Data (Indirect Add.) $u3998 = Result Code (0=good) $u3999 = Number of records returned $u4000 = First record starts $u01115=0 (W) $u01116=3998 (W) $u01117=0 (W) $u01118=0 (W) $u01119=0 (W) Search Conditions - Search 1 Column $u01120=1 (W) Number of columns to return $u01121=2 (W) Max Number of record to return $u01122=50 (W) Search Data Length of Column name in Words (2 chars = 1 word) $u01128=4 (W) June 8, 2006 p. 7 of 9

Search Criteria $u01129=060ch (W) Search Length $u01130=25 (W) Column Name $u01131='username' Search Data $u01135='%' Return Data - Column 1 Return Column 1 Name Length $u01160=4 (W) Return Column 1 Data Type $u01161=010ch (W) Return Column 1 Data Length $u01162=25 (W) Return Column 1 Name $u01163='username' Return Data - Column 2 Return Column 2 Name Length $u01167=4 (W) Return Column 2 Data Type $u01168=000ch (W) Return Column 2 Data Length $u01169=2 (W) Return Column 2 Name $u01170='password' SEND data to V-Server SEND $u01000 C:180 TO: 1:192.168.0.23(PC) Technical Note TN-MH-0015a 3) Place these items on Screen 0: Numerical Display for $u3998 (5 digits) Numerical Display for $u3999 (2 digits) Character Display for $4000 (25 bytes) Character Display for $4025 (4 bytes) Character Display for $4027 (25 bytes) Character Display for $4052 (4 bytes) Character Display for $4054 (25 bytes) Character Display for $4079 (4 bytes) Character Display for $4081 (25 bytes) Character Display for $4106 (4 bytes) Character Display for $4108 (25 bytes) Character Display for $4133 (4 bytes) Switch with an ON Macro to Call Macro Block 0 4) Download to the Panel June 8, 2006 p. 8 of 9

5) Confirm that V-Server is running (no setup required) and press the switch. The returned data should appear as shown below. 6. For More Information 1) V-Server Application Database Function Manual 2) Microsoft SQL website: http://www.microsoft.com/sql/default.mspx June 8, 2006 p. 9 of 9