Addresses for Attributes and Commands

FieldPoint cFP-180x Modbus

Addresses for Attributes and Commands

How to Use the Tables in This Help File

  • Channel (Type)—The module channel. For modules with multiple channel types, numbering starts over with each set of channels and the table shows the type of each set. For example, the cFP-CTR-502 has Counters 0 to 7 (Count Input type), Gates 0 to 3 (Discrete Input type), and Outputs 0 to 3 (Discrete Output type).
  • Least Significant Digits of Address—Add this value to the base value as shown in the formulas below to calculate the address value. Each address holds one two-byte word.
  • Name—The name of the attribute or command represented by the higher or lower byte of the word contained in the address. This table shows the bytes in descending order, with the higher byte first.
  • Setting—The attribute or command setting that corresponds to the adjacent value in the Value column.
  • Value—Write the hexadecimal value in this column to the address to change the corresponding attribute or command to the adjacent value in the Setting column.

Calculating Addresses for Attributes

Use the following formula to calculate addresses for channel attributes:

Address = 10,000 + (s x 1,000) + LSD

where s is the slot or position of the I/O module and LSD is the value from the Least Significant Digits of Address column of the Attributes table for the module.

Example: A cFP-AI-110 is in slot 3 and you want to set the input range of channel 5 to ±21 mA:

  • Channel number (n) = 5
  • Slot number (s) = 3
  • LSD = 8n
  • Address = 10,000 + 5,000 + 40 = 15,040

The byte value for the ±21 mA range is 02, so you write x0200 to address 15040.

Note  In this example, the lower byte of the address contains no attribute information. If you are writing to an address containing two attributes and you do not want to affect the value of one attribute, read the address before writing and write the current value to the byte you do not want to affect.

Calculating Addresses for Commands

Use the following formula to calculate addresses for channel commands:

Address = 20,000 + (s x 1,000) + LSD

where s is the slot or position of the I/O module and LSD is the value from the Least Significant Digits of Address column of the Commands table for the module.

Example: A cFP-QUAD-510 is in slot 7 and you want to set the Reset command to Position LSB channel 3:

  • Channel number (n) = 3
  • Slot number (s) = 7
  • LSD = 8n
  • Address = 20,000 + 7,000 + 24 = 27,024

The byte value for the Reset command is 01, so you write x0100 to address 27024.

Note  In this example, the lower byte of the address contains no command information. If you are writing to an address containing two commands and you do not want to affect the value of one attribute, write 00 to the byte you do not want to affect.