Getting Started

Before reading the "Getting Started" section, make sure you have read the Overview Section.

 

My First Task

Let's set up our first TASK.

For this example lets make a TASK that does a very simple job. Let's say that we are measuring the diameter of product being produced. However we have been asked to display the cross-sectional area of the product on an analogue display unit. This will give a better index for the volume of material being used.

We need to get the value of the diameter from MicroScan, from the diameter calculate the cross-sectional area and then send the answer back to MicroScan.

Note: The formula we will use in this example for the area of a circle, given the diameter, will be: cross-section area = 3.14 x (Dia)^2 / 4

How to start:

  1. From the MicroScan Tool Box Main Form select the EDIT menu and then 'Setup'. The Setup Form will appear.
  2. From the Setup Form, click on the main button 'Tasks'. The Task Setup form will appear.
  3. Add a New TASK - Give it a name, enable it and set the Scan Time to say 30 seconds.
  4. Click on the Edit Items Button to setup the ITEMS for this TASK.
  5. Add a New ITEM - Select the Item Category "Inputs" and then the Item "In_InputTag". Set the "Type" to "GetData" to get the value of the diameter from the MicroScan Tag Data Base.
  6. Add a New ITEM - Select the Item Category "Math" and then the Item "Math_Formula" to do the calculation. Enter in the formula 3.14*[1-1]^2/4. Note that a number inside square brackets will return the value of that ITEM.
  7. Add a New ITEM - Select the Item Category "Outputs" and then the Item "Out_OutputTag" to send the answer back to the MicroScan Output Tag.
  8. Close the ITEM Edit Form and from the MicroScan Tool Box program's File menu select "Reload Setup".
  9. Now you will be able to view the TASK and the ITEMS in the Main Form of the MicroScan Tool Box and the value of each ITEM as it is being updated.

 

 Back to Getting Started

 Back to Contents