
%QX7.5 and %Q7.5:
Output bit 7.5
%IW215:
Input word 215
%QB7:
Output byte 7
%MD48:
Double word at memory location 48 in the flag
Tab. 7-2:
Examples
The program detail below shows an example of the declaration of variables
with different data types which are assigned to the process image.
Program:
PROGRAM
PLC_PRG
VAR
Dig_IN_DWORD
AT
%ID0
: DWORD;
Dig_IN_WORD
AT
%IW2
: WORD;
Dig_IN_BYTE
AT
%IB5
: BYTE;
Dig_OUT_DWORD
AT
%QD2
: DWORD;
Dig_OUT_WORD
AT
%QW0
: WORD;
Dig_OUT_BYTE
AT
%QB7
: BYTE;
END_VAR
Parameter/addressing relation ta‐
bles
The following tables show the relation between the parameters for the proc‐
ess input/output image and the corresponding addressing types. The tables
contain only three parameters to illustrate the principle. The distribution
shown applies to all parameters of the inputs (P-0-1390 to P-0-1409) and out‐
puts (P-0-1410 to P-0-1429).
P-0-1390
P-0-1391
P-0-1392
...
IB0
Bit15...bit
8
IB1
Bit7...bit0
IB2
Bit15...bit
8
IB3
Bit7...bit0
IB4
Bit15...bit
8
IB5
Bit7...bit0
...
IW0
IW1
IW2
...
ID0
...
Tab. 7-3:
Process input image (Big Endian: as of MPx17)
P-0-1410
P-0-1411
P-0-1412
...
QB0
Bit15...bit
8
QB1
Bit7...bit0
QB2
Bit15...bit
8
QB3
Bit7...bit0
QB4
Bit15...bit
8
QB5
Bit7...bit0
...
QW0
QW1
QW2
...
QD0
...
Tab. 7-4:
Process output image (Big Endian: as of MPx17)
Network communication
If it is intended to establish network communication with other devices using
the MLD (e.g., via TCP/IP), the conversion functions for the byte order used
should always be employed so that the user programs can be run with all
firmware versions.
Usually, all communication libraries provide functions which execute this con‐
version. The "SysLibSockets" library includes, e.g., the following conversion
functions:
●
SysSockHtons (host to network): Control unit to network, 16 bits
●
SysSockNtohs (network to host): Network to control unit, 16 bits
●
SysSockHtonl (host to network): Control unit to network, 32 bits
●
SysSockNtohl (network to host): Network to control unit, 32 bits
DOK-INDRV*-MLD3-**VRS*-AP02-EN-P
Bosch Rexroth AG
209/267
Rexroth IndraDrive Rexroth IndraMotion MLD (2G) as of MPx-18
Notes on commissioning and application
LSA Control S.L. www.lsa-control.com [email protected] (+34) 960 62 43 01