webaccess教程-第2章
- 格式:doc
- 大小:6.88 MB
- 文档页数:73
1.1 Web Cache重定向简介通常情况下,用户通过HTTP(Hypertext Transfer Protocol,超文本传输协议)访问Web页面,获取所需信息。
在典型的组网环境中,用户通过局域网连接到Internet。
随着局域网内用户数量的增多、获取信息的内容不断丰富,连接局域网与Internet 之间的链路需要处理大量的HTTP流量,影响其他业务流量的正常处理。
通过设置Web缓存服务器,可以减少局域网与Internet连接链路的压力,同时提高用户获取信息的速度。
S3600-EI系列以太网交换机提供了Web Cache重定向功能,可以将用户访问Web 页面的报文重定向到Web缓存服务器。
Web Cache重定向功能实现如图1-1所示。
图1-1 Web Cache重定向功能示意图在上图中,PC 1和PC 2代表交换机下挂的局域网中的用户,分为属于VLAN 10和VLAN 20;PC 1的网关设置为VLAN 10接口的IP地址,PC 2的网关设置为VLAN 20接口的IP地址。
Web Cache Server是存储了局域网用户经常访问的Internet信息的服务器,属于VLAN 30。
交换机通过VLAN 40与路由器连接。
正常情况下,PC 1和PC 2访问Internet的报文通过VLAN 40转发给路由器,然后通过路由器发送到Internet。
在交换机上启动了Web Cache重定向功能以后,PC 1和PC 2通过HTTP 协议访问Internet的流量会经过VLAN 30被重定向到Web Cache Server上:●如果Web Cache Server上有用户需要的内容,Web Cache Server就会直接将这些内容返回给用户,用户无需访问Internet即可获取信息;●如果Web Cache Server上没有用户需要的内容,Web Cache Server会从Internet上获取信息,然后返回给用户。
http_web_cacheHTTP Web Cache程序资源的访问具有局部性时间局部性:⼀个被访问过的资源很有可能在近期被再次访问。
空间局部性:⼀个被访问过的资源,它的周边资源很有可能被访问到。
如何衡量缓存的有效性?衡量⼀个缓存的有效性,主要标准是命中率,命中率计算指标有两种,⼀是⽂档命中率,是指⼀个uri指定的资源被命中;⼆是字节命中率,是指缓存命中的数据的⼤⼩。
公式:命中率=hit/(hit+miss)。
缓存哪些内容?数据具有热点性:热点即经常被访问到的数据。
⼀般遵循⼆⼋法则,经常被访问的是20%的数据,其他80%不会被经常访问。
那么我们的缓存就应该缓存这20%的热点数据,⽽⾮缓存所有数据。
注意:⽤户的私有数据,不应该被服务器端缓存,可以缓存在客户端的浏览器端。
缓存的清理机制缓存是有⽣命周期的,例如缓存周期为60秒。
超过60秒的缓存向会被视为“过期缓存”,从⽽被清理内存空间是有限的,当内存被耗尽时,依据LRU(Least Recently Used的缩写,即最近最少使⽤)算法清理指定缓存项。
缓存的处理步骤接收请求--->解析缓存(提取URL和各种⾸部)--->查询缓存--->缓存命中--->“新鲜度检测”(⽤来检测缓存是否过期) --->从缓存获取资源构建响应报⽂--->发送响应报⽂--->记录⽇志提供http cache 的开源软件squid和varnish,他们的关系类似于httpd和NGINX缓存控制机制过期⽇期:通过Expires和Cache-Control控制1. Expires : HTTP/1.02. Cache-Control: max-age: HTTP/1.1单纯使⽤Expires(过期⽇期)来控制,存在缺陷。
当处于不同时区的⽤户访问时,因为时间差异,可能造成提供资源为已经过期的。
所以在http/1.1版本加⼊了Cache-Control机制。
About the T utorialMicrosoft Expression Web is a full-featured professional tool for designing, developing, and publishing feature-rich websites that conform to web standards. Expression Web uses its own standard rendering engine, which is different from Internet Explorer's Trident engine. In the following chapters of this tutorial, we will look closely at Microsoft Expression Web and learn how it works.AudienceThis tutorial has been prepared for aspiring web designers to familiarize them with the interface and features of Microsoft Expression Web.After completing this tutorial, you will gain sufficient knowledge on Microsoft Expression Web from where you can take yourself to the next level.PrerequisitesIt is quite a simple tutorial written in a very user-friendly manner. You can make the most of it with a very basic knowledge of web designing and web development. Disclaimer & CopyrightCopyright 2018 by Tutorials Point (I) Pvt. Ltd.All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher.We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or inthistutorial,******************************************.T able of ContentsAbout the Tutorial (i)Audience (i)Prerequisites (i)Disclaimer & Copyright (i)Table of Contents .................................................................................................................................. i i 1.EXPRESSION WEB − OVE RVIEW (1)Microsoft Expression Web − History (1)System Requirements (2)2.EXPRESSION WEB − ENV IRONMENT SETUP (3)Installation (3)3.EXPRESSION WE B − NEW WEBSITE (6)Create a Website (6)4.EXPRESSION WEB − BLA NK WEB PAGE (14)Create a Blank Page (14)Create a CSS Page (17)5.EXPRESSION WEB − WEB PAGE LAYOUT (24)<div> tag (24)Example (25)6.EXPRESSION WEB − HTM L LAYOUT (37)7.EXPRESSION WEB − HOR IZONTAL NAVIGATION (42)8.EXPRESSION WEB − VER TICAL NAVIGATION (60)9.EXPRESSION WEB − VAL IDATE PAGES (74)Status Bar (76)Compatibility Report (78)10.EXPR ESSION WEB − DYNAMIC WEB TEMPLATE (80)The Need for Dynamic Web Templates (80)Create a Dynamic Web Template (80)11.EXPRESSION WEB − SEA RCH PAGE (86)Windows Live Search (86)12.EXPRESSION WEB − IMA GES (92)13.EXPRESSION WEB − HYP ERLINKS (99)Anchor Tag (99)14.EXPRESSION WEB − VID EO (109)15.EXPRESSION WEB − SQL DATASOURCE (114)16.EXPRESSION WEB − MIC ROSOFT WORD (135)17.EXPRESSION WEB − GRI DVIEW (141)18.EXPRESSION WEB − MAS TER PAGES (150)19.EXPRESSION WEB − DAT A TABLE (158)20.EXPRESSION WEB − PUB LISH (169)21.EXPRESSION WEB − BAC KUP WEBSITE (176)22.EXPRESSION WEB − ADD-INS (182)1.Microsoft Expression WebMicrosoft Expression Web is a full-featured professional tool for designing, developing, and publishing feature-rich websites that conform to web standards. You can use Expression Web to create web pages and sites that let you transfer files between your computer and your hosting account.Expression Web can design and develop web pages using HTML5, CSS 3, , PHP, JavaScript, XML+XSLT and XHTML.Expression Web 4 requires .NET Framework 4.0 and Silverlight 4.0 to install and run. Microsoft Expression Web − HistoryMicrosoft released the first Community Technology Preview (CTP) version of Expression Web on May 14, 2006.Microsoft Expression Web 4 was released on June 7, 2010.∙It added the option of HTML add-ins and access to a web-based functionality for testing pages on browsers that cannot be installed on the user's system, such as Mac OS X or Linux browsers.∙It also provides an SEO Checker using which you can analyze already created websites against the best practices for getting the highest possible search engine rankings.Expression Web Service PacksExpression Web 4 Service Pack 1 was released in March 2011 and added support for IntelliSense for HTML5 and CSS.Expression Web 4 Service Pack 2 was released in July 2011. It fixed a number of issues and introduced new features such as∙jQuery IntelliSense support∙ a panel for managing snippets∙Interactive Snapshot Panel∙comment/uncomment functionality in Code View, and∙workspace and toolbar customization.In December 2012, Microsoft announced that Expression Studio will no longer be a stand-alone product. Expression Blend is being integrated into Visual Studio, while Expression Web and Expression Design will now be free products.Microsoft Expression WebSystem RequirementsTo create a website using Microsoft Expression Web, your computer should meet the following requirements:∙You should have at least Windows XP with Service Pack 3 or the latest operating systems.∙You should have a PC with 1 GHz or faster processor.∙Your PC should have 1 GB of RAM or more.∙Your PC should have 2 GB or more of available hard disk space.∙You should have .NET Framework 4.0 and Silverlight 4.0.∙Your PC should support Microsoft DirectX® 9.0 graphics.∙You should have DVD compatible drive.∙You should have 1024 x 768 or higher resolution monitor with 24-bit color.∙Some product features require Firefox 3.0 or later, Internet Explorer 8. So you should have the same version.Actual requirements and product functionality may vary based on your system configuration and operating system.2.Microsoft Expression WebMicrosoft provides a free version of Microsoft Expression Web which can be downloaded from https:///en-pk/download/details.aspx?id=36179.InstallationStep 1: Before you can install Expression Web, you will need to have .NET Framework 4.0 installed.Step 2: Once downloading is complete, run the installer. The following dialog will be displayed.Step 3: Click the Accept button.Step 4: Select the Yes radio button and then click Next.Step 5: You can choose other location as well for installation. Select the location and click the Install button.The installation process starts.Once the installation is complete, you will see the following dialog. Step 6: Click Finish to continue.3.Microsoft Expression WebIn the previous chapter, we have installed Microsoft Expression Web and now we are ready to start working on it. In this chapter, we will learn how to create a new website from scratch.Create a WebsiteTo create a new website, let’s open Microsoft Expression Web.Next, you need to follow the steps given below.Step 1: Select Site -> New Site… menu option.Step 2: It will open the following dialog from which you can create or import different types of website.Step 3: For simplicity let’s select General -> One Page Site.∙Specify the location or you can browse to the location where you want the new website to be created.∙Type in the name of your web in the name field and click OK.Step 4: The new web will be created with one page named default.htm. L et’s rename it to index.html with a right-click on the file and clicking on the Rename option.Step 5: The default doctype used in Expression Web is:You can see it by just switching to the code view.You can change the doctype from Tools-> Page Editor Options -> Authoring.Step 6: Now, let’s add <h1> tag inside the body tag and some text as shown in the following code.Step 7: To see our web in a browser, let’s go to the File menu and select the Preview in Browser -> Any browser, let’s say, Internet Explorer.It will open our web in Internet Explorer.4.Microsoft Expression WebAs we have already created our website, now we will need to create our Home Page. In the previous chapter, we have created a one-page website, and our Home Page was created at that time automatically by Expression Web. So, if you have created a blank website, then you will need to create a Home Page for your site.Microsoft Expression Web can create the following types of pages:∙HTML∙ASPX∙ASP∙PHP∙CSS∙Master Page∙Dynamic Web Template∙JavaScript∙XML∙Text FileIn this chapter, we will create an HTML page and its corresponding style sheet. Create a Blank PageTo create a blank page, you can simply go to File menu and select New -> Page…menu option.From the new dialog, you can create different types of blank pages such as HTML page, ASPX page, CSS page, etc. and click OK.As you can see here, the default code is already added by Microsoft Expression Web.As you can see, your newly created page has the file name Untitled_1.html or Untitled_1.htm. You will need to save the page by pressing Ctrl + S and specify the name.As our website already contains an index.html page, we don’t need another one. However, if you have created an Empty website, then name this page index.html.To see your web in a browser, let’s go to the File menu and select the Preview in Browser -> Any browser, let’s say Internet Explorer.Create a CSS PageLet’s take you through the step-by-step process of creating a CSS page.Step 1: To create a CSS page, go to the File menu and select New -> Page… menu option.Step 2: Select General -> CSS and click OK.Step 3: Save the page and type a name for the style-sheet.Step 4: Click the Save button.Step 5: Now, l et’s go to the index.html page.Step 6: In the Manage Styles Panel, click Attach Style Sheet.Step 7: Browse to your style-sheet and select the Current page from “Attach to” and Link from “Attach as” and click O K.Step 8: Now, you will see that a new line is added automatically in the index.html page.Step 9: The body element defines the document's body. To style the <body> tag, we need to create a new style. First, select the body tag in Design View and then click on the New Style… in Apply Styles panel or Manage Styles panel, which will open the New Style dialog.Here, you can define the different options for your style. The first step is to select the body from the Selector dropdown list and then select the Existing style sheet from “Define in” dropdown list.Step 10: From the URL, select the sample.css file. On the left side, there is a Category list like font, background, etc. and currently the Font is highlighted. Set the Font related information as per your requirements as shown in the above screenshot and click Ok. Step 11: Now you can see in the design view that the background color and the font has changed to what we have selected. Now, if you open the sample.css file, you will see that all the information is automatically stored in the CSS file.Let’s preview our web page in a browser. You will observe that the style is applied from the CSS file.End of ebook previewIf you liked what you saw…Buy it from our store @ https://。
Advantech WebAccess培训教程第二章软件安装2007年6月培训目标这一章节将向你介绍WebAccess HMI &SCADA 软件的安装过程软件的安装过程。
培训结束时你将掌握一下知识培训结束时你将掌握一下知识::•如何安装Advantech WebAccess 软件培训内容–WebAccess安装过程–WebAccess的授权文件–WebAccess的HardKeyWebAccess安装过程确认IIS的安装WebAccess安装过程确认IIS的安装点击进入Internet信息服务(IIS),并且启动Internet信息服务(IIS)。
WebAccess 安装过程系统需求A 、工程节点硬件需求硬件需求::Pentium III ,Pentium IV ,Celeron 或AMD 处理器,256MB 内存,CD-ROM ,10/100 Mb/s 网卡,建议使用1024*768以上分辨率,较低也可接受操作系统操作系统::Windows 2000,Windows XP Professional ,Windows Server 2003. 需内含IIS ,SMTP 服务器,NTFS 文件系统。
B 、PC 监控节点硬件需求硬件需求::Pentium III ,Pentium IV ,Celeron 或AMD 处理器,256MB 内存,CD-ROM ,10/100 Mb/s 网卡,建议使用1024*768以上分辨率,较低也可接受操作系统操作系统::Windows 2000,Windows XP Professional ,Windows Server 2003,NTFS 文件系统。
WebAccess 安装过程系统需求C .WinCE 监控节点与研华硬件绑定,可选择WebView-660G, WebView-1261 或WebLink-2170D 、客户端硬件需求硬件需求::Pentium ,Celeron ,Athlon CPU ,128MB 内存,10/100 Mb/s 网卡…建议1024*768分辨率,较低也可接受操作系统操作系统::Windows 2000 ,Windows XP Professional ,Windows Server 2003也支持Windows 95,Windows 98,Windows ME ,Windows XP Home E 、瘦客户端硬件需求硬件需求::PDA 或掌上型计算机,无线网络,200*200分辨率。
第二章:入门很快你就会发现,真正了解Yii只需要使用它。
在这一章中,我们将讲解一个Yii应用,更深刻的了解上一章所介绍的Yii的一些概念。
遵循Yii的约定,我们写一个Hello, World程序试用这个框架。
在这一章中,我们将介绍:▪Yii框架安装▪创建一个新的应用▪创建控制器和视图▪添加动态内容到视图文件▪Yii请求路由并将页面链接到一起在使用Yii之前,我们首先需要安装框架,现在让我们开始吧。
安装Yii在安装Yii之前,你必须配置好你的开发环境,如一台支持PHP5.1.0以上版本的Web服务器。
Yii已经在Windows和Linux操作系统上的Apache Web服务器测试通过。
它可能也会运行在其他平台上的支持PHP5的Web服务器,互联网上公布了很多免费资源,你可能会获得一个配置好PHP5的Web 服务器环境。
在这里我们会抛开Web服务器和PHP5的安装。
Yii的安装其实非常简单,实际只需要两个步骤:1.从/下载Yii框架2.解压下载文件到Web服务器可访问的目录下。
安装完成后,建议你检查一下当前服务器是否已经满足了Yii的所有要求。
幸运的是,这样做很容易,Yii 自带了一个简单的检查工具。
要调用它,在你的浏览器地址栏中输入:http://yourhostname/path/to/yii/requirements/index.php在下载Yii时,可能会有多个版本让你选择。
编写本书时Yii最稳定的版本是1.1.2,虽然大部份的示例代码都应该可以运行在1.1.x版本上,但可能部份会有些差别。
如果你使用的不同这个版本,请使用1.1.2版本完成下面的例子。
下面的图片显示的你在屏幕看到的结果,这就是你服务器的配置:使用检查工具,确定服务器没有安装和使用扩展或组件,但它只是给出一个建议,以确保可以确定安装。
正如你看到的,下在的检查结果,并非都是Passed(通过)状态,也有部份显示Warning(警告)。
第1章组态软件简介及WebAccess的安装和运行本章要点本章首先介绍组态软件的概念及现状,列举几种知名的国内外组态软件后,给出组态软件的发展趋势。
然后对WebAccess软件的功能特点和系统构架进行的简单介绍,并进行WebAccess软件的安装,引导读者初步了解WebAccess软件。
1.1 组态软件介绍组态的概念最早来自英文Configuration,其含义是使用软件工具对计算机及软件的各种资源进行配置,达到使计算机或软件按照预先设置,自动执行特定任务,满足使用者要求的目的。
与硬件生产相对照,组态与组装类似;与软件相对照,软件中的组态要比硬件的组装有更大的发挥空间,通过改变软部件的属性可以改变其规格。
组态软件的出现在工业领域意义重大,在组态概念出现之前,要实现某一任务,都是通过编写程序(如使用BASIC , C , FORTRAN等)来实现的。
而组态软件的出现,既解决了编写程序工作量大、周期长以及不能保证工期等问题,又提高了控制系统的可靠性。
1.1.1 概述组态软件(监控组态软件,SCADA---Supervision,Control and Data Acquisition),指一些数据采集与过程控制的专用软件,它们是在自动控制系统监控层一级的软件平台和开发环境,使用灵活的组态方式,为用户提供快速构建工业自动控制系统监控功能的、通用层次的软件工具。
目前,组态软件被广泛用于电力系统、给水系统、石油、化工等领域的数据采集与监视控制以及过程控制等诸多应用领域。
此外,组态软件能支持各种工控设备和常见的通信协议,并且通常应提供分布式数据管理和网络功能。
对应于原有的HMI(人机接口软件,Human Machine Interface)的概念,通过组态软件,用户能够快速建立自己的HMI的软件工具,或开发环境。
在组态软件出现之前,工控领域的用户通过手工或委托第三方编写HMI应用,开发时间长,效率低,可靠性差;或者购买专用的工控系统,通常是封闭的系统,选择余地小,往往不能满足需求,很难与外界进行数据交互,升级和增加功能都受到严重的限制。
第2章 WebAccess的点和设备通讯本章要点WebAccess使用“点”的概念去组织需要与PLC或自动化设备进行交换的信息。
一个“点”是一个从自动化设备读取到的信息的唯一标识。
WebAccess必须设定点的属性,包括描述,报警,报警界限,地址等。
WebAccess中的点能够从多个方面来描述要读取或写入到自动化设备的信息。
一个点能够描述自动化设备中度量,输出位,登录或其它数值等信息。
“点”这一术语主要来自两个方面:工业工人和工控软件。
工业工人在生产工控设备时,在控制室的设备都会附上一个小的金属牌或金属面板来描述设备或度量。
在软件编制时,特别是数据库软件,也是使用“点名称”作为信息标识符。
许多人机界面和监控软件也是使用“点”的术语来标识需要从自动化设备读写的信息。
WebAccess还提供通讯数据库以供通讯:一个与自动控制设备相连的点,只须定义一次,所有客户端都能够通过点的名称存取数据。
这就允许所有客户端与点相连的动画使用这些数据。
WebAccess提供一系列的通讯驱动程序,使工程师们能够很方便的实现与底层自动控制设备通讯,包括:PLC,控制器,DCS系统,DDC系统,第三方软件,RTU或IO等自动控制设备。
2.1点的类型2.1.1 IO 点IO点描述了从现场设备采集的单位参数,通常有模拟量(如计数器)和数字量(如ON/OFF 状态)参数。
在WebAccess中,点通常还赋有其他一些功能,如描述、报警、访问权限等。
软件授权文件限制了监控节点上IO点的数量。
WebAccess 在与现场设备的通讯中使用两种标记概念:点和区块,点和区块用于描述监控节点和现场设备间输入输出。
点容易理解并且在小工程中经常使用;区块是一个点组合的工具,它能够减少开发时间,经常用于大型自动化工程。
参数应用于区块中的元素,用户通过区块中的参数参阅数据:Blockname:Parameter. 如:读取流量控制器(FIC101)中的点setpoint ,可通过点信息对话框中的FIC101:SP 参阅。
点和区块是通过模板:参数类型和区块类型而创建的。
点区域可对点进行复合型的描述,如报警状态、报警值、输出值、工程单位、最高量程、最低量程等,点区域是以点名称+扩展区域为标记的,具体格式为:点名称.区域(Tagname.Field)或区块名:参数.区域(Blockname:parameter.Field)例如:读取点setpoint 的最高输出 FIC101:SP.OUTPH许多点区域是可读写的,能够用于如实时运行时调整报警值、修改设定值等。
2.1.2 内部点内部点为组态软件提供的内存变量,内部点也有模拟量、数字量、文本量等类型。
WebAccess 提供三种内部点:计算点、累算点、常数点,通常应用于脚本或某种运算。
内部点具有与IO点相同的特性(除不具备IO地址外),能够应用于系统任一功能中,该三种内部点在监控节点内属于全局变量。
Loc点(本地点)是使用于当前页面脚本和监控界面中的临时性的点,通常能够是有效的中间值或提高界面动态效果。
当监控界面关闭时,Loc点也自动消失,相对于以上三种内部点,Loc点属于局部变量。
DAQ 系统点通常用于访问系统数据,如系统时间、报警、等。
2.1.3 区块区块是一组从现场设备采集参数的组合(如PID控制器:设定值参数、自动/手动状态、报警等参数),所有的参数都使用同一点名称(称为区块点),区块内每个参数都可能有不同的数据类型,参阅区块内的参数是以“区块名:参数名”为格式的,如PID控制器区块名为PID101,则访问设定值参数时使用格式PID101:SP。
区块能够将大量的点通过单一的名称和地址偏移进行组合封装,通常还应用区块详情显示和区块报警等,通过区块详情显示可使用一个显示界面显示同一类型的区块。
许多WebAccess 驱动提供区块和区块详情显示,但用户也可通过WebAccess设定和WebAccess 绘图工具创建区块和区块详情显示。
软件授权文件限制了区块中参数的数量,因为每个参数都为一个IO点。
2.2 点的属性2.2.1 点的常规属性模拟量点的属性模拟量点是用来显示一些过程、设备和装置的信息的浮点数和整数。
例如:温度、压力、流量和计数值就是模拟量值的例子。
98.6、14.7和100就是模拟量的值。
模拟量点的属性比数字量和文本量的属性多,模拟量点的属性和模拟量点的区域是相关的,例如,工程单位成了点的.ENUNIT区域。
“点区域”是WebAccess区别于其他软件的一个重要特点,灵活使用系统软件提供的点区域将可以达到节省IO点数量和丰富页面显示信息的目的。
例如:在监控页面中需要显示某个IO点Tag1的高报警界限值,便可以使用Tag1.almhi来做相应的文本动画显示。
如在后期维护过程中,对该Tag1点的报警界限参数进行了修正调整,则监控页面中显示的值变会自动随之调整。
1 参数要建立一个模拟量I/O点,你必须把点的参数类型选成模拟量类型。
这个属性可当作建立点的起始模板,正确的数据类型非常重要,你不能把模拟量转换成数字量、文本量,这样其他所有属性也会改变。
参数从添加点下拉列表项中选取,它由IO设备驱动程序决定。
不同的驱动程序使用不同的参数项。
AI通常表示一个模拟类型的参数。
DI或CI表示数字类型的参数。
范围: 驱动程序决定.区域类型: 文本区域: .PNAME 只读2 点的类型决定了建立的点的参数,模拟量、数字量或文本量,点建立后不能改变。
范围: 模拟量、数字或文本区域类型:文本区域: .PTYPE 只读3报警要使点产生报警,选择点属性页的下拉列表选择报警,会显示报警属性。
范围: 报警或没有报警区域类型: 文本区域: .ALMCK和.ALMED和.ALMST4 点名称系统中把一个唯一的名字定义给一个点,在运行时整个配置、画图和浏览过程中,这个名字就等同于这个点,最长位25个字符,可以是数字和文字,不能是空格,典型的名字如FIC2492. 点名称将在软件中作为设备与软件之间的识别标识,具备唯一性。
范围: 21个文字或数字字符区域类型: 文本区域: .NAME5 描述为点提供一个描述,用于显示和报警。
一个典型的描述是锅炉#1给水流程。
范围: 25个文字或数字字符区域类型: 文本区域: .DESCRP6扫描类型通过软件定义扫描的类型,常数浏览是指在监控节点运行时一直扫描该点。
常数浏览可应用于那些需要不断更新的I/O点(报警、趋势、日志、批量、脚本、逻辑)。
显示浏览只有当对该点进行监控时才扫描,显示浏览可应用于不频繁访问的点,可减少不必要的数据采集,是优化通信的一种方法。
一些设备提供其他的扫描类型,可以从一个下拉菜单中选择该设备的扫描类型。
范围: 常数浏览、显示浏览区域类型: 文本区域: .SCANTP 只读7地址模板一些设备支持一个地址模板提供一些可用的地址格式供用户使用。
地址格式对不同的自动设备是多样的。
范围: 驱动程序决定区域类型: 文本区域: 根据地址而定8地址指定对点进行读或写的一个地址数据,地址在初始设置是选择,地址是由硬件决定的,通常是硬件设备的实际IO地址空间,也可以是硬件设备的内部寄存器空间,详细信息请参看设备的驱动手册。
一个下拉菜单显示了一些可用的地址模板(见上)。
范围: 驱动程序决定区域类型: 文本区域: .PADDRS9转换代码定义了如何转换从设备传来的原始数据,它必须有设备支持。
使用下拉菜单,可选择不同的转换代码。
典型的转换代码包括:无符号整数有符号整数双精度整数IEEE 浮点数10起始位数据传送时,在指定地址中数据开始的起始bit位。
一般来说,模拟量点通常为16位长度或32位,也有少数设备提供8位地址作为一个完整的模拟量数据空间。
在没有特殊需要情况下,起始位均设置为0。
11长度以起始位为基准,需要读取数据的长度。
例如,8、16或32位的模拟量。
12信号相反信号相反是对一个模拟量信号取补运算,运算结果依模拟量量程范围而不同,如最高量程的信号相反值为最低量程。
如该IO点为数字量类型点,信号相反便代表强行将采集到的开关信号反向显示,如设备输出状态为0,则软件显示值为1,反之亦然。
13缩放类型缩放类型应用于模拟量参数和点,是将从现场设备上读取的数据如何转换的过程,指定了如何把从外部设备读到的数据转换成用户和操作要的数字,通过重定义刻度来符合真正的工程需要。
缩放分为缩小和放大,大多数自动设备支持数据的原始格式,例如,大多数12位的IO 设备支持从0到4096的所有的整数。
例如一个适当的缩放类型,可以把0-4096重定义刻度为0-14.7磅/平方英寸(表压)。
有效的缩放类型是依赖硬件的。
一个下拉列表框显示该设备有效的缩放类型。
典型的缩放类型包括:●No Scale(无缩放)对于一个不需要缩放或在读到计算机之前已经被缩放过的值,将显示从设备读到的原始数据。
Scale 0-100 Input to Span将0-100间的值转化为最高、最低量程范围,公式:OUTPUT = (SPANHI - SPANLO) / 100 * INPUT + SPANLO●Linear scale MX+B使用传统的直线方程式进行转换:OUTPUT = M * INPUT + B缩放因子1 = M, 直线的斜率缩放因子2 = B, 直线在X轴的截距●Scale Defined Input H/L to Span最低输入(INLO)和最高输入(INHI)到最低量程(SPANLO)和最高量程(SPANHI)的转换,如果输入值超出范围,转换值将超出最高量程。
OUTPUT = (SPANHI - SPANLO) / (INHI - INLO) * (INPUT - INLO) + SPANLO缩放因子 1 = INLO缩放因子 2 = INHI●Scale 12-Bit Input to span将12 位的数值转化为以最高、最低量程表示的数值,通常用于使用12位工业标准的IO板卡等。
●Scale 0-100 Square Root Input将0-100间的值平方根并且转化为最高、最低量程范围。
公式:OUTPUT = (SPANHI - SPANLO) / 100 * SQUARE ROOT(INPUT) + SPANLO 14缩放因子1和2用在一些缩放类型,由驱动程序决定。
最常用的两种情况:●线性 MX+B使用典型的直线方程式进行转换 (例如:线性输入) : 输出 = M * 输入 + B缩放因子1 = M, 直线的斜率.缩放因子2 = B, 直线在X轴的截距Scale Defined Input H/L to Span这种转换把读值从最低输入到最高输入转换成最低量程到最高量程(假定输入在规格以内)。