5 Configuring 11.92
5.10 FB 132 Subroutine: Submagazine-specific machine data words
5.10 FB 132 UP:MD-W
Subroutine: Submagazine-specific machine data words
Description
The block reads the global and/or submagazine-specific machine data words and makes them
available for the calling program. If the specified magazine number > 16
1)
or the magazine is
not defined ((MD 7010.0) + n ) 0; n = 1...16
1)
), an error bit is set.
When the magazine number is defined, a distinction is made between magazine number = 0
and magazine number = 1...16
1)
. If magazine number = 1...16
1)
, the submagazine-specific
machine data words are output, if magazine number = 0 the global machine data words are
output.
The submagazine-specific as well as the global machine data words are to be found in DB 61
The global machine data words are stored in DW 0...3 (MD 2000 to MD 2003). The
submagazine-specific machine data words are stored in DW 4...67.
The initial address of a submagazine is calculated using the following formula:
1. DW = n*4
n = submagazine no. = 1...16
1)
MD-1: DWn = Initial address of submagazine
MD-2: DWn+1 = Number of magazine locations (current length)
MD-3: DWn+2 = Assigned tool area
MD-4: DWn+3 = No. of assigned background magazine
The global machine data words are stored as follows:
MD-1: DW0 = Initial address of tool buffer
MD-2: DW1 = Number of locations in tool buffer
MD-3: DW2 = Width of magazine table (number of DBs)
MD-4: DW3 = Width of reference list (number of DBs)
Note:
This block can be called in the operating example.
Block data
Lib. No. : E88530-B 5532-A-54
FBs to be loaded : FB 132
DBs to be loaded : None
Type of FB call : Conditional, unconditional
DBs to be input : None
Error messages : 1 illegal magazine no. (transferred to accu 1)
_______
1) 1...16 SINUMERIK 880/880 GA2
1...4 SINUMERIK 840/840C
5–34 © Siemens AG 1991 All Rights Reserved 6FC5 197-0AA40-1BP1
SINUMERIK 840/880 (PJ)