Emerson EZMotion User Manual page 122

Table of Contents

Advertisement

Spaces are not allowed in the Name for a Bit however, the underscore character ("_") may be used.
The Initial Value for each Bit is configured using a check box for the specific Bit. To make the Initial Value "On" or "Active", simply
select the check box for that Bit. The default value for each Bit will be "Off" or "Inactive", the check box will be clear.
Bits are configured on the Bits view as shown in Figure 117.
Figure 117:
The following parameters are part of the Bit definition:
Name
This is a twelve-character string that allows the user to assign a descriptive name to the Bit. Spaces are not allowed in the name of a
Bit.
Initial Value
This is the initial value of the Bit that will be used on power up. If the Bit has been configured as a Save to NVM parameter, then the
value in NVM will overwrite the initial value on power up.
Using Bits in a Program
Bits may be accessed in the User Program. Several examples of this are shown below.
Bit.Raise_Table = ON
Wait For Bit.Vacuum_ON = OFF
Wait For Bit.RunPart_A OR Bit.RunPart_B OR Bit.RunPart_C
If (Bit.RunPart_A = ON AND Bit.Vacuum_ON = OFF) Then
Call Program.1
Endif
Bits are turned on by setting them equal to ON, TRUE, YES, SET, or ENABLE (not case sensitive), and can be deactivated by
setting them equal to OFF, FALSE, NO, CLEAR, or DISABLE. Setting an individual bit equal to 1 or 0 in a user program will cause a
red dot error. The Boolean values listed above must be used.
Adding and Deleting Bits
Bits can be added or deleted in groups of 32-bits. Individual bits cannot be added or deleted. The default number of Bits available is
32. To add an additional 32-bits, click the Up Arrow on the spin box at the top of the Bits view (see Figure 117).
To decrease the number of Bits by 32, click the Down Arrow on the spin box. When decreasing the number of Bits, it is always the
last 32-bits in the list that will be eliminated.
32-bit Bit Register and Bit Masking
When using different communications protocols (i.e. DeviceNet, Profibus, Modbus), it is often desirable to access groups of Bits in a
single parameter, rather than having to access them individually. In EZMotion it is possible to access 32-bits in a single parameter.
This parameter is named BitRegister.#.Value. Because some of the 32-bits may be used by the program, and should not be modified
from the network communications, it is possible to "Mask Off" certain bits. Masking bits prevents them from being modified in the
program when the 32-bit parameter is written to.
When a Bit Register (group of 32 Bits) is written to, the value is then logic-AND'ed with the mask to determine the resulting state of
each of the 32 individual bits. If the individual bit value of the 32-bit mask is "1", then the corresponding bit from the written 32-bit
parameter is passed through, and the resulting value stored in the specific bit will be the written bit value. If the bit value of the 32-bit
mask is "0", then that particular bit is blocked (or masked), and the resulting bit value does not change, (Original Value AND NOT 32-
Bit Mask) or (Value Written over Network AND 32-Bit Mask). An example of this is shown in Figure 118.
110
Bits View
www.controltechniques.com
EZMotion User/Programming Guide
Revision: A8

Advertisement

Table of Contents
loading

Table of Contents