Reading the ROI (Box, Spot, Diff) status over Modbus TCP

When a spot, box, or delta temperature is deleted via the web interface so it no longer exists, the corresponding Modbus registers keep their value (the last valid value). How can I read the ROI status over Modbus TCP?

 

It is possible to map the ROI enabled/disabled status, but this is not included in the assembly map.

On page 72 of the EIP and Modbus Library (attached) there is an explanation of how to read the Ethernet/IP resources of the camera using Modbus TCP. There is a formula showing how to convert the EIP objects to Modbus TCP registers.

The attached spreadsheet does this conversion from EIP to Modbus, so you do not have to worry about the formula in order to find the Starting Register—but do read pages 72–74 carefully to understand how data will be displayed.

To read the the enabled/disabled status of a Box (ROI), refer to lines 189/190 of the attached spreadsheet. Columns M to R will tell you the starting register of each of the six boxes available in the FLIR AX8 camera. Since this is a Boolean register, it will be fairly simple.

Example (enabled = 1, disabled = 0):

Box 1 Status
   Modbus ID (Slave address) = 109
   Starting Register = 4081 (only used for reference)
   Enabled/Disabled Status Register = 4082

Box 2 Status
   Modbus ID (Slave address) = 109
   Starting Register = 8081 (only used for reference)
   Enabled/Disabled Status Register = 8082

The same concept applies to spots (ROI): see lines 167/168 of the attached spreadsheet.

Example:

Spot 1 Status
   Modbus ID (Slave address) = 108
   Starting Register = 4081 (only used for reference)
   Enabled/Disabled Status Register = 4082

 

File Attachment(s)

Convert EthernetIP to Modbus TCP.xlsx (50.20 KB)

File Type pdfEIP & Modbus.pdf (999.76 KB)

Back to top