Tag section and Input file samples 位号部分和输入文件样本(1)

输入文件:位号部分
位号部分包含了用于采集的位号。位号部分位于输入文件的抬头部分与分隔符(至少包含五个等号的行)之后。
采集位号每行列一个。为了让采集过程能够启动,应至少包含一个采集位号。
在运行采集过程时,系统将根据指定的采样周期按照指定位号采集。

位号格式
你必须使用以下其中一种格式键入位号名。
使用Cim-IO

 "device":unit:"tag name":source: format code

其中:
device”:Cim-IO设备名(可选的)。
:unit:Cim-IO单元号(可选的)。
"tag name":位号名(必需的)。
:source:来源类型(必需的)。
format code:是一串两个字符格式的代码。
如上文所述,在条目前后你必须添加双引号("")或冒号(::)。
你可以让“device”,:unit:或format code空白。输入文件参数CIMIOINFO将为device,unit,和(或)format code指定默认值。对device,键入两个双引号(如“”)。对unit,键入两个冒号(如::)。对format code,在:source:的第二个冒号后不键入任何东西。
•例1:

"IOCM50S":1:"PlusMain.NSAMP": DBVL:UT

在上述例子中,Device=IOCM50S, Unit=1, Tag name=PlusMain.NSAMP, Source type=DBVL, Format code= UT (大写修正).
•例2:

""::"PlusMain.PRDSWC":ORD:

在上述例子中,Device=CIMIOINFO指定的缺省值,Unit=CIMIOINFO指定的缺省值,Tag name = PlusMain.PRDSWC,Source type = ORD,Format code = CIMIOINFO指定的缺省值。
使用Cim-IO或其它数据库
方法1

"tag name":source

其中:
"tag name":是位号名(必需的)。
:source:来源类型(必需的)。
如上文所述,在条目前后你必须添加双引号("")或冒号(::)。
输入文件参数CIMIOINFO将为device,unit,和(或)format code指定默认值。•例:
"MV1MESI":DBVL
在上述例子中,Tag name=MV1MESI, Source type=DBVL。
方法2

source tag name

其中:
source为来源类型(必需的)。
tag name为位号名(必需的)。
你必须在source和tag name之间留下一个空格。
输入文件参数CIMIOINFO将为device,unit,和(或)format code指定默认值。
方法3

tag name

其中:
tag name是位号名(必需的)。
如果您使用此方法,来源将自动假定为DBVL。当位号名来源类型不是DBVL时,请不要使用此方法。
输入文件参数CIMIOINFO将为device,unit,和(或)format code指定默认值。


附原文:
Input file: Tag section
The Tag section contains the tags for collection. The Tag section comes after the Header section and the delimiter (a line of at least five equal signs in a row) in the Input file.
Collection tags are listed one per line. There must be at least one collection tag in order for collection to begin.
When you run the collection process, data will be collected for the indicated tags based on the specified sample period.

Tag formatting
You must use one of the following formats for typing a tag name.
**Cim-IO in use **

"device":unit:"tag name":source:format code

where:
"device"is a Cim-IO device name (optional).
:unit: is a Cim-IO unit number (optional).
"tag name"is a tag name (mandatory).
:source:is a source type (mandatory).
format code is a two-character format code.
You must include the double-quote mark (") or the colon (:) before and after the items, as indicated above.
You can leave "device", :unit:, or format code blank. The default device, unit, and/or format code, specified by the Input file parameter CIMIOINFO, will be used. For the device, type two double-quotes together (example ""). For the unit, type two colons together (example ::). For the format code, simply do not type anything after the second colon of :source:.
•Example 1:

"IOCM50S":1:"PlusMain.NSAMP": DBVL:UT

In the above example, Device=IOCM50S, Unit=1, Tag name=PlusMain.NSAMP, Source type=DBVL, and Format code= UT (Uppercase Trim).
•Example 2:

""::"PlusMain.PRDSWC":ORD:

In the above example, Device=default specified by CIMIOINFO, Unit= default specified by CIMIOINFO, Tag name=PlusMain.PRDSWC, Source type=ORD, and Format code= default specified by CIMIOINFO.
Cim-IO or any other database in use
Method 1

"tag name":source

where:
"tag name" is a tag name (mandatory).
:source is a source type (mandatory).
You must include the double-quote mark (") or the colon (:) before and after the items, as indicated above.
The default device name, unit number, and format code (as specified by CIMIOINFO) are used.
•Example:

"MV1MESI":DBVL

In the above example, Tag name=MV1MESI, and Source type=DBVL.
Method 2

source tag name

where:
source is a source type (mandatory).
tag name is a tag name (mandatory).
You must include a space between the source and tag name.
The default device name, unit number, and format code (as specified by CIMIOINFO) are used.
Method 3

tag name

where:
tag nameis a tag name (mandatory).
If you use this method, the source is automatically assumed to be DBVL. Do not use this method if the tag name's source type is anything other than DBVL.
The default device name, unit number, and format code (as specified by CIMIOINFO) are used.


2015/11/20

你可能感兴趣的:(Tag section and Input file samples 位号部分和输入文件样本(1))