Icon

Variable Period Triangle Generator

Introduction

This worknig example demonstrates the use of the equation editor to simulate the function of individual program branches and features:
  • Integer maths is used to calculate values for use in the equation at power up. This technique can be used to free up the equation constants for use in the user interface.
  • Integer variables are directly controlling program branching. Three logical decisions are available after the variable is read into the stack, "=Int0", ">Int0" and "<Int0".
  • Integer counter variables are used to generate the output values due to their very fast calculating time.
  • As the application running at up a 5mS update time extra branching has been added to send memory every eighth time or 40mS apart to preven the com port from being overloaded.

Functional Description

Channel 1 is connected to a potentiometer and is scaled to produce 1 to 10 (period in seconds) when moved from 0 to 100%

Memory 4 drives the milliamp output and is scaled to produce 4 to 20mA out for an input of 0 to 10000.

The setting of channel 1 was moved every 4 seconds during the recording resulting in changes to the triangle period.

Refer to the user guide "Integer Maths Branching Demonstration" for detailed simulation instructions.

USC Programs

File Comment
Help If unexpected results occur when loading the .usc file press back and click on help for instructions.

UAP1052a1.usc

First issue.