8772 questions

10419 answers


15492 members

0 votes
32 views 0 comments

I'm trying to enable a custom register block, following this guide however I changed it so the file that has been written in contains only normal written text (ASCII). When I now try to make a slave send a request to that register, it outputs only "x00\x00\x00\x00\x00\x00\x00\x00" (when picked Data Type is ASCII).

How can I fix this?

1 Answer

0 votes


This is normal as \x00\ is an alias for null definition, so if the hostname doesn't use the whole set of registers, empty registers are filled with nulls, in a result, you're getting \x00\ values after your hostname repeating.

This will not change unless there will be a requirement from someone to develop a different data type, but for now, you can only hope this may change in the future.