OCS Training Workshop LAB13. Ethernet FTP and HTTP servers



Similar documents
Setting up a site directly to the H-drive in Dreamweaver CS4

Table of Contents. Welcome Login Password Assistance Self Registration Secure Mail Compose Drafts...

Manual Password Depot Server 8

An Introduction To The Web File Manager

IIS, FTP Server and Windows

IP Phone Services Configuration

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Coveo Platform 7.0. Microsoft Dynamics CRM Connector Guide

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Getting Started Guide for FTP

Working With Your FTP Site

LabVIEW Internet Toolkit User Guide

Tableau Server Trusted Authentication

C-more Remote Access, Data Log, FTP File Transfer, and Tutorial

Using SSH Secure FTP Client INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 2.0 Fall 2008.

Xerox 700 Digital Color Press with Integrated Fiery Color Server. Printing from Mac OS

How to FTP (How to upload files on a web-server)

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

NAS 109 Using NAS with Linux

Configuring Web services

Serving tn5250j in Web Documents from the HTTP Server for iseries

Dreamweaver Tutorials Creating a Web Contact Form

Configure the idrac Remote Access Console

Using RADIUS Agent for Transparent User Identification

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

STORAGE SYSTEM DATALOGGER DATABASE

Technote 20 Using MSIE to FTP into an AcquiSuite

MS Outlook 2002/2003. V1.0 BullsEye Telecom

How To Use The Unify Intelligence Center On A Pc Or Macbook Or Macrocessor On A Computer Or Macosade On A Macbook (For Macro Recipebook) On A Mobile Device On A Web Browser On A Desktop Or

Using Logon Agent for Transparent User Identification

While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied.

BusinessObjects Enterprise XI Release 2

Chapter 5 Configuring the Remote Access Web Portal

SonicOS Enhanced 3.2 LDAP Integration with Microsoft Active Directory and Novell edirectory Support

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Security Guidelines for MapInfo Discovery 1.1

Uploading Your Bidding Documents Table of Contents

If you examine a typical data exchange on the command connection between an FTP client and server, it would probably look something like this:

End User Guide The guide for /ftp account owner

Configuring.NET based Applications in Internet Information Server to use Virtual Clocks from Time Machine

Creating Personal Web Sites Using SharePoint Designer 2007

McAfee Cloud Identity Manager

Basic Web Fullerton College

McAfee Cloud Identity Manager

System Administration and Log Management

Configuring Notifications for Cisco Unified MeetingPlace Express

3.5 EXTERNAL NETWORK HDD. User s Manual

Ethernet. Customer Provided Equipment Configuring the Ethernet port.

This document details the following four steps in setting up a Web Server (aka Internet Information Services -IIS) on Windows XP:

Managing the System Event Log

ThinManager and Active Directory

How to Join QNAP NAS to Microsoft Active Directory (AD)

Uploading files to a web server using SSH Secure Shell 3.2.9

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

Drop Shipping. Contents. Overview 2. Quick Tips 3. Basic Setup 4. Drop Ship Options 5. File Pickup Options 6. Messages 8

Managing Identities and Admin Access

Vantage RADIUS 50. Quick Start Guide Version 1.0 3/2005

Siteminder Integration Guide

Novell Filr. Windows Client

AXIS 70U - Using Scan-to-File

HTML Code Generator V 1.0 For Simatic IT Modules CP IT, IT, IT

Desktop Web Access Single Sign-On Configuration Guide

Embedded Document Accounting Solution (edas) for Cost Recovery. Administrator's Guide

Pervasive SQL 9 Client/Server Installation and Configuration

Managing Ports and System Services using BT NetProtect Plus firewall

Making the Most of Files & Folders. Schoolwires Centricity2

Gigabyte Content Management System Console User s Guide. Version: 0.1

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2.

WS_FTP Server. User s Guide. Software Version 3.1. Ipswitch, Inc.

Managing the System Event Log

Connecting to a Soundweb TM. London Network

Packet Capture. Document Scope. SonicOS Enhanced Packet Capture

Content Filtering Client Policy & Reporting Administrator s Guide

Chapter 15: Forms. User Guide. 1 P a g e

MailEnable Connector for Microsoft Outlook

Spectrum Technology Platform. Version 9.0. Administration Guide

User's Guide. Product Version: Publication Date: 7/25/2011

CGS 1550 File Transfer Project Revised 3/10/2005

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

EXTENDED FILE SYSTEM FOR FMD AND NANO-10 PLC

Steltronic Focus. Main Desk Internet connection

Installing Microsoft Exchange Integration for LifeSize Control

Easy Setup Guide for the Sony Network Camera

Andover Continuum. Network Security Configuration Guide

Configuring the WT-4 for ftp (Ad-hoc Mode)

Managing User Security: Roles and Scopes

Chapter 1 Introduction to web development and PHP

Managed Devices - Web Browser/HiView

Rebasoft Auditor Quick Start Guide

Managing the System Event Log

NETWORK PRINT MONITOR User Guide

IP Phone Configuration and Troubleshooting Guide

Using SQL Reporting Services with Amicus

Jim2 ebusiness Framework Installation Notes

GV-Data Capture V3 Series User's Manual

LifeSize Control Installation Guide

You can view, download or upload files through the WEB interface or FTP link depending on Type of access you have been granted.

PageScope Router. Version 1.5. Configuration Guide

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Transcription:

OCS Training Workshop LAB13 Ethernet FTP and HTTP servers

Introduction The training module will introduce the FTP and Web hosting capabilities of the OCS product family. The user will be instructed in setting up the FTP server and Web server sections of the OCS firmware. The training does not aim to give instruction in web page creation. Ethernet FTP server FTP Technicalities File Transfer Protocol (FTP) is a standard Client/Server Internet protocol, based on RFC959, which supports efficient and reliable file transfers over a TCP/IP network. In this context, the Ethernet Module acts as an FTP Server, that will respond to file transfer requests from one or more FTP Clients. Note: FTP protocol is supported only by OCS Models which have built-in Ethernet and an OCS file system with removable media (such as Compact Flash or MicroSD). For OCS Models that do not have an OCS file system, the FTP (File Transfer) checkbox will be grayed out in the Ethernet Module Configuration dialog. To enable and configure the FTP support for an OCS select the Ethernet Module Configuration and then tick the FTP (File Server) box. With the box still selected click the Configure Selected Protocol button to configure FTP access. www.horner-apg.com 2

Configuring FTP Access The Ethernet Module s FTP Server supports both anonymous and authenticated file transfers between an FTP Client and the OCS file system. Authenticated file transfers require that the FTP Client provide one of two possible User Name and Password pairs, before the OCS file system can be accessed. www.horner-apg.com 3

Properly authenticated, an FTP Client can access OCS file system functions, which include file read, file create, file delete, file rename, file write, directory read, directory create and directory delete. During FTP configuration the user can optionally set up two supported FTP Accounts as User 1 and/or User 2 as follows: User Name: Enter an alphanumeric string (up to 40 characters) for the FTP Client s User Name. Password: Enter an alphanumeric string (up to 40 characters) for the FTP Client s Password. Read Only: Select this option to give the FTP Client read-only access to the OCS file system. Read / Write: Select this option to give the FTP Client read-write access to the OCS file system. User Names and Passwords are case-sensitive and, by default, are empty for both User 1 and User 2. In this case, anonymous FTP Clients can access OCS files, but file access will be read-only. In a typical application, both User 1 and User 2 will be configured - one with read-only access and the other with read-write access. When using FTP to exchange files with an OCS, the user should know that the OCS file system implements an 8.3 filename format, which means file and directory names consist of up to 8 characters, followed by an optional dot, and an optional extension with up to 3 characters. www.horner-apg.com 4

Try setting the following FTP configuration : Sample FTP Session With the above configuration loaded to OCS and removable media fitted to the unit, run the standard FTP package supplied with windows from a command prompt. www.horner-apg.com 5

Using Microsoft Explorer as FTP client. Microsoft Explorer can also be used as an FTP client as above but beware! Previous versions of Explorer have not always adhered strictly to the FTP and standard and not all functions worked. File Conflicts The OCS file system allows multiple concurrent file accessing. For example, an FTP Client can read a file at the same time the OCS ladder program is logging data to it. If there is a file access conflict, such as an FTP Client attempting to delete a file that is currently being read or written by ladder, the file delete request is denied and an error response is sent to the FTP Client. www.horner-apg.com 6

Ethernet Web server Simply select the HTTP tick box to enable the web server functionality. The Web server can be password protected to avoid unauthorised access (user name and password can be up to 40 characters long) The web server retrieves files stored on CompactFlash and sends them to the client. The user has the possibility of displaying register values from html pages as well as sending values to the OCS. Files are stored on CompactFlash in 8.3 file format. There is no default page access. The client has to specify a full url (e.g. 192.168.254.128/index.htm) Custom HTML files are created to suit the application. These files can be created with a simple text editor or with a 3rd party HTML Editor. Within the static HTML file, <iframe> and <form> tags respectively read and write OCS Register data, by referencing two specially named dynamic HTML files (readreg.htm and writereg.htm). www.horner-apg.com 7

A Simple Web Page Create a file Index.Html with the following contents: <HTML> <HEAD> <TITLE> OCS Web Browser Demonstration</TITLE> </HEAD> <BODY> <COMMENT> Test File </COMMENT> Some Text </BODY> </HTML> And transfer this to the root directory of the Removable media card on the target OCS. (Perhaps using FTP) Once the file is there use start Internet explorer and select URL http://10.1.2.189/index.html to view the page. www.horner-apg.com 8

Embedding Live OCS Data within an HTML Page The read register operation is performed within an IFRAME tag. <iframe src="readreg.htm;reg-r11;fmt-uint;rfs-2"> </iframe> Reads R11 in UINT format and refreshes the value every 2 seconds. The formats available are: BOOL, BOOL-<on text>-<off text>, BIN, HEX, INT, UINT, DINT, UDINT, REAL, REAL-E, ASCII-<num characters> and IPADR Modify the Index.Html to contain the following <HTML> <HEAD> <TITLE> OCS Web Browser Demonstration</TITLE> </HEAD> <BODY> <COMMENT> Test File </COMMENT> <p>some Text</p> <p> R1 = <iframe src="readreg.htm;reg-r1;fmt-uint;rfs-2" height="30" width="50" marginwidth="0" marginheight="0" align="middle"></iframe> </p> <p> R11 = <iframe src="readreg.htm;reg-r11;fmt-uint;rfs-2" height="30" width="50" marginwidth="0" marginheight="0" align="middle"></iframe></p> </BODY> </HTML> And transfer the updated file to the removable media. Refresh your internet browser to see the live values on screen. The refresh rate may be from 0 to the limits set by the browser. If this parameter is omitted the page has to be refreshed manually. When using an Internet Explorer browser to view OCS web pages that employ the rfs parameter, the browser plays the currently configured Start Navigation sound (a short tick by default) for each refresh. To disable the ticking, (1) open the Windows Control Panel, (2) click the Sounds or Sound and Audio Devices icon or link and (3) turn off the Start Navigation sound by selecting (None) for it in the drop-down list. www.horner-apg.com 9

Updating OCS Register Data from an HTML Page The write register operation is performed within a FORM tag. <form action="writereg.htm;reg-r6;fmt-uint" method="post"> <input type="text" name="value" value="0" /> <input type="submit" value="send" /> </form> This will write a value into %R6 when the Send button is pressed. Important: The OCS HTTP Server requires the name= value attributes to appear exactly as shown. Modify the Index.Html to contain the following <HTML> <HEAD> <TITLE> OCS Web Browser Demonstration</TITLE> </HEAD> <BODY> <COMMENT> Test File </COMMENT> <p>some Text</p> <p>r1 = <iframe src="readreg.htm;reg-r1;fmt-uint;rfs-2" height="30" width="50" marginwidth="0" marginheight="0" align="middle"></iframe> </p> <p>r11 = <iframe src="readreg.htm;reg-r11;fmt-uint;rfs-2" height="30" width="50" marginwidth="0" marginheight="0" align="middle"></iframe></p> <p><form action="writereg.htm;reg-r6;fmt-uint" method="post"> <input type="text" name="value" value="0" /> <input type="submit" value="send" /> </form></p> </BODY> </HTML> www.horner-apg.com 10

Other Data Formats. As well as UINT the following data types are supported in Fmt field: fmt BOOL fmt BOOL ON OFF fmt BOOL YES NO fmt BIN fmt HEX fmt INT fmt UINT fmt DINT fmt UDINT fmt REAL fmt REAL E fmt ASCII 10 fmt IPADR Investigate use of some of these formats with the Embedded Data Read and Write items. Remember previously we loaded the Unit s IP Address in to a Register pair in the OCS as part of the Ethernet configuration try displaying this as part of the Web page using the fmt-ipadr format. www.horner-apg.com 11

Java Applets It is recommended to remove the password option before running the Java Applet example. Copy the file set from the directory JavaAppletDemo on the accompanying CD and Java Applets may be embedded on an OCS page to give a more integrated feel to the embedded web pages. Collect the Java applets together and store them in the same directory of the removable media card as the HTML page which ties them all together Note that the filing system on the OCS only supports 12 character file names typically java applets will be renamed in 6.5 form where the file extension is.class End of LAB 13 www.horner-apg.com 12