I have a ladder diagram for timing porpose.(keyence KV-24DR) some instructions are repeated many times but I dont understand what are these for. can anybody help me?
the confusing thing is that the program increments a number(I think it should be positive) and then compares it with '0' !!!
LDA(DM0021): load A from data memory #0021
ADD(#00001): Adds value specified by operand to contents of internal register, and inputs result back to same internal register.
CMP(#00000): Compares content of internal register and value specified by operand.
DW(#00000)(DM#00021): writes #00000 to data memory #000021