
The following data types must be converted for transmission via a network:
Data type
Control unit to network
Network to control unit
WORD, INT, UINT
SysSockHtons()
SysSockNtohs()
DWORD, DINT, UDINT,
TIME
SysSockHtonl()
SysSockNtohl()
The BYTE, CHAR, STRING data types do not need to be converted. The RE‐
AL and LREAL data types do not have any specified byte order. In this case,
the correct setting can only be determined in trials.
Accessing files with MLD
Files can only be accessed in conjunction with an ADVANCED control panel.
If files are accessed using the "MX_SysLibFile" library, the byte order also
has to be observed. In the figure below, variable "ardiBuffer" (32-bit values) is
used to write ASCII characters to a text file ("Test.txt"). The characters are
stored differently on systems with different byte orders. Especially when user
programs are ported between systems with differing byte order, a check must
be run to verify whether the data are still consistent after the porting. If this is
not the case, either the order has to be exchanged manually or the values
have to be converted to 8-bit values.
Fig. 7-37:
Checking the byte order
There are two options of adapting the PLC program:
Fig. 7-38:
Exchanging the byte order
- or -
Bosch Rexroth AG
DOK-INDRV*-MLD3-**VRS*-AP02-EN-P
210/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