This diagram illustrates the principles for connecting I/O channel 0:
The emergency stop or end limit switch contacts are open.
End limit switch contacts are not contacts which have to be wired in series with the emergency input. End limit switch contacts are used to command movement stop with deceleration. The end limit switch (ELS+) stops movement in the +direction, the end limit switch (ELS-) stops movement in the- direction. It is therefore important to positions them at the correct end of the axis (see diagram below).
Illustration: