In that case I'll not use the earth core (will cut it flush with the shield) of the shielded cable but do as you showed (can't remember the thread) and fold back the shield at the din rail end and solder to some earth wire shrink wrap it to the cable outer and take that to a block at one end.

Tonight's task is to work out how a bloody Pilz PNOZ X3 works!!