Alex Zhukov
Member
Hello!
I'm a student and i need help. My teacher gave me the task to make a stand with encoders where other students by spinning shafts of encoders will be able to see the number of pulses, the speed, direction of rotation, rotation angle.
I have already wrote a program for direction of rotation and rotation angle.
But i have problems with the rotation speed and number of pulses. So, my questions is:
1) Can i use 1 hardware counter for getting all parameters above or i should use hardware and software counters for each parameter separately?
2) How can i get the rotation speed? Should i use interruption? I've tried to use interruption to get speed and angle, but spedd data are insane and when you spin encoder fast the programm lose pulses and shows wrong angle
3) Can you help me with programm?
I have this hardware: PLC FATEK FBS-20MAR2-AC, HMI FATEK FT-056ST-T11, encoder SICK SFS60, encoder MITSUBISHI TAMAGAWA OSE 1024-3-15.
Encoders have 1024 pulses per turn.
Help me please!
p.s. sorry for my english and if it helps i can insert links to program and
video with data which i get
I'm a student and i need help. My teacher gave me the task to make a stand with encoders where other students by spinning shafts of encoders will be able to see the number of pulses, the speed, direction of rotation, rotation angle.
I have already wrote a program for direction of rotation and rotation angle.
But i have problems with the rotation speed and number of pulses. So, my questions is:
1) Can i use 1 hardware counter for getting all parameters above or i should use hardware and software counters for each parameter separately?
2) How can i get the rotation speed? Should i use interruption? I've tried to use interruption to get speed and angle, but spedd data are insane and when you spin encoder fast the programm lose pulses and shows wrong angle
3) Can you help me with programm?
I have this hardware: PLC FATEK FBS-20MAR2-AC, HMI FATEK FT-056ST-T11, encoder SICK SFS60, encoder MITSUBISHI TAMAGAWA OSE 1024-3-15.
Encoders have 1024 pulses per turn.
Help me please!
p.s. sorry for my english and if it helps i can insert links to program and
video with data which i get