Configuration
3.4 Other options when configuring a CP 243-1
CP 243-1
Operating Instructions, 03/2012, C79000-G8976-C244-02
75
3.4.5 Structure of the Internet data block (IDB)
The IDB is created by the Internet wizard in STEP 7 Micro/WIN 32. The structure of the IDB
is shown in the following table.
The IDB immediately follows the NDB in variable memory. Since the length of the NDB
depends on the current configuration, no general start address can be given for the IDB. The
byte offsets in the table below all relate to this start address.
Byte offset in variable
memory
Description Data format Example
Header
0-1 Length of the IDB
(with CRC)
2 bytes, hex 16#43 = 67 bytes
2 Length of the general section 1 byte, hex 16#32 = 50 bytes
3 Length of the SMTP client
section
1 byte, hex 16#02 = 2 bytes
4 Length of the FTP client
section
1 byte, hex 16#02 = 2 bytes
5 Length of the FTP server
section
1 byte, hex 16#02 = 2 bytes
6 Length of the HTTP server
section
1 byte, hex 16#02 = 2 bytes
General section
7 Internal system use 1 byte, hex
8 Global flag byte
• Bit [0] admin rights flag
– 0: Access to the FTP
server only
– 1: Access to all IT
functions (incl. Web)
• Bit [1] - [7] reserved
1 byte, hex 16#01
Admin. is enabled for all IT
functions
9 - 24 CP 243-1 admin. user name
User name min. 1, max. 16
characters long
unused bytes are padded
with 16#00
16 ASCII characters (bytes) "admin"
16#61'a'Byte 0
16#64'd'Byte 1
16#6d'm'Byte 2
16#69'i'Byte 3
16#6e'n'Byte 4
16#00'\0'Byte 5 - 15