M12 sockets
Pin assignment
Pin  | Function  | Wire color 1)  | 
|---|---|---|
1  | +24 V UP  | brown  | 
2  | Output B  | white  | 
3  | GNDP  | blue  | 
4  | Output A  | black  | 
5  | FE (Functional earth)  | gray  | 
1) The core colors apply to M12 cables from Beckhoff: ZK2000-5xxx, ZK2000-6xxx, ZK2000-7xxx
Connection examples
Status LEDs
LEDs indicate the signal state of the outputs.