Issue
Model and Device Name from SLP sensor via Modbus RTU
Product Line
EcoStruxure Building Operation
Environment
- Automation Server AS, ASP, ASB
- SpaceLogic Sensor SLP
Cause
The Model, Device Name and Serial number are 64bit values and need to be collected with a single query to get the correct data.
Script and Function Block programs can not manipulate 64 bit values
- Model Register 9, 64bit, read only, Read Function Code 4
- Serial number Register 42, 64bit, read only, Read Function Code 4
- Device Name Register 7, 64bit, read/write, Read Function Code 3
(currently the documentation shows these as 32bit)
Resolution
A simple way to collect the Model and Serial Number is shown below
This involves creating a Modbus Poll Group for the 4x 16bit parts of the 64bit Modbus Register. This will effectively query the 4 registers in a single packet, ensuring the correct data is collected.
The same method can be used to collect the Device Name, but this value cannot be written using the same Group, as block/group write is not supported in EBO
Create a Modbus Poll group containing the four 16bit registers, then create a String variable
Then create a script to convert to ASCII characters