|
|
|
| |||
|
|
|
|
|
|
|
| Parameter | Enter |
|
|
|
|
| & Data Type |
|
|
|
|
|
| FunctOp | The FunctOp is used to determine the result that will be returned by the |
| |||
| Constant | SW8A. |
|
|
|
|
|
| Numeric | Function |
|
|
|
|
| Code |
|
|
|
|
|
| 0 | Returns the state of the signal at the time the instruction is |
| ||
|
|
| executed. A 0 is stored for low and a 1 is stored for high. |
| ||
|
| 1 | Returns the duty cycle of the signal. The result is the |
| ||
|
|
| percentage of time the signal is high during the scan interval. |
| ||
|
| 2 | Returns a count of the number of positive transitions of the |
| ||
|
|
| signal. |
|
|
|
|
| 3 | Returns a value indicating the condition of the module: |
| ||
|
|
| positive integer: |
| ROM and RAM are good |
|
|
|
| negative value: |
| RAM is bad |
|
|
|
| Zero: |
| ROM is bad |
|
| StartChan | The first | channel that should be read on the SW8A. If the Reps parameter is |
| ||
| Constant | greater than 1, measurements will be made on sequential channels. |
| |||
| Mult, Offset | A multiplier and offset by which to scale the raw results of the measurement. See |
| |||
| Constant, | the measurement description for the units of the raw result; a multiplier of one and an |
| |||
| Variable, | offset of 0 are necessary to output in the raw units. For example, the TCDiff |
| |||
| Array, or | instruction measures a thermocouple and outputs temperature in degrees C. A |
| |||
| Expression | multiplier of 1.8 and an offset of 32 will convert the temperature to degrees F. |
|
6.2 Edlog Programming
Instruction 102, Table 5, is used to address and retrieve information from the
SW8A.
TABLE 5. Instruction 102 -
Parameter | Data |
|
Number | Type | Description |
|
|
|
01: | 2 | Repetitions |
02: | 2 | Module Address (00..33) |
|
|
|
03: | 2 | Function Option (0=State, 1=Duty 2=Counts, |
|
| 3=Signature) |
04: | 2 | |
|
|
|
05: | 4 | Starting input location for results |
|
|
|
06: | FP | Mult |
|
|
|
07: | FP | Offset |
|
|
|
7