You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless Im missing something, here is whats happening:
When preparing the config file, it appears that its pulling an offset in the modbus addresses from the object type, and adding the starting_address value to it. So, if you specify:
It throws an error. It appears that it might be adding 40001 from the type=holding_register to the specified address (40001) to be polling at the wrong place.
If you specify:
This happens quite often because Modbus is an open protocol, different vendors have their own interpretation on the standard, that's why we have many different variants, e.g. zero-based vs one-based, big-endian vs small-endian, etc. Usually vendors will provide documents/examples to help developers for integration.
In your case, your device vendor is using relative address (offset address) rather than absolute address for data comm.
Okay. It was a little unclear to me based on the documentation in modpoll + what the manufacturer put out, in combination with my poor understanding of modbus addresses. I assumed that an address was an address, and if an 'offset' to an 'address' was specified (e.g. 1 to 40001), I should call the address (40002) which was probably wrong to assume. Feel to close.
Unless Im missing something, here is whats happening:
When preparing the config file, it appears that its pulling an offset in the modbus addresses from the object type, and adding the starting_address value to it. So, if you specify:
It throws an error. It appears that it might be adding 40001 from the type=holding_register to the specified address (40001) to be polling at the wrong place.
If you specify:
It pulls from 40001 (the first holding_register).
Problem:
This conflicts with the documentation: helloysd
Suggested Resolution:
![outputwith40001](https://private-user-images.githubusercontent.com/69665386/300632488-9b62e9c2-7cca-4a7a-ab66-e46da3d55fa4.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODgyNTYsIm5iZiI6MTcyMzg4Nzk1NiwicGF0aCI6Ii82OTY2NTM4Ni8zMDA2MzI0ODgtOWI2MmU5YzItN2NjYS00YTdhLWFiNjYtZTQ2ZGEzZDU1ZmE0LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzU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V5X2lkPTAmcmVwb19pZD0wIn0.c2vy7fqLwqCxagBkiWY09qj2Tyu--DqmpsW9jz6AM1c)
![configwith1](https://private-user-images.githubusercontent.com/69665386/300632494-8a551ae0-9e9f-4244-b72e-a84264ca0b5e.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODgyNTYsIm5iZiI6MTcyMzg4Nzk1NiwicGF0aCI6Ii82OTY2NTM4Ni8zMDA2MzI0OTQtOGE1NTFhZTAtOWU5Zi00MjQ0LWI3MmUtYTg0MjY0Y2EwYjVlLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA5NDU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExNTJlN2QxZDFmZjAxYTc2Y2Y2MGM5ODRjNGI1ODRlMDdlZWRlN2IzMDY2Yjc4ZGRkMTg1ZjM3MjY0M2FhNjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9C-VSl2W8PIFQ0EF0S5njvvaUumcFO7o_Gjff4lemAE)
![outputwith1](https://private-user-images.githubusercontent.com/69665386/300632496-7b6e74af-af81-48e7-be48-519e6daf7745.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODgyNTYsIm5iZiI6MTcyMzg4Nzk1NiwicGF0aCI6Ii82OTY2NTM4Ni8zMDA2MzI0OTYtN2I2ZTc0YWYtYWY4MS00OGU3LWJlNDgtNTE5ZTZkYWY3NzQ1LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA5NDU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyMzg5Y2ZjMDJiN2Y3ZjI5YTUxNzBmZjE3ZDUxODk3ZDU0ZTQzYTBjNjliZjVmYzlmMWFmMjNmMWQzNTA0YmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eWsq3TPPVmqVa6cSEcz4jl7aK4wAmYMQguOkJkYyyjI)
Should either pull offset from object_type and be documented as such, or ignore type and only pull from specified start_address.
Uploading config files and screen shots to demonstrate.
The text was updated successfully, but these errors were encountered: