Your diagram is however wrong - the optocoupler should be on the receiving side with the cable feeding the LED. The cable resistance will merely be part of, but almost certainly much less than the current limiting resistor for the LED.
I was wondering why that didn't look right.... ;D