
Examples/applications
6.7 UDTs of FB 45 / FC 45
FC 45
Function manual, Release 03/2006 , J31069-D0167-U001-A2-7618
6-17
UDT 120: Result of write/read device diagnosis I
Table 6-5
UDT 120 "MOBY write/read device-Stat Diag 1"
Address
Name
Type
Comment
0.0
STRUCT
+0.0
status_info
BYTE
Write/read device status mode
+1.0
number_functions
BYTE
Range: 1...33
+2.0
function_01_01
BYTE
*
+3.0
function_01_02
BYTE
*
+4.0
function_01_03
BYTE
*
.
.
.
.
.
.
=234.0
END_STRUCT
*) An area of seven bytes each is reserved for 33 commands.
UDT 130: Result of write/read device diagnosis II
Table 6-6
UDT 130 "MOBY write/read device-Stat Diag 2"
Address
Name
Type
Comment
0.0
STRUCT
+0.0
status_info
BYTE
Write/read device status mode
+1.0
number_errors
BYTE
Range: 1...235
+2.0
error_number
ARRAY [1...235]
Error appeared on write/read device
*1.0
BYTE
=238.0
END_STRUCT
UDT 140: Result of write/read device diagnosis III
Table 6-7
UDT 140 "MOBY write/read device-Stat Diag 3"
Address
Name
Type
Comment
0.0
STRUCT
+0.0
status_info
BYTE
Write/read device status mode
+1.0
number_MDS
BYTE
Range: 1...24
+2.0
UID
ARRAY [1...24]
Identified UID (MDS number)
*4.0
DWORD
=98.0
END_STRUCT