Internal Device Task

The Internal Device Task is used to run a task when the status of a designated internal device changes.

  • Task priority can be set to a value between 2 and 7. a value of 2 will be highest priority task.

  • Task number is a value of 24 thru 39.

  • Internal device can be a BIT or a WORD.

  • Starting conditions for BIT can be rising edge, falling edge or transition.

  • Starting conditions for WORD are shown in the chart below.

Symbol Description
< Starts the task when the word is less than the set value.
<= Starts the task when the word is less than or equal to the set value.
== Starts the task when the word is the same as the set value.
>= Starts the task when the word is more than or equal to the set value.
> Starts the task when the word is more than the set value.

 

Step Action
1

In an Open XG5000 project right-click on Scan Program. Choose Add ItemèTask… or select Project menu -> Add ItemèTask…

or

2

Add a Task name for the external contact task. Choose the priority, task number, Internal Device, and Internal device execution condition for the task. Press OK when done to create the task.

3

The task requires a program for it. Press Yes to have XG5000 automatically start the program creation process.

4

Give the program a program name. Choose the programming language also. Press OK to create the program.

5

A Task will appear in the Project Window with the name given during the creation process. This example shows the task name as IntDev.

 

 

 

LP309-4