User guide
64 www.controltechniques.com SM-EZMotion Module User Guide
value, all bits are read regardless of the mask.
Figure 89: User Bit Read/Write Process
Configuring the User Bit Mask Register
The User Bit Mask is a 32-bit parameter that can be
configured through Power Tools Pro, in the User Program,
or over the communications network. The default value for
the Mask register is 0xFFFFFFFF (HEX), or all bits ON. To
change the Mask value using PowerTools Pro, navigate to
the Mask tab on the User Bits view, see Figure 90.
Figure 90: User Bits View (Mask Tab)
In the User Bits view - Mask Tab, each bit of the Mask can
be set to 0 or 1 individually. ON (or 1) is indicated by a
shaded square, and OFF (or 0) is indicated by an empty
square. Bit 31 is the most significant bit in the word, and bit
0 is the least significant bit. If the bit is shaded, it means
that particular bit will be passed through when written.
Each additional group of 32 User Bits that are added, a
new Mask parameter will appear for that group. Mask 0 will
control the mask for User Bits 0 through 31. Mask 1 will
control the mask for Bits 32 through 63. This sequence
repeats for each additional 32 bits that is added.
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.
7.4 Configure I/O
7.4.1 Assignments View
External control capability is provided through the use of
assignments to the sources (SP Inputs, SM-EZ Motion
Inputs, and I/O Plus Inputs) or the destinations (SP
Outputs, SM-EZ Motion Outputs, and I/O Plus Outputs).
Assignments provide a mechanism for the user to define
the internal and external dynamic control structure to
separate complex motion profiles. These functions directly
correspond to any input or output line on the drive or option
modules. External controllers, such as a PLC or other
motion controllers, may be connected to affect or monitor
the device's operation.
The Unidrive SP is equipped with up to six input lines (three
can be configured as Input or Output) and up to five output
lines (three can be configured as Input or Output and two
are Relay outputs). The SM-EZ Motion module has an
additional four input and two output lines.
The SP drive's input and output lines can be accessed
through the two removable 11-pin control connectors. The
SM-EZ Motion input and output lines are located on the
front face of the SM-EZ Motion module.
All inputs and outputs are configured as sourcing and are
designed to operate from a +10 to 30 VDC power source.
The user is responsible for limiting the output current to
less than 10 mA or less for each digital output.
Assignments View
The Assignments View is used to tie a source to a
destination. Destinations are found on the right side of the
Assignments view, and are functions that need to be
Network
Master
Write
Read
FM-3/4
Written data is AND’ed with the Mask
and then written into 32-bit Value.
Read data is read directly from the
32-bit Value and bypasses the Mask.
Mask
Value
AND