You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old February 22nd, 2021, 01:18 PM   #1
Mgw1970
Member
United States

Mgw1970 is offline
 
Join Date: Jul 2019
Location: Magna
Posts: 27
Periodic tasks coming up with warnings

The original file uses a STI and I/O interrupts {micrologix1500}, but when I create them as a periodic tasks in studio5000 I get warnings routine doesn't have an association with main program. Is this normal or did miss something setting up the task? Thanks!
  Reply With Quote
Old February 22nd, 2021, 01:36 PM   #2
plvlce
Member
United States

plvlce is offline
 
Join Date: May 2017
Location: Michigan
Posts: 148
Did you schedule any program(s) within the task properties? Have you assigned a main routine in the program properties? Are all non-main routines called by the main routine (directly or indirectly)?
  Reply With Quote
Old February 22nd, 2021, 02:30 PM   #3
Operaghost
Member
United States

Operaghost is offline
 
Operaghost's Avatar
 
Join Date: Apr 2002
Location: Dallas, TX USA
Posts: 3,051
You'll need to familiarize yourself with Tasks, Programs and Routines. In simple terms:
  • A Routine is similar to LAD routines in the MicroLogix. However, instead of LAD2 that executes automatically, you must define a "main" routine. This will be the routine that executes automatically whenever that task executes. Other routines would be subroutines or a fault routine. Logic is always contained in Routines. Tasks and Programs do not contain logic themselves.
  • A Program is a grouping of related routines within a Task. Sort of like a folder. A Task may have multiple Programs. Each Program has its own Main routine and subroutines. You can have up to 65,000 routines in each Program.
  • A Periodic Task is essentially a container where you define how often it will execute its Programs and in what order the programs will run. The number of Programs depends a little on the firmware of the controller. I believe you can have 1000 Programs per Task. I think that used to be 32 when the Logix 5000 was first introduced. Some CompactLogix are limited to 16.

    The number of Tasks will vary based on your controller. But I believe 32 is the maximum. Only one task may be defined as the continuous task.

Obviously, that is a very simple explanation. But that should get you started at least.
__________________
I despise when people take random quotes and ascribe them to me - Julius Caesar

Last edited by Operaghost; February 22nd, 2021 at 03:14 PM.
  Reply With Quote
Old February 23rd, 2021, 12:10 PM   #4
Mgw1970
Member
United States

Mgw1970 is offline
 
Join Date: Jul 2019
Location: Magna
Posts: 27
Quote:
Originally Posted by Operaghost View Post
You'll need to familiarize yourself with Tasks, Programs and Routines. In simple terms:
  • A Routine is similar to LAD routines in the MicroLogix. However, instead of LAD2 that executes automatically, you must define a "main" routine. This will be the routine that executes automatically whenever that task executes. Other routines would be subroutines or a fault routine. Logic is always contained in Routines. Tasks and Programs do not contain logic themselves.
  • A Program is a grouping of related routines within a Task. Sort of like a folder. A Task may have multiple Programs. Each Program has its own Main routine and subroutines. You can have up to 65,000 routines in each Program.
  • A Periodic Task is essentially a container where you define how often it will execute its Programs and in what order the programs will run. The number of Programs depends a little on the firmware of the controller. I believe you can have 1000 Programs per Task. I think that used to be 32 when the Logix 5000 was first introduced. Some CompactLogix are limited to 16.

    The number of Tasks will vary based on your controller. But I believe 32 is the maximum. Only one task may be defined as the continuous task.

Obviously, that is a very simple explanation. But that should get you started at least.
Thanks! I went back through and got the tasks/routines situated correctly.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Logix5000 Continuous vs. Periodic Tasks alexbeatle LIVE PLC Questions And Answers 78 March 18th, 2020 01:25 PM
AB Periodic Tasks and PID's dginbuffalo LIVE PLC Questions And Answers 4 March 12th, 2019 11:42 AM
RSLogix5000: Order of execution between periodic tasks koaladua LIVE PLC Questions And Answers 0 October 28th, 2014 10:05 AM
about periodic tasks chad k LIVE PLC Questions And Answers 6 July 5th, 2006 02:03 PM
PIDE's in periodic tasks RSLogix 5000 BENNY LIVE PLC Questions And Answers 18 August 25th, 2005 12:06 PM


All times are GMT -5. The time now is 09:48 PM.


.