Complete the code to apply tool radius compensation in G-code.
G41 [1] ; Start cutter radius compensation to the leftG41 activates cutter radius compensation to the left using the tool offset number D01.
Complete the code to cancel cutter radius compensation.
G[1] ; Cancel cutter radius compensationG40 cancels any active cutter radius compensation.
Fix the error in the code to correctly apply tool length compensation.
G43 [1] ; Apply tool length compensationG43 uses the H word to specify the tool length offset number, so H02 is correct.
Fill both blanks to correctly start cutter radius compensation and specify the tool offset.
G[1] [2] ; Start cutter radius compensation
G41 starts left cutter radius compensation, and D01 specifies the tool offset number.
Fill all three blanks to create a dictionary comprehension that maps tool numbers to their radius if the radius is greater than zero.
tool_radii = [1]: [2] for [3], [2] in tools.items() if [2] > 0}}
The dictionary comprehension uses 'tool' as the key, 'radius' as the value, and iterates over tools.items() with variables 'tool' and 'radius'.
