
Data type
Prefix
Exam‐
ple
Memory
assignment
Data type designation
Data type description
POINTER TO ???
p???
ptrVar
32 bits
Pointer To ???
Pointer/address of a variable
with specific data type
POINTER TO DWORD pdw
pdwVar 32 bits
Pointer To Double
Word
Example: Pointer to a double
word variable
Note
At present, IndraLogic does not support data types LWORD,
LINT, ULINT and WSTRING.
???
Data type of variable to which the pointer is pointing
Tab. 8-4:
Instances of simple data types
Suffixes for instances of simple
data types
The instance names of simple data types can additionally be given suffixes to
identify their origins. They have been added to the name as lower-case let‐
ters with underscore.
Suffix
Significance
Example
i
Hardware input
bAxisTravelLimit_i
q
Hardware output
bLockDoor_q
gb
Global variable
stControlState_gb
m
Local flag
iComData_m
Tab. 8-5:
Examples of suffixes of simple data types
8.5.9
Definition of standard interfaces in function blocks
Introduction
Most of the function blocks feature an input for activation and an output that
is signaling error-free processing. An output identifying the processing period
is often required in addition. Further outputs are defined for signaling errors.
Standardized naming and identical behavior of these standard interfaces in‐
crease comprehension, reduce the time required to become acquainted with
the code and so relieve the support department.
Function blocks can be used to encapsulate complex tasks such that they
can be reused and to address them via defined interfaces. Processing can
take place in either state-controlled or edge-controlled form.
State-controlled
If repeating its task again and again when having reached a defined state af‐
ter switch-on, a function block is state-controlled.
Edge-controlled
If executing its task exactly once after switch-on, a function block is edge-
controlled.
Standard inputs at function blocks
To make it possible to recognize from outside whether a function block is
state-controlled or edge-controlled, two different variable names are used to
activate the function block:
●
The "Enable" activation input is used at function blocks which work in
state-controlled form.
●
The "Execute" activation input is used at function blocks which work in
edge-controlled form.
Standard outputs at function blocks
●
The "Done" output signals that a function block has successfully execu‐
ted its task and possibly provided data are valid.
Bosch Rexroth AG
DOK-INDRV*-MLD3-**VRS*-AP02-EN-P
228/267
Rexroth IndraDrive Rexroth IndraMotion MLD (2G) as of MPx-18
Programming information
LSA Control S.L. www.lsa-control.com [email protected] (+34) 960 62 43 01