EasyManua.ls Logo

Anybus CompactCom 40 EtherNet/IP - Page 147

Anybus CompactCom 40 EtherNet/IP
198 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
147
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
List Directory Contents
The folling example lists the contents of the reports directory
Start
InstX = Obj.Create( )
InstX.Directory Open( \reports\ )
data = InstX.Directory Read( )
Done
End
InstX.Directory Close( )
Obj.Delete ( InstX )
Yes
No
Create a new instance. The instance number
returned will be used by subsequent commands.
Open the report directory. The instance can now
be used for directory operations. Any le
operations will be rejected.
Read the directory entry by entry.
Keep reading until all entries have been read.
When there are no more entries, this is indicated
by a zero data size in the response.
Close the le.
Delete the instance.

Table of Contents

Related product manuals