Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FileObject] Add required attribute Directory (34) to FileObject implementation #51

Open
Broekman opened this issue May 7, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Broekman
Copy link
Collaborator

Broekman commented May 7, 2021

[FileObject] Add required attribute Directory (34) to FileObject implementation

Refer to CIP Vol1 (3.24) - 5A-42.2

Class code: 0x37
Attribute ID: 32
Instance ID: 0 (base class)
Access rule: Get
Name: Directory
Data type: Array of: Struct of:

  • Instance number (UINT)
  • Instance name (STRINGI)
  • File name (STRINGI)

Also requires implementation of STRINGI:

  • Number (USINT)
  • Array of: struct of: Strings
    • LanguageChar1 (USINT
    • LanguageChar2 (USINT)
    • LanguageChar3 (USINT)
    • CharStringStruct (USINT) - 0XD0 STRING, 0xD5 STRING2, 0xD9 STRINGN, 0xDA SHORT_STRING
    • CharSet (UINT)
    • InternationalString (array of 8-bit octets - datatype as defined in CharStringStruct)

Already have this working but in a quick and dirty way. Will work it neatly into the library later. At least will add the structure but if wanted I could also add e.g. a functionality to retrieve a list of files from a device.

@Broekman Broekman added the enhancement New feature or request label May 7, 2021
@Broekman Broekman self-assigned this May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant