July 2013 8.15 Tool changer 1585
Module 9340 Search for a pocket depending on magazine rules
Module 9340 searches a tool magazine for vacant, locked or unavailable
pockets. The search for free pockets is according to the magazine rules.
Call:
PS B/W/D/K <Magazine number>
PS B/W/D/K <Pocket number for starting the search>
PS B/W/D/K <Tool number or type>
PS B/W/D/K <Mode>
Bit 0 = 0: Programmed number is tool type
Bit 0 = 1: Programmed number is tool number
Bit 1=1: Search for a vacant pocket
(depending on magazine rules)
Bit 2=1: Search for a reserved pocket
Bit 3=1: Search for an unavailable pocket
CM 9340
PL B/W/D/K <Pocket number>
–1: Error code in W1022
–2: No free pocket or tool not found
Error code:
Marker Value Meaning
M4203 0 Search for pocket completed
1 Error code in W1022
W1022 1 Invalid pocket number
2 Invalid magazine number
3Invalid mode
4 Invalid tool number or type
20 Module was not called in a submit or spawn job
36 File error in the tool or pocket table
45 Module execution canceled, see return value for error
55 Pocket table could not be locked