Modsak Manual v3.14 - 3.1. Defining registers
Use the Add Registers page to add definitions of registers. If Modsak is "running" (i.e. the button is depressed), you will have to click the button before you can add register definitions.
This page enables you to enter the following details:
Quantity. How many registers to add. The Address will be incremented for each register added. The other fields will have the same values in each register.
Address. The address of the first register. This is a "model address", and may be different from the address used in messages, depending on how the address mapping is configured (see Address mapping).
Name. An optional name for the register. Modsak displays the name, but does not use it in any other way. It is purely for your benefit, to remind you of what the register is used for.
Unit. An optional unit for the register. Modsak displays the unit, but does not use it in any other way. It is purely for your benefit, to remind you of what unit is used for the register value.
Type. The type (signed integer, unsigned integer, or floating-point) and size (1, 8, 16, 32 or 64 bit) of the value to be stored in the register. You would normally use Int 16 or Uint 16 for holding registers and input registers, and Discrete (i.e. 1-bit integer) for coils and discrete inputs - the other sizes are non-standard.
Radix. The radix to be used to display the register value. The radix only affects the display of unsigned integer values: floating-point and signed integer values are always displayed in decimal.
Offset and Scale. These allow you to scale the register value when displaying it in decimal (the scale and offset are not used when displaying in other radixes). The scaling uses the formula:
displayed_value = (register_value + offset) / scale
Minimum and Maximum. These allow you to specify limits for the register value. If the register value is less than the specified minimum or greater than the specified maximum, the value is displayed with a red background.
Value. The initial value to be stored in the register.
Write. In slave mode, Modsak will only allow a master to write to this register if this option is selected (reads are always allowed). When polling, Modsak will write this register to the slave if this option is selected, otherwise it will read this register from the slave (see Polling).
When you have entered/selected values for the above fields, click the Reset button, all the values will be reset to their defaults.button to add the register definition(s). You may then edit the values and click the button again to add further register definitions. If you click the