Go to Parker.com
  • Sign in
Technologies
  • Aerospace
  • Climate Control
  • Electromechanical Group
  • Filtration
  • Fluid and Gas Handling
  • Hydraulics
  • IoT
  • Pneumatics
  • Process Control
  • Sealing and Shielding
Blogs Forums Knowledge Bases
Parker Community
Parker Community
  • Technologies
    • Aerospace
    • Climate Control
    • Electromechanical Group
    • Filtration
    • Fluid and Gas Handling
    • Hydraulics
    • IoT
    • Pneumatics
    • Process Control
    • Sealing and Shielding
    Blogs Forums Knowledge Bases
  • User
  • Site
  • Search
  • User
Home Technologies Electromechanical Group Electromechanical - Industrial Electromechanical Industrial Knowledge Base How to change the Task Type or Task Speed
Electromechanical - Industrial
  • Technologies
  • Electromechanical Group
  • Electromechanical - Industrial
  • More
  • Cancel
Electromechanical - Industrial
Electromechanical Industrial Knowledge Base How to change the Task Type or Task Speed
  • Electromechanical – Industrial Support Forum
  • Electromechanical Industrial Knowledge Base
  • Members
  • Sub Groups
  • More
  • Cancel
  • New
Electromechanical - Industrial requires membership for participation - click to join
  • Electromechanical Knowledge Base & Frequently Asked Questions
  • Motion and Machine Controllers-
    • ACR Controllers-
      • 7000+
      • ACROBasic Programming (IPA/7000/9000)+
      • 9000 (Legacy)+
      • IEC PLC (9600) (Legacy)-
        • Acrobasic commands for IEC PLC
        • ACRView 6.4.1 Runtime Error for 9600 and 9640
        • ACRView IEC Editor not Compatible with Win10
        • Converting ACR9600 Projects to ACR9000 Projects
        • General Function Block Behavior
        • How to add multiple outputs in ACR IEC PLC ladder programs
        • How to change the Task Type or Task Speed
        • How to change velocity on the fly
        • How to home to a limit in ACR96xx
        • How to Modify a ACR-View project (9600) AcroBasic only programs for Win10
        • How to run an AcroBasic program from IEC PLC
        • How to start the IEC PLC on controller power-up
        • How to use Direct Variable references in ACR IEC PLC
        • IEC Error Message: No valid license for the current hardware
        • Invert Motion Direction in IEC PLC
        • Is there a First Scan flag in the IEC PLC
        • PLCOpen State Machine
        • Set Compax3-EPL Current Limit
        • User Function Block : Excess Position Error Response
        • User Function Block : Moving Average
        • User Function Block : Rotary Axis Position
        • User Function Block: Read Actual Torque
        • User Function Block: Software Limits
        • Using arrays in IEC PLC
        • Using the IEC Debug Window and Watch Lists
        • Variable Declarations in IEC Languages
        • VIDEO: How to import function blocks into ACR IEC_PLC projects
        • What is a Moving Segment Error?
        • Why is the IEC PLC making the axis to move farther and faster than programmed?
      • PC Card Controllers (Discontinued)+
    • PAC120+
    • PAC340+
    • PAC320 (Discontinued)+
    • 6K (Discontinued)+
  • General Technology Information+
  • Virtual Engineer+
  • Visualization and Human Machine Interface (HMI)+
  • Servo Drives and Servo Drive/Controllers+
  • Stepper Drives and Stepper Drive/Controller+
  • AC/DC Industrial Drives+
  • Gearheads+
  • Servo Motors+
  • Step Motors+
  • Linear and Rotary Positioners+
  • Electric Cylinders+
  • T-Slot Aluminum Framing+
  • C3 + Xpress + ETH+
  • How can I stay updated on Parker electromechanical and drives product news?
  • Legacy (Discontinued)+
  • Other+
  • Memorandum: Information on EPA ban of Persistent bioaccumulative toxin (PBT)
Wiki Actions
  • Share
  • More
  • Cancel
Community Quick Links
  • Home
  • Technologies
    • Aerospace
      • Supplier Resource Center
    • Climate Control
    • Electromechanical Group
      • Electromechanical - Industrial
      • Electromechanical – Mobile
    • Filtration
    • Fluid and Gas Handling
    • Hydraulics
    • IoT
      • Mobile IoT
    • Pneumatics
      • Pneumatic Industrial
      • Pneumatics Mobile
    • Process Control
    • Sealing and Shielding
  • Community Blogs
  • Community Forums
  • Community Knowledge Bases
Follow Us
  • Follow Parker Hannifin on social media

Follow Parker Hannifin on social media:

How to change the Task Type or Task Speed

Print Friendly and PDF

 Products: ACR9600, ACR9630, ACR9640

A task is equivalent to a program plus the information about how the program can be executed. The definition of a task consists of the name, the information about the execution of the task and a POU of type PROGRAM which should be executed in this task.

IEC61131-3 defines 3 tasks types
Interrupt
-Called once whenever interrupt is called
-Highest priority
System Timer
-Called every N milliseconds
-Must finish before restarted
Cyclic (aka Freewheeling)
-Rescheduled immediately when finished
-Lowest priority
-Default task type in ACR

Task definition and optimization are managed from the Resources Tab of the IEC PLC Browser

Right-click on the controller name to view or change the resource optimization. The default setting of "Size Only" is recommended. Change individual task optimization as needed.

Right-click on an task to view or edit Optimization settings. By default the task will assume the "resource defaults" described above. Also select from:

Speed Only: for fastest possible execution, will increase program size
Size Only: reduces program memory usage
Normal: combination of size and speed
 
In general , "speed only" should only be used for the most time critical operations because of the impact on memory requirements.

 

Changing the task type is also accomplished by a right-click of the program name and selecting properties.

Cyclic Task

Cyclic Task is the default. Cyclic tasks will run to completion, in the order listed in the Resource list. The order of execution can be changed by right-clicking the program name and selecting MoveUp or MoveDown.

The Priority of a cyclic task indicates how often the task will run
1= every turn
2= every 2nd turn
3= every 3rd turn, etc

For example, from the Resource list shown above, the priorities are set as:
Prog1 : Priority 1
Prog2 : Priority 2
Prog3 : Priority 3
 
The tasks will then run as follows:
PROG1, PROG3, PROG2
PROG1
PROG1, PROG2
PROG1, PROG3
PROG1, PROG2
PROG1
PROG1, PROG3, PROG2
PROG1
PROG1, PROG2
PROG1, PROG3
PROG1, PROG2

System Timer Task

A System Timer task will run  every "x" milliseconds as designated by the user. The priority determines which System Timer task takes precedence if more than one are called to run at the same time. System timer tasks always have higher priority than cyclic tasks.Cyclic tasks that are interrupted by a timer task will "pause" during the timer task execution, then resume where left off when the timer task is complete

The  Time (ms) (aka Periodic task scan period) should be less than the overall time to run the task and should allow for sufficent time to run other tasks. For example, if the Time=10ms and the actual execution time is 9ms then only 1ms is left to run any other tasks. If the execution time exceeds the interrupt Time, the controller will increase the interrupt time accordingly.

The numeric status panel can be used to determine utilization of System Timer tasks.

Interrupt Tasks

Interrupt Tasks are the highest priority. There are three types:

STARTUP : task executes once on PLC start
ERROR : task executes once when a PLC system error occurs (for example:  divide by zero or array out of bounds)
PARKER : reserved for future use.

Mar-2013  JW

  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
Related
Follow Us
  • Follow Parker Hannifin on social media

Follow Parker Hannifin on social media:

Parker Hannifin Parker Hannifin

  • Products
  • About Parker
  • Investors
  • Community
  • Careers

Global Operations Global Operations

  • Divisions
  • Sales Companies
  • Worldwide Locations
  • Distribution Network
  • ParkerStore™ Network

Company Information Company Information

  • Newsroom
  • Event Calendar
  • Working with Parker
  • Product Brands
  • History

Global Support Center Global Support Center

  • Support
  • CAD
  • Where to Buy
  • Contact Parker
  • Manage Online Orders
© Parker Hannifin Corp 2023
  • Site Map
  • Safety
  • Privacy Policies
  • Terms and Conditions
  • Community Terms of Use
ENGINEERING YOUR SUCCESS.