
Configuring the IEI option module in the application program
Operating Instructions Option Module IEI for b maXX drive PLC BM4-O-IEI-01
Document No.: 5.02013.02
Baumüller Nürnberg GmbH
36
7.2
You can make further settings via the IEI option module's registers (see
7.2.1
Latch conditions in encoder mode
In encoder mode, you can choose latch conditions 2 and 3 from the signals at inputs
"probe 1", "probe 2" and "reference cam" of the IEI option module as well as from the "en-
coder zero track reached" signal of the rectangle incremental encoder on the IEI option
module.
You make the selection via the latch mode register (see
The signals are ANDed, which means that the respective latch condition is not met until
the result of the logical AND operation has a rising or falling edge.
If, for example, the setting of latch condition 2 is such that the rising edge of "probe 1"
AND "encoder zero track" must be reached, the system does not copy the IEI option mod-
ule's internal counter to counter latch register 2 until the result of the logical AND opera-
tion changes from logically FALSE to TRUE.
If the rising edge of the reference cam is set as latch condition 2 or 3, the system copies
the value of the IEI option module's internal counter to counter latch register 2 or 3 when
the latch condition is reached and then zeroes the internal counter.
This is also the case if the reference cam is ANDed with the other signals as latch condi-
tion 2 or 3.
If the reference cam is NOT set as latch condition 2 or 3, the system copies the value of
the IEI option module's internal counter to counter latch register 2 or 3 when the latch con-
dition is reached. The internal counter is not zeroed; rather, it retains its value.
Below, we will explain the register structure of communication RAM between the b maXX
drive PLC (BM4-O-PLC-01) and the IEI-01 option module (BM4-O-IEI-01).
To allow you to access registers of the communication RAM in the PROPROG wt project,
data types are defined that map the register structure. The system uses these data types
to declare variables that are assigned to the IEI option module's base address.
After this, it is possible to access the registers of communication RAM via the structure
elements of the declared variables.
Structure IEI_PLC_BMSTRUCT is available for accessing the registers in communication
RAM.
This structure is defined from library BM_TYPES_20bd03 (PROPROG wt II) /
BM_TYPES_30bd01 (ProProg wt III) or higher onward. After you have integrated library
BM_TYPES_20bd03 (PROPROG wt II) / BM_TYPES_30bd01 (ProProg wt III) in the
project, the data type is available. This library is already integrated in template
"BM4_O_PLC01".
NOTE
You set latch conditions 2 and 3 via the latch mode register and not via FB IEI_INIT.