July 2013 8.15 Tool changer 1609
Example of how the FN18 functions for tool name and number can be used in
combination with MP7483. In this example the Q-parameter number Q330
could have been transferred as a string or a number from a cycle. The
following example can be used for further processing:
...
FN 9: IF +Q330 EQU +0 GOTO LBL 131
FN 18: SYSREAD Q35 = ID1000 NR7483 Interrogate MP7483
whether tool name and
number are permitted
FN 18: SYSREAD Q30 = ID30 NR52 IDX330 Interrogate if the tool
name is programmed
FN 9: IF +Q30 EQU +0 GOTO LBL 45 No tool name
programmed
FN 10: IF +Q35 NE +2 GOTO LBL 46 Tool name programmed
FN 14: ERROR = 1094 Tool name is not
permitted
LBL 46
FN 18: SYSREAD Q330 = ID990 NR10 IDX330 Determine the tool
number for the tool name
FN 10: IF +Q330 NE -1 GOTO LBL 34
FN 14: ERROR = 1092 No tool number could be
found
LBL 45
FN 10: IF +Q35 NE +1 GOTO LBL 34
FN 9: IF +Q330 EQU +0 GOTO LBL 34 Tool number = 0 always
permitted
FN 14: ERROR = 1093 Tool number not
permitted
LBL 34
FN 18: SYSREAD Q0 = ID50 NR22 IDX330
...