19 XN-322-16DIO-PC05 digital input/output module
19.3 Wiring
126
XN300 slice modules
06/16 MN050002 EN
www.eaton.com
19.3 Wiring
Four digital inputs can be wired to each of the two X1 and X2 connectors,
while four digital outputs can be wired to each of the two X3 and X4 connec-
tors.
19.3.1 Digital inputs
The digital input, as defined in the EN 61131-1 type with a 5-ms input delay,
is particularly suitable for connecting electronic switching devices, including
relay contacts, pushbuttons, switches, etc. It is used to convert a signal with
two possible states into a one-bit binary number.
19.3.2 Counter functions for inputs 1…4
Internal module counter registers are connected downstream of digital
inputs 1 to 4. These counter registers make it possible to count signal pulses
at the inputs.
The PLC program must manage any register overflows at the counter regis-
ters (the program's cycle times and maximum counter frequency must be
taken into account).
The following counter functions can be configured:
•
Counter mode (simple counting): The 8-bit counter register for an input
will be incremented every time there is a rising signal pulse at that input.
Objects 0x3172 to 0x3175 are the corresponding 8-bit counter registers.
•
Incremental encoder mode: Counts by interpreting the signals from two
inputs using four samples encoding and incrementing a 16-bit counter
register. Objects 0x3176 to 0x3177 are the corresponding 16-bit counter
registers.
•
PWM time measuring mode: This mode supports time measurements
at inputs 1 to 4.
The "high time" for an input will be the time that passes between the ris-
ing and falling edges of a signal at that input. When a rising signal edge is
detected, a counter will start being incremented every
μ
s. Then, when
the corresponding falling signal edge is detected, the counter value will
be recorded in the corresponding 16-bit PwmHighTime(x) counter regis-
ter. Once the value is transferred to PwmHighTime(x), the counter will
be reset. "High times" will be recorded in objects 0x3178, 0x317A,
0x317C, 0x317E.
Period t
p
will be the time that passes between the rising edges of the
signal at the digital input. When the first rising signal edge is detected, a
counter will start being incremented every
μ
s. Then, when the second
rising signal edge is detected, the counter value will be recorded in the
corresponding 16-bit PwmPeriodTime(x) counter register. Once the
value is transferred to PwmPeriodTime(x), the counter will be reset.
"Period times" will be recorded in objects 0x3179, 0x317B, 0x317D,
0x317F.
Summary of Contents for XN300
Page 4: ...II...
Page 14: ...10 XN300 slice modules 06 16 MN050002 EN www eaton com...