hi guys, just new to plc.
im using cj1m cpu22
currently working on a program that measures distance by means of a rotary encoder
if my understanding is correct encoders will count the number of turns then it will do some math to convert the number of turns to a unit of measurement like centimeters.
so heres what I did, I used a reversible counter input the conditions for incrementing and decrementing the counter. then I will use a math function to multiply the present value of the counter by a certain number.
my question is how do you program it in a way that the multiplicand would be the present value of the counter?
for example counter set value is at 50 but present value is 20, how do you use that present value to perform operations with it. like math operations and such
also how do you use to always on flag, and what is the function of cf-bit. thanks, appreciate evry help i can get.
im using cj1m cpu22
currently working on a program that measures distance by means of a rotary encoder
if my understanding is correct encoders will count the number of turns then it will do some math to convert the number of turns to a unit of measurement like centimeters.
so heres what I did, I used a reversible counter input the conditions for incrementing and decrementing the counter. then I will use a math function to multiply the present value of the counter by a certain number.
my question is how do you program it in a way that the multiplicand would be the present value of the counter?
for example counter set value is at 50 but present value is 20, how do you use that present value to perform operations with it. like math operations and such
also how do you use to always on flag, and what is the function of cf-bit. thanks, appreciate evry help i can get.