addlistelmt.vts
来自「BacNet ScriptsExamples(英文的)。用于数据采集。」· VTS 代码 · 共 76 行
VTS
76 行
; Testing Support for Executing the BACnet AddListElmt Service
; Version 1.0
;
; This test script writes a whole array.
;
;--------------------------------------------------------------
SETUP BACnet AddListElmt Service Execution
;--------------------------------------------------------------
;
; Setting up the hardware parameters for the VTS computer
; and the IUT.
;
;
; the network parameter for the VTS computer
;
NET_1 = 1, ETHERNET, 0
--- The network which connects the VTS computer to the IUT.
--- Adjust the parameters as needed to reflect the actual
--- physical environment. The first value represents the
--- physical network number, the second value the physical
--- network type and the third value the physical port.
NET_X = 5,ETHERNET
--- A virtual network to simulate requests from a remote network.
;
; parameters for the implementation under test (IUT).
;
IUT_MAC = 0040ae000f9c
--- The physical Ethernet address of the IUT accessed
--- from network 1.
DEVICE_ID = 254
--- The device object instance number for the IUT.
SECTION Testing the execution of the AddListElmt service
TEST #1a
--- Add an element to a non-list property
DEPENDENCIES none
REFERENCE Clause 15.7
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = AddListElement
Object = 0, Device, DEVICE_ID
Property = 1, Object-Name
OpenTag 3
Unsigned = 1
CloseTag 3
)
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = Error
ERROR-CHOICE = AddListElement
OpenTag 0
ENUMERATED = 5 -- class = services
ENUMERATED = 22 -- code = property is not a list
CloseTag 0
UNSIGNED = 1, 0
)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?