PS: Even if the content of the Hitachi WJ200 and the Omron MX2 manuals are practically identical, here you can see that the images have a slightly different style, with this WJ200 image which is colored you can better see how the wiring has to be done:
The shield of the shielded cable should be clamped to ground (see picture) or grounded with a grounding cable gland.
Both earth portions of the shielded cable must be connected to the earth point by cable clamps.
– Source: WJ200 Series Inverter Instruction Manual
PS2: Note that the shield cable clamp on the spindle’s end of the cable is already there inside the Phoenix M17 connector of your spindle cable. Here you can see how the cable shield is laid, cut and clamped inside the Phoenix M17 connector to be connected to the metal housing (and that you can be glad that the spindle manufacturer has already done this ):
– Source: M17 Cable connector - ST-3ES1N8A8005
1624537 → Downloads → package slip