The current flowing out of pin 4, and back into pin 5 should be 5mA, when the correct load of 220Ω and the LED of an optoisolator is connected.