SDM-SW8A Switch Closure Input Module
Parameter
& Data Type
Enter
FunctOp
Constant
The FunctOp is used to determine the result that will be returned by the
SW8A.
Numeric
Code
Function
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
Constant
The first channel that should be read on the SW8A. If the Reps parameter is
greater than 1, measurements will be made on sequential channels.
Mult, Offset
Constant,
Variable,
Array, or
Expression
A multiplier and offset by which to scale the raw results of the measurement. See
the measurement description for the units of the raw result; a multiplier of one and an
offset of 0 are necessary to output in the raw units. For example, the TCDiff
instruction measures a thermocouple and outputs temperature in degrees C. A
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 - SDM-SW8A
Parameter
Number
Data
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 SDM-SW8A Starting Channel (1..8)
05: 4 Starting input location for results
06: FP Mult
07: FP Offset
7