Example limit and home wiring for P Series Drive.
Pin assignments shown below are based on factory default settings.
Normally Closed (NC)sensors are typically recommended for End of Travel Limits.
Use Drive Support Tool Software to change POT (Positive End of Travel) and NOT (Negative End of Travel) when using NC limits.

PD-xxP Indexer Drive with NPN sensors
PD-xxP Indexer Drive with PNP sensors
PD-xxC EtherCAT Drive with NPN sensors
PD-xxC EtherCAT Drive with PNP sensors