Emerson FM-3 Network Card User Manual


 
71
Setting Up Parameters
Figure 44: User Bits Mask View
To configure the mask in a user program, the parameter named BitRegisiter.#.ValueMask is
written to. The mask can be written to using Hexadecimal based values or decimal based
values. To write a hexadecimal value to the parameter, the hex value must be preceded with
the characters "0x". To write a decimal value to the parameter, normal notation is used. For
examples of writing the Mask to a value in a program, see below.
For example: BitRegister.0.ValueMask = 0xFFFF0000
This example writes a 1 into all bits of the upper sixteen bits, and 0 into each of the lower
sixteen bits using hexadecimal value. To write the same value using decimal notation, the
following instruction would be used.
For example: BitRegister.0.ValueMask = 4294901760
This instruction would also write a 1 into each of the upper sixteen bits, and a 0 into each of
the lower sixteen bits.