Adcanced Control: OT, A line follower

Join Date
Apr 2002
Location
No income tax, no capital gains tax. Freedom!
Posts
8,392
Thomas_v2 said:
Why can't you do motion control with a standard plc?
It's not fast enough.

Can you do motion control with a fast plc? Yes, but this would make this article obsolete.

Another example:
http://elm-chan.org/works/ltc/report.html
Can you program a small line follower robot with a standard plc? No, it's not fast enough. But a 8 Bit Microcontroller can do this.
First, I want to point out that the line follower does not need to generate the target position, velocity and acceleration. This is all predefined by the line on the table.
The target generator in a motion controller requires about hundreds or thousands times more code than a simple PID. The target generator is the most difficult part of a motion controller by far.


Just following a line using a PID should be simple but....
Read the section about tracking. The integrator was not used.

Why?
It is obvious to me that they are doing it wrong. Most people that do line followers are doing it wrong.



The people on this forum have talked many times about the sample time being the same as the loop update time of the PLC.
This is a common error with Rockwell PLC. I think it is unforgivable that this should happen BUT..
executing a PID as a function time is NOT the only option.
PIDs can be executed as a function of other things. In the case of a line follower it should be distance along the line, NOT TIME!


I will let you all think about this.
 

Similar Topics

Hi all, I am upgrading a couple of 2094-BC01-M01 servos with 2198-H015-ERS. The original code uses MSG instructions to control (release, engage...
Replies
2
Views
88
Hey there guys, I'm relatively new to PLC programming. I had a few basic classes in college but since then I have mainly been on the instrument...
Replies
3
Views
234
Hi, Is Control Expert V15.0 supposed to support multiple monitors? I'm running Control Expert V15.0 on my host Windows 11 PC, connected to two...
Replies
1
Views
88
Hello everybody, I'm currently working on a project where I need to implement an IoT platform based on Microsoft Azure Cloud. Communication is...
Replies
3
Views
123
I’m attempt to establish a communication between two simulator M580 CPUs, using a READ_VAR, I have two vitalization Windows 10 in VMWare and each...
Replies
4
Views
180
Back
Top Bottom