![Anybus CompactCom 40 Common Ethernet Скачать руководство пользователя страница 43](http://html1.mh-extra.com/html/anybus/compactcom-40-common-ethernet/compactcom-40-common-ethernet_design-manual_2948756043.webp)
41 (104)
•
Command Data Types (c_type)
For types which support arrays, the number of elements can be specified using the suffix
[n], where n specifies the number of elements. Each data element must be separated by
space.
Type
Supports Arrays
Data format (as supplied in msgdata)
BOOL
Yes
1
SINT8
Yes
-25
SINT16
Yes
2345
SINT32
Yes
-2569
UINT8
Yes
245
UINT16
Yes
40000
UINT32
Yes
32
CHAR
Yes
A
STRING
No
“abcde”
Note:
Quotes can be included in the string if preceded by back-
slash(“\”)
Example: “We usually refer to it as \‘the Egg\’”
FLOAT
Yes
5.6538e2
NONE
No
Command holds no data, hence no data type
•
Response Data Types (r_type)
For types which support arrays, the number of elements can be specified using the suffix
[n], where n specifies the number of elements.
Type
Supports Arrays
Data format (as supplied in msgdata)
BOOL
Yes
Optionally, it is possible to exchange the BOOL data with a mes-
sage based on the value (true or false). In such case, the actual
data type returned from the function will be STRING.
Syntax: BOOL<true><false>
For arrays, the format will be BOOL[n]<true><false>.
SINT8
Yes
-
SINT16
Yes
-
SINT32
Yes
-
UINT8
Yes
This type can also be used when reading ENUM data types from
an object. In such case, the actual ENUM value will be returned.
UINT16
Yes
-
UINT32
Yes
-
CHAR
Yes
-
STRING
No
-
ENUM
No
When using this data type, the ABCCMessage() function will first
read the ENUM value. It will then issue a ‘Get Enum String’-com-
mand to retrieve the actual enumeration string. The actual data
type in the response will be STRING.
FLOAT
Yes
-
NONE
No
Response holds no data, hence no data type
It is important to note that the message will be passed transparently to the
addressed object. The SSI engine performs no checks for violations of the object
addressing scheme, e.g. a malformed Get_Attribute request which (wrongfully)
includes message data will be passed unmodified to the object, even though this is
obviously wrong. Failure to observe this may cause loss of data or other undesired
side effects.
Anybus
®
CompactCom
™
40 Common Ethernet Design Guide
HMSI-27–269 2.1