Logic gate block in ladder logic-Carriculam

When I have use “OR”,“AND”,“NOR” gate as per your programming then all are ok.But in integer I can’t able to change the 0 to 1 or 1 to 0…

So I can’t able to understand properly the AND,OR,NOR gate use.