blueyedpeter
Lifetime Supporting Member
Hi there all
This question was raised because of my lack of knowledge of machine building and code writing.
As a project for home i am automating an exercise bike .
The plc is an Allen Bradley 5/03 with numerous cards , as a analogue input , a high speed counter card.
The panel-view is a 300 micro
To be brief there are two load devices ( magnetic tension) which are driven from the back wheel , and these devices are now motor driven( as they have been modified ) to be adjusted by the plc , so the effort that the rider experiences will also be adjusted as per the program .
My questions are actually about code writing and structure , there are only two main inputs as proximity switches.
One reads the rpm of the back wheel the other reads the crank rotations of the rider .
As speed is a measurement of distance over a given time period . and i have never before undertaken such a task a high speed counter can record the rotational inputs of both the back wheel and the crank rotations . My basic understanding is while counting these inputs and recording riding time in minuets or seconds i would need to compare these together and come up with a unit of speed as a result .
Which will be reused in a variety of ways
Now the storage of the information as a second question
An N7 registrar is a unit or a piece of code that is used for holding numeric information i would then say if i can conquer this piece of the code puzzle the rest will be a form of repartition i have a panel-view 300 micro in which the information will finally be displayed for the rider to view buts that's later .Any hints were i could find a better understanding of how too start this type of information gathering and updating would help and get the bike rolling so to speak and thanks again for any advice that you might like to share. cheers and good health
This question was raised because of my lack of knowledge of machine building and code writing.
As a project for home i am automating an exercise bike .
The plc is an Allen Bradley 5/03 with numerous cards , as a analogue input , a high speed counter card.
The panel-view is a 300 micro
To be brief there are two load devices ( magnetic tension) which are driven from the back wheel , and these devices are now motor driven( as they have been modified ) to be adjusted by the plc , so the effort that the rider experiences will also be adjusted as per the program .
My questions are actually about code writing and structure , there are only two main inputs as proximity switches.
One reads the rpm of the back wheel the other reads the crank rotations of the rider .
As speed is a measurement of distance over a given time period . and i have never before undertaken such a task a high speed counter can record the rotational inputs of both the back wheel and the crank rotations . My basic understanding is while counting these inputs and recording riding time in minuets or seconds i would need to compare these together and come up with a unit of speed as a result .
Which will be reused in a variety of ways
Now the storage of the information as a second question
An N7 registrar is a unit or a piece of code that is used for holding numeric information i would then say if i can conquer this piece of the code puzzle the rest will be a form of repartition i have a panel-view 300 micro in which the information will finally be displayed for the rider to view buts that's later .Any hints were i could find a better understanding of how too start this type of information gathering and updating would help and get the bike rolling so to speak and thanks again for any advice that you might like to share. cheers and good health