Jazz Soft 您要联络吗?   JazzSoft@live.com     简体字汉语   英语  日语  繁体字汉语  简体字汉语
提供半导体工厂自动化与生产效率改善法 
Skip Navigation Links首页 > 产品一览 > Swing > Swing SECS II 详细资料 > Properties > List

Dorian.Core is added. Dorian now supports .NET 6 and 7.

Swing SECS II 详细资料   

Properties
Appearance
Array
BlockNumber
BorderStyle
DeviceID
EBit
Function
List
Msg
Pointer
PType
RBit
SessionID
Show
SourceID
Stream
SType
SystemBytes
TransactionID
Type
Value
ValueHex
WBit

Methods
Add
Init
Reply

Events

List Property

If you read this property, you can obtain message structure as tree format which control is handling. You can set tree format to this property. In case of setting, you can use line-feeds, spaces and tabs in grammar freely.

Syntax

Visual Basic



Visual C++


The grammar of the string to set List Property is as follows;

Common Notice

White space (space, tab, carriage return and line feed) is treated as a separator only. So, you can use them to improve readability of source code. But you must be careful that you use in comment or string text, it is treated as character.

From aster (*) to the end of line are treated as comment, except aster in string text.

Integer consists of number '0' to '9' and minus (-) flag. If you want to write in hexadecimal expression put '0x' in front of the value. In this case, you can also use 'a' to 'f' and 'A' to 'F'. For decimal part of the number, you can omit front '0' like '0.9' as '.9'. You can also use exponential expression. There are reserved words like 'true' (=1) and 'false' (=0).

String is surrounded by single quotation mark ('). It is not be able to contain new-line and single quotation itself. So if you do want to fill these kind of characters in string, use hexadecimal expression like 0x0a.

Bold letter portion in explanation means to describe character itself. These characters may also be uppercase or lowercase letter fundamentally. Refer to each explanation for an italic character. Moreover, the portion surrounded by brackets ([]) can be omitted.

Grammar


[ SxxFyy [w] ] Body

xxStream number. Don't fill space between 'S' and 'F'.
yyFunction number. Don't fill space 'F' and 'w'.
wWait bit. If you want to specify it, add 'w'. It can be omitted.
BodyMessage body.

In order to recognize stream, function, and wait-bit as 1 lump, don't put neither space nor new-line code among these. All of streams and functions can be omitted and only message body can also be described.

Message body

Message body is hierarchy structure.

List


{ [l  [ Number ] ] Body }
< [l  [ Number ] ] Body >

NumberNumber of list. This is only for compatibility of SECSIM. Swing ActiveX control ignore this number.
BodyMessage body. You can put other items here.

Ascii string


<a [ Strings ] >

StringsASCII string of text.

Long string can be divided separately. Moreover, you can write character code as well, for example:


<a 'ABC' 'DEF' '012' 0x33 '4' 53 54 '789'>

could be written as


<a 'ABCDEF0123456789'>

These are exactly the same.

2-byte character string


<a2 [ Strings ] >

Strings2-byte character string for far east complicated language. This version of Swing ActiveX control can handle only DBCS (Double Byte Character Set).

JIS8 string

This is treated as same kind of string as ASCII string.


<j [ Strings ] >

StringsJIS-8 string of text for Japanese 'katakana'.

I have never seen this type.

Integer


<i1 [ Numbers ] >
<i2 [ Numbers ] >
<i4 [ Numbers ] >
<i8 [ Numbers ] >
<u1 [ Numbers ] >
<u2 [ Numbers ] >
<u4 [ Numbers ] >
<u8 [ Numbers ] >

Numbers Integer. It must be one of followings.

i18-bit integer
i216-bit integer
i432-bit integer
i864-bit integer
u18-bit unsigned integer
u216-bit unsigned integer
u432-bit unsigned integer
u864-bit unsigned integer

You can write some numbers. This means array, for example:


<i1 1 0x02 3>

This version of Swing ActiveX control can not handle very big value in i8 and u8.

Floating point


<f4 [ FNumbers ] >
<f8 [ FNumbers ] >

Fnumbers Floating point value. It is one of these.

f432-bit floating point number
f864-bit floating point number

For example:


<f4 0 1.0 3.14>


Binary


<b [ Numbers ] >

NumbersBinary value.

For example:


<b 0xff 0x3e 255 0>


Boolean


<bool [ Numbers ] >
<boolean [ Numbers ] >

NumbersBoolean value.

For example:


<bool true false 1 0>


Return Value

Example

Visual Basic

.List = "s1f13w{<a'Swing'><a'Ver 3.17'>}"


Visual C++

m_msg.SetList("s1f13w{<a'Swing'><a'Ver 3.17'>}");

Remarks

If you use List Property, it is more simple to use this property than to use Add Method. It is very clear to compare with the code using Add Method. Following 2 examples generate exactly the same message in different way.

Using Add Method

Visual Basic


.Init
.Stream = 1
.Fucntion = 13
.WBit = True
.Pointer = ""
.Add SecsTypeList, ""
.Pointer = "2"
.Add SecsTypeAscii, "Swing"
.Add SecsTypeAscii, "Ver 3.17"


Visual C++


m_msg.Init();
m_msg.SetStream(1);
m_msg.SetFucntion(13);
m_msg.SetWBit(true);
m_msg.SetPointer("");
m_msg.Add(SecsTypeList,"");
m_msg.SetPointer("2");
m_msg.Add(SecsTypeAscii,"Swing");
m_msg.Add(SecsTypeAscii,"Ver 3.17");

See Also

您要联络吗?   JazzSoft@live.com
  Copyright © 1997 - 2024 Jazz Soft, Inc.