Understanding ladder diagram and bit level instructions