Packed Bits - Control Techniques Epsilon EP-P Reference Manual

Table of Contents

Advertisement

Figure 84:
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.
Example: BitRegister.1.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.
Example: BitRegister.1.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.

3.24.4 Packed Bits

Packed Bits are 16-bit words configured by the user to read and write groupings of bit-level parameters (booleans and input/output events).
Packed Bits are broken into Control Word(s) and Status Word(s). These words, once configured, can then be accessed via communication
networks and/or within user programs to handle the bits as desired.
Control Words
A master device such as a PLC or HMI writes to the Control Word(s) as a 16-bit word. The data within that word is then broken into individual
bits and written to the bit-level parameters that the user has mapped (see Figure 85). Note that if one of the bit-level parameters within the
control word is modified from some other means (i.e. a user program or an Assignment), that the value of that parameter is not written into the
Control Word value. For example, if a user initiates a Jog Plus within a user program, Bit0 of the Control Word in the Figure 85 below would not
automatically change to 1. Bit0 will only be 1 if the master device sets that bit when writing to the Control Word.
Figure 85:
Status Words
Status Words are read by the master device as a 16-bit word. The drive assembles the bit-level parameters mapped by the user into 16-bit
74
User Bits Mask View
PLC
HMI
Control Words Communications Example
www.controltechniques.com
Value
Modbus, EtherNet I/P,
Profibus, DeviceNet
ControlWord.0
Bit0
Jog.0.PlusActivate
Bit1
Jog.0.MinusActivate
Bit2
Home.0.Initiate
Bit3
Bit4
Index.0.Initiate
Bit5
Index.1.Initiate
Bit6
Bit7
Bit8
Program.0.Initiate
Bit9
Program.0.Stop
Bit10
Bit11
Stop
Bit12
Feedhold
Bit13
Bit14
Bit15
Epsilon EP-P Drive Reference Manual
Revision: A4

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Epsilon EP-P and is the answer not in the manual?

Table of Contents