Hardware manual

Impact Reference Guide Discrete Output
3-189 Datalogic Automation Inc.
Integer to Binary
NOTE: Each Impact device type has a different number of outputs. If you enter a value for State, Mask, or
Pulse Reset State that exceeds the device’s number of outputs, a "Value Out of Range" error is displayed.
Emulators have sixteen outputs.
The Mask and State inputs are integer values, but the Output tool uses the equivalent binary value to set the
device outputs. This table lists some converted values:
To select a single output, enter the corresponding integer value. To combine multiple outputs, enter the sum
of the integer values for those outputs. For example,
An integer value of 32 selects output number 6
An integer value of 17 (the sum of 16 and 1) selects outputs 5 and 1
An integer value of 36 (the sum of 32 and 4) selects outputs 6 and 3
An integer value of 65,535 (the sum of all the integer values) selects outputs 1 through 16
Mask
An output is enabled when the corresponding bit in its Mask value is set to 1 and disabled when it is set to 0
(zero). If an output is disabled (i.e. its Mask bit is zero), the State value has no effect on that output.
Pulse Reset
Method
Indicates how each of the outputs should be reset
after the tool runs. (Pulsed Output Timing only)
Pulse Reset State Each bit of this integer value indicates the desired
state of the corresponding output after the tool runs.
This value has the same effect as the State input.
Used when Pulse Reset Method is set to Use Pulse
Reset State. (see “State” on page 3-190)
Output Timing
Method
See Output Timing Method below for details
Delay The number of milliseconds or event pulses to delay,
based on the Output Timing Method
(See “Delay and Dwell” on page 3-190.)
Dwell The number of milliseconds or event pulses to hold
the output (based on Output Timing Method)
(See “Delay and Dwell” on page 3-190.)
BCD If True, State sets the outputs after translating its value
to Binary Coded Decimal (BCD).
Output Number 16 14 12 10 6 5 4 3 2 1
Binary Value
2
15
2
13
2
11
2
9
2
5
2
4
2
3
2
2
2
1
2
0
Integer Value 32,768 8192 2048 512 32 16 8 4 2 1
Input Name Data