没有合适的资源?快使用搜索试试~ 我知道了~
winsecs_.net_开发参考手册.pdf
需积分: 49 60 下载量 122 浏览量
2020-04-16
20:52:27
上传
评论 5
收藏 1.35MB PDF 举报
温馨提示
试读
148页
winsecs是一款基于.net的secs-gem库,这个是winsecs的开发手册。大家读一读把。
资源推荐
资源详情
资源评论
WinSECS 2.7
.NET Reference
™
© 2006 by Brooks Automation, Inc. All rights reserved. Printed in the United States of
America.
This document contains information that is the property of Brooks Automation, Inc., Chelmsford, MA
01824, and is furnished for the sole purpose of the operation and the maintenance of products of
Brooks
Automation, Inc. No part of this publication is to be used for any other purpose, and is not to
be reproduced, copied, disclosed, transmitted, stored in a retrieval system, or translated into any
human or computer language, in any form, by any means, in whole or in part, without the prior
express written consent of Brooks
Automation, Inc.
Although every effort is made to ensure the accuracy of this document, Brooks Automation, Inc.
assumes no responsibility for errors that may appear herein. The information is subject to change
without notice. Any sample code that appears in this document and that may be included with the
software product is included for illustration only and is, therefore, unsupported.
Brooks Automation, Inc.
15 Elizabeth Drive
Chelmsford, MA 01824
Printed: September 2006
Restricted Rights Legend
If Licensee is — or acts on the behalf of — a U.S. Government agency, use of the accompanying
software is governed by the Software License Agreement which, (including the Exhibits and
Schedules thereto), constitutes the entire agreement between the parties and is binding on
Government users in accordance with the policy stated at Federal Acquisition Regulation (FAR) [48
CFR] 12.212 (for non-defense agencies) or Defense FAR Supplement (DFARS) [48CFR 227.7202.1]
(for defense agencies).
Export Notice
This technical data or any direct product of it may not be exported, re-exported, or released, directly
or indirectly, to Iran, Libya, Cuba, North Korea, Sudan and Syria, and any other embargoed country,
and any of those countries listed from time to time in Country Group D:1 E:1 or E:2 in the Export
Administration Regulations, Parts 730-774 to Title 16 of the U.S. Code of Federal Regulations,
without a license from the U.S. Department of Commerce and/or other appropriate governmental
agencies or other authorization under the Export Administration Regulations. For purposes of this
prohibition, the term "direct product" is defined to mean the immediate product (including processes
and services) produced directly by use of the technical data.
WinSECS, STATIONworks and FACTORYworks are registered trademarks of Brooks Automation, Inc.
in the United States and/or other countries.
Brooks APC Platform, BAP Studio, Designer, Dashboard, BAP Core, BAP Adapter, BAP Collector,
Brooks APC Suite, Brooks R2R, Brooks FD and Brooks Remote Controller are trademarks of
Brooks
Automation, Inc. in the United States and/or other countries.
All other trademarks and registered trademarks contained herein are the property of their respective
owners.
iii
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
About This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Introduction to WinSECS Chapter 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Overview of WinSECS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Adding WinSECS to your C# application . . . . . . . . . . . . . . . . . . . . . . . 3
Adding a WinSECS Reference in Visual Studio 7.X C# application 3
Creating a working class using the C# Project Item Wizard . . . . . . 3
WinSECS objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
SECSLibrary object: the message library . . . . . . . . . . . . . . . . . . . . . . . 4
SECSTransaction object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
SECSMessage object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
SECSItem object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Data types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Asynchronous notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
SECS message construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Item construction conversion process . . . . . . . . . . . . . . . . . . . . . . 15
Binary message construction process . . . . . . . . . . . . . . . . . . . . . 16
Item searching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
SECS message parsing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Asynchronous callback sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Threading in WinSECS .NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
WinSECS Class Chapter 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Creating a usable instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Constructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
WinSECS() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Properties
AutoDevice property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
CodePage property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Connected property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
DefaultDeviceID property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
EncodingCode property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
MonitorEnabled property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
MultipleOpen property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
PortIsOpen property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
PortType property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Contents
WinSECS Version 2.7 © 2006 Brooks Automation, Inc.
W
INSECS .NET REFERENCE
iv
Methods
ClosePort method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
OpenPort method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
HSMS member object
ConnectionMode property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
LinkTestTimer property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
LocalIPAddress property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
LocalIPPort property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
RemoteIPAddress property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
RemoteIPPort property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
T3 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
T5 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
T6 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
T7 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
T8 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
Secs1 member object
AcceptDuplicateBlocks property . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
AutoBaud property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
BaudRate property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
CurrentBaudRate property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
IgnoreSystemBytes property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Interleave property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
PortName property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
RetryLimit property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
SecsHost property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
T1 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
T2 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
T3 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
T4 property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
INotifyAgent interface
OnConnect method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
OnDisconnect method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53
OnError method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53
OnMonitor method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
OnPrimaryIn method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
OnPrimaryOut method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
OnSecondaryIn method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
OnSecondaryOut method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
OnWarning method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
SECSLibrary Object Chapter 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
Constructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
SECSLibrary(String name, String Description) . . . . . . . . . . . . . . . . . .62
Properties
Description property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
C
ONTENTS
v
Name property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Methods
AddNew method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Find method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Load method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Remove method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Save method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Trans2XML method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
XML2Trans method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
SECSTransaction Object Chapter 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Constructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
SECSTransaction() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Properties
AutoSystemBytes property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Description property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
InProgress property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Name property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Primary property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
ReplyExpected property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Secondary property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
SystemBytes property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Tag property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Methods
Reply method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Send method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
SECSMessage Object Chapter 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Properties
Function property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Length property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Root property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Stream property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Methods
SetRoot method (SECSItem) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
SECSItem Object Chapter 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Constructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
SECSItem(string name, string description) . . . . . . . . . . . . . . . . . . . . . 84
Properties
Description property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Format property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
ItemCount property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Length property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Name property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
剩余147页未读,继续阅读
资源评论
铁樵
- 粉丝: 75
- 资源: 109
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功