Item - Math Toggle

Please refer to Adding a New Item for specific information on how to add an ITEM and how to change its properties.

Description

The Math Toggle ITEM used to signal a change of value from an analogue input.

When this ITEM senses a change then it will Signal by changing its value from 0 to 1 or from 1 to 0.

This ITEM is ideally suited to convert a Pulse Count input into an ON/OFF switch.

The Math Toggle can be set up in the following ways:

  1. Field Push Button to Start/Stop. For this method the Math Toggle is looking only at the "Input Counter" property from say a Pulse Count register of a digital input. A register configured like this would increment in value every time a field button is pushed. Once the total count reach a pre-set number then the register would be reset to 0 and start counting up again. The "Input Change Bit" and the "Output Change Bit" properties are ignored in this method.
  2. Field Push Button AND Mimic Button to Start/Stop. This method allows for the Starting and Stopping of a process from both a Field Push Button and a Mimic Button. The Field Push Button is the same as "1" above. However in this method we also use the "Input Change Bit" and the Output Change Bit" properties. These are set to the MicroScan Input Tag and Output Tag respectively that the Mimic Button is using to Start/Stop. Note that the bit controlled from the Mimic could be set up in the MicroScan Image Interface or as a spare bit in a PLC or Outstation etc.

Properties

Class Name A unique name for this item. The class name is display only and cannot be changed.
Name Enter a meaningful name for this Item so that you, and other people, will easily recognize what it is for.
Enabled No - The ITEM is not enabled and will not update when its TASK updates

Yes - The ITEM is enabled and will update when its TASK updates.

Input Counter Select an ITEM that is getting its value from an Input Tag that represents a change of state every time it changes. Note if a digital input then the Math Toggle value will not necessarily be synchronized with value of the digital input.
OFF if change to zero. This is used to automatically set this ITEM value to 0. Select another ITEM that changes to 0 when the TASK or process is completed. This in turn will set this ITEM to 0 even it the value from the "ON/OFF on Change" input has not changed. If not required then leave this option blank.
On PC Restart Toggle OFF - Sets the value of this ITEM to 0 when the PC Restarts.

Toggle Resume - Sets the value of this ITEM to what it was the last time the TASK was updated.

Input Change Bit Select the digital Input Tag of the Mimic Run signal. This option is only used if the Math Toggle is working in conjunction with a Run status via the Mimic. If this is the case then the digital setup for the Mimic Run button is the master and the Math Toggle simply toggles the state of the master.
Output Change Bit Select the digital Output Tag of the Mimic Run signal. This option is only used if the Math Toggle is working in conjunction with a Run status via the Mimic. If this is the case then the digital setup for the Mimic Run button is the master and the Math Toggle simply toggles the state of the master.

 Back to Items Index

 Back to Contents