This may be the dumbest question ever posted here. An Arduino controller can obviously monitor a variable, and post serial data to a display, or light a light, whatever. There are libraries for most sensors, but my question is, can the controller do more than one job?
For example, can it access a RTC chip, write the date and time to a display, while also comparing the time to a schedule so it can activate relays at preprogrammed times, monitor keyboard input to alter the schedule, and sound an alarm if a parameter gets out of bounds? This is pretty standard stuff for a PLC, but on a simple Arduino, do you just program the tasks in succession, one after the other, in a single program, and then put a return to start at the end? Alternately, can there be a separate routine for each job, that gets called from a master program as needed? I have developed programs for high level controllers, but have never had any experience with a microcontroller. There are lots of Arduino programming examples posted, but they all seem to do just one basic task.
For example, can it access a RTC chip, write the date and time to a display, while also comparing the time to a schedule so it can activate relays at preprogrammed times, monitor keyboard input to alter the schedule, and sound an alarm if a parameter gets out of bounds? This is pretty standard stuff for a PLC, but on a simple Arduino, do you just program the tasks in succession, one after the other, in a single program, and then put a return to start at the end? Alternately, can there be a separate routine for each job, that gets called from a master program as needed? I have developed programs for high level controllers, but have never had any experience with a microcontroller. There are lots of Arduino programming examples posted, but they all seem to do just one basic task.