
Operation
Operating Instructions Option Module IEI for b maXX drive PLC BM4-O-
IEI-01
51
7
7.3.11.2 Example of initializing and operating the IEI option module in probe mode
A 24 V signal is connected at input probe 1. You want to count the rising edge of the 24 V
signal.
You initialize the IEI option module as follows:
Set counter mode
Write 16#0005 to the counter mode register (see the example
*.w_COUNTER_MODE = 16#0005
From now on, the internal counter counts the rising edges of the 24 V signal. The system
copies the counter value to counter latch register 1 when latch condition 1 (signal "Sync
1" from the BACI) occurs.
After activating the IEI option module, the counter mode register has a value of 16#0000,
i.e. no mode is selected for the IEI option module.
7.4
Synchronizing the IEI option module with the b maXX drive PLC
On the IEI option module, the system copies the value of the internal counter to counter
latch register 1 on a regular basis. (In encoder mode, the internal counter is used to count
the increments of rectangle incremental encoder; in probe mode, the system counts the
edges of a 24 V signal at input probe 1.)
The internal counter is always copied to counter latch register 1 when the "Sync 1 signal"
from the BACI occurs. This signal is set as the trigger source for the IEI option module.
Users must ensure that the "Sync 1 signal" from the BACI is available as a trigger source.
If an option module in the b maXX system is already supplying the "Sync 1 signal" from
the BACI, you do not need to make any more settings. Option modules that supply the
"Sync 1 signal" on the BACI include the CANsync-Master option module (BM4-O-CAN-
06) and the CANsync-Slave option module for b maXX drive PLC (BM4-O-CAN-05).
If there is no option module in the b maXX system that supplies the "Sync 1 signal" on the
BACI, you must use FB TIMER_A_INIT from library SYSTEM1_PLC01_20bd00
(PROPROG wt II) or SYSTEM1_PLC01_30bd00 (ProProg wt III) or higher to make sure
that this signal is available in the b maXX. For information on using FB TIMER_A_INIT,
see also the b maXX drive PLC Application Manual.
Example 1:
You have a b maXX 4400 basic unit with a b maXX drive PLC option module, with a CAN-
sync-Master option module and an IEI option module.
The CANsync-Master option module supplies the "Sync 1 signal" on the BACI, the IEI op-
tion module is triggered by this signal and on the b maXX drive PLC this signal is assigned
to an event task via Event 11 ("Sync Signal1 option module").
You do not need to make any further settings for the IEI option module.
The system copies the reading of the IEI option module's internal counter to counter latch
register 1 each time the "Sync 1 signal" on the BACI occurs.