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

Unknown data type DT #436

Open
joed74 opened this issue Sep 15, 2023 · 2 comments
Open

Unknown data type DT #436

joed74 opened this issue Sep 15, 2023 · 2 comments

Comments

@joed74
Copy link

joed74 commented Sep 15, 2023

I cannot read DateTime (DT) fields in my CLX plc:

2023-09-15 16:27:27.822 thread(3) tag(0) INFO unpack_response:1651 00048 00 00 c0 00 63 94 90 97 66 05 06 00
2023-09-15 16:27:27.823 thread(2) tag(0) WARN check_read_status_connected:1448 Unsupported data type returned, type byte=192

The underlying datatype is just an ULint (or Lint)

I think it has to be added to defs.h

#define AB_CIP_DATA_DT ((uint8_t)0xC0) /* DT value, 64 bit */

grafik

Interestingly, the LDT data type (called STIME in libplctag, type 0xCC) works out of the box

@kyle-github
Copy link
Member

Unfortunately, the types are not really used anywhere. Only atomic values seem to be directly supported.

@kyle-github
Copy link
Member

But I can add this in for what it is worth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants