WinSECS™.NET 2.7 Release Notes
之前学习了其操作和做了简单开发样例使用,半年未用,又要使用再次开发使用。
由于开发使用C#,所以直接用阅读两个文档
WinSECS.NET ReadMe.pdf 即WinSECS™.NET 2.7 Release Notes
这个其实没有什么用,就是介绍了安装。
The Brooks Automation Windows®-compatible Semiconductor Equipment Communications Standard (WinSECS) messaging software allows you to exchange messages with equipment that complies with the Semiconductor Equipment Communication Standard (SECS). WinSECS also facilitates communication with Generic Equipment Model (GEM)-compliant manufacturing equipment. These standards are established by the Semiconductor Equipment and Materials International (SEMI) standards committee.
To use WinSECS you must first understand these standards.Brooks Automation Windows®兼容的半导体设备通信标准(WinSECS)消息软件允许您与符合半导体设备通信标准(SECS)的设备交换消息。WinSECS还促进了与通用设备模型(GEM)兼容的制造设备的通信。这些标准由半导体设备和材料国际(SEMI)标准委员会制定。
要使用WinSECS,您必须首先了解这些标准。
两个手册开始回顾。
WinSECS Reference manual 即WinSECS 2.7COM Reference
WinSECS .NET Reference manual.
WinSECS.NET Reference Manual
专有名词:
Semiconductor Equipment Communication Standard (SECS)
Generic Equipment Model (GEM)
本书的第一章概述了组成WinSECS的对象、SECS消息构造、搜索、解析和数据类型。后面的部分包含有关使用的信息:
•SECSLibrary对象,其中包含有助于构建SECS消息的消息模板。
•SecTransaction对象,代表一级和二级SECS消息序列。
•SECS消息对象,表示SECS消息。
•SECSItem对象,包含SECS消息中的列表或值。
•示例和错误代码。
关于使用向导添加类的方法是没有成功的,现在使用VS2019。以后就想办法自己添加吧
Creating a working class using the C# Project Item Wizard
To create a working class using the C# Project Item Wizard, do the
following:
1. Right-click on your project and select Add > Add New Item….
2. Click Code under Local project Items.
3. Select WinSECS Class.
4. Enter a filename of your choice.
5. Click Open. The WinSECS Add C# Class wizard appears.
6. Name your class and namespace.
7. Choose at least one OpenPort method.
8. Enter a path to the XML file containing transactions (usually
C:\Program Files\Brooks Automation\WinSECS\Samples\XML.)
9. Click Finish.
This creates a self-standing functional class, which hosts and
demonstrates the use of two primary object classes of WinSECS—
WinSECS and Library. It also implements the INotifyAgent through
which WinSECS notifies about any asynchronous events in your
application.这个步骤我没有完成过。
几个关键的类的解释:
SECSLibrary
是一个用于存储事务的存储库,是一种在XML之间加载、保存和序列化的现成方法。 SECSMessagex 表示订单或回复对,例如S1F1、S1F2。每个SecsTranssaction都由一个主SECSMessage对象和一个次SECSMessage对象组成。 SECSMessagex 表示订单或回复对,例如S1F1、S1F2。每个SecsTranssaction都由一个主SECSMessage对象和一个次SECSMessage对象组成。 SECSItem
表示secs消息中的一个项,例如MDLN。
SECSLibrary对象实例包含SECSTransaction对象的预定义模板。这将自动构造所有主要和次要消息,包括其正确格式的子数据项。
For example, an S1F1/F2 transaction according to the E5 standard is
defined as follows:
S1,F1 Are you there request (R)
S1,F2 On Line Data (D)
L,2
1. <MDLN>
2. <SOFTREV>
If you were to create this transaction yourself, you would have to:
1. Create a new transaction.
2. Name the transaction.
3. Name the messages.
4. Add an item.
5. Name the item.
6. Add two items to the item list.
7. Name the two items.
此外,WinSECS在解析传入消息时使用该库。对于主消息,如果库中的SECSTransaction具有与传入消息匹配的流和函数的SECSMessage,WinSECS将使用该SECSTransaction作为解析的基础。传入的SECS消息中的项被指定为库事务模板中的SECSItem对象定义的名称。
以下属性和方法与SECSLibrary对象关联:
方法:
Add
Find
Library
Load
Remove
Save
Trans2XML
XML2Trans
属性:
Description name
要发送主消息,必须使用[Library Instance].find方法获取事务实例,或使用对象构造函数创建新的SecTransaction对象。
当收到主SECS消息时,WinSECS会自动创建一个新的secTransaction对象,并将其传递给您实现的INotifyAgent接口的OnPrimaryIn回调处理程序。
这个NET编程框架实现本机数据处理,可以轻松映射到所有SECS-II wire格式(JIS-8除外)。下表显示了当设置了SECSItem的值时,WinSECS自动选择的格式,但之前没有设置明确的格式。
vs2019工程里面实现INotifyAgent INotifyAgent的快捷方法:
1,添加类MyWinSECSWinSECS;
2,添加using Brooks.WinSECS;
3,会报错点击修补程序就很快把接口给实现出来;