
Function block (FB) IEI_INIT
Operating Instructions Option Module IEI for b maXX drive PLC BM4-O-IEI-01
Document No.: 5.02013.02
Baumüller Nürnberg GmbH
54
7.6
7.6
Function block (FB) IEI_INIT
Function block IEI_INIT initializes the IEI option module (BM4-O-IEI-01). The system
writes the configuration that was created at the input to the registers in communication
RAM.
FB IEI_INIT needs library BM_TYPES_20bd03 (PROPROG
wt
II) or
BM_TYPES_30bd01 (ProProg wt III) or above.
Description
Function block IEI_INIT is for initializing the IEI option module. At its inputs, you set the
IEI option module's mode (encoder or probe mode) using the corresponding configuration
of the mode. You choose the mode by connecting valid values to inputs us_FACTOR or
us_TOUCH_PROBE_MODE.
FB IEI_INIT makes these settings in the IEI option module's counter mode register.
Latch conditions 2 and 3 are set after calling FB IEI_INIT in encoder mode by writing to
the latch mode register. Latch conditions 2 and 3 are NOT set via FB IEI_INIT.
Input/output
_BASE
:
At input/output
_BASE,
global variable
_IEI_Ctrl_Slot_G
(to
_IEI_Ctrl_Slot_M
)
is connected in accordance with the slot (G to M) of the option module.
If this global variable is no longer in the PROPROG wt II project, create – in dependence
on the slot (G to M) – the global variable
_IEI_Ctrl_Slot_G
(to
_IEI_Ctrl_Slot_M
)
of data type
IEI_PLC_BMSTRUCT.
At declaration of the global variables, this variable must be connected to the base address
of the BM4-O-IEI-01 option module.
Parameter input
Data type
Description
_BASE
IEI_PLC_BMSTRUCT
Base address for the IEI option module
us_FACTOR
USINT
0, 1, 2, 4
Multiplication of evaluation of the counter
x_DIRECTION
BOOL
Counter's direction of rotation (clockwise or
counterclockwise
us_TOUCH_PROBE_MODE USINT
0, 1, 2
Setting of probe mode
x_EN
BOOL
Release
Parameter output
Data type
Description
_BASE
IEI_PLC_BMSTRUCT
Base address for the IEI option module
si_ER
SINT
Error number
x_ERR
BOOL
Error bit