Single Alignment Check Constant

Modbus Motion Interface

Read_Single(System_+_SingleAlignmentCheck_s);

Description

This register holds a known single precision floating point value to confirm that the singles registers are aligned with the addressing convention of the master and that the word order is the same between the master and the controller. The master should read from this register the value 123456.78 decimal. If this is not the value read then try reading at address 17Eh or 180h. If these alternate addresses produce the proper 123456.78 value then the indicated offset will have to be used for all references to the Modbus Register Map.

Escapes

Reading the Single Alignment Check Constant does not generate any escapes.

Examples

Confirm that single precision values read correctly

if abs(Modbus.Read_Single(System_+_SingleAlignmentCheck)-123456.78) < 0.01 then
 Show_Message('Alignment and register order look good')
else
 Show_Message('Alignment or register order is off');

Related Topics

Word Alignment Check Constant
Double Alignment Check Constant