Some of the brick & micro PLCS (ABB, Idec) have a few analog inputs that can be configured to be used as digitals as needed. So it's maybe not that far fetched depending on the device. Specifically buying analog inputs to be used as digitals when you have a choice would be a waste.