Hi PLC-programmers!
I try again, i don´t know what happened with my first attempt.
Can somebody help me to make a program in ladder, to the text below.
I´m using a S7-200 224XP.
Until now my result is MWO(10bit 0-1024)
I try again, i don´t know what happened with my first attempt.
Can somebody help me to make a program in ladder, to the text below.
I´m using a S7-200 224XP.
Until now my result is MWO(10bit 0-1024)
- Subtract the last binary 10 bit encoder value.
- Shift the result left 6 places. The MSB will now provide the direction.
- Shift the result right 6 places, using an arithmetic shift. The sign bit should be shifted into the upper bits, as the number is shifted right.
- Add this to a software counter INT or DINT.