Bootstrak Skip to main content

3. I/O Wiring

Streszczenie: Wejścia i wyjścia optoizolowane czytnika ID5000: obwody wewnętrzne i parametry elektryczne LineIn 0/1/2 oraz LineOut 0/1/2, podłączenie do urządzeń PNP/NPN (z rezystorem podciągającym 1 kΩ i bez) oraz port szeregowy RS-232 (DB9/DB25).
EN: ID5000 opto-isolated I/O: internal circuits and electrical features of LineIn 0/1/2 and LineOut 0/1/2, wiring to PNP/NPN devices (with and without a 1 kΩ pull-up resistor) and the RS-232 serial port (DB9/DB25).

Dotyczy: przemysłowy czytnik kodów Hikrobot serii ID5000 (złącze M12 12-pin, Gigabit Ethernet, RS-232; obsługa przez klienta IDMVS)
Źródło: dokumentacja producenta (Hikrobot ID5000 Series Industrial Code Reader User Manual, V2.5.0); tabele i uwagi przepisane z obrazów na tekst; opisy rysunków – opracowanie Multiprojekt

3.1 Input Signal

The device's LineIn 0/1/2 is opto-isolated input, and their internal circuit is as followsfollows:

Note:

  • The input voltage ranges from 5 VDC to 30 VDC.
  • The maximum current is 25 mA.
  • The breakdown voltage is 36 VDC. Keep voltage stable.

Internal circuit of opto-isolated input (LINEIn+, LINEIn-)

Figure 3-1 Internal Circuit of Input Signal

Figure description (text version): Schematic: the LINEIn+ and LINEIn- terminals drive the LED of an optocoupler through a current-limiting element; the optocoupler output transistor drives a transistor that pulls the GPI line (pulled up to VCC by a resistor) to ground.

image.pngInput logic level timing diagram (TDF, TDR)

Figure 3-2 Input Logic Level

image.png

Figure image.pngdescription image.png(text version): Timing diagram: upper trace – input level (high/low), lower trace – internal logic (inverted). TDF is the delay between the falling edge of the input and the rising edge of the internal logic; TDR is the delay between the rising edge of the input and the falling edge of the internal logic; both measured at 50%.

Table 3-1 Input Electrical Feature

Parameter NameParameter SymbolValue
Input Logic Level LowVL1.5 VDC
Input Logic Level HighVH2 VDC
Input Falling DelayTDF81.6 μs
Input Rising DelayTDR7 μs

3.2 Output Signal

The device's LineOut 0/1/2 is opto-isolated output, and their internal circuit is as follows.

Note:

  • The output voltage ranges from 5 VDC to 30 VDC.
  • The maximum current is 25 mA.
  • Do not directly connect with inductive load (e.g. DC motor, etc.) when outputting.

image.pngInternal circuit of opto-isolated output (LINEOut+, LINEOut-)

Figure 3-3 Internal Circuit of Output Signal

Figure description (text version): Schematic: the GPO signal drives the LED of an optocoupler (cathode to device ground); the optocoupler output transistor is connected between the LINEOut+ terminal (through a protection element) and LINEOut-.

image.pngOutput logic level timing diagram (TDF, TDR, TF, TR)

Figure 3-4 Output Logic Level

image.png

Figure image.pngdescription image.png(text version): Timing diagram: upper trace – internal logic, lower trace – output level (inverted). TDF is the delay from the internal logic rising edge (50%) to the output falling edge (50%); TDR is the delay from the internal logic falling edge to the output rising edge; TF is the output fall time between 90% and 10%; TR is the rise time between 10% and 90%.

Note: If the external voltage and resistance change, the corresponding current of output signal and output logic level low may differ.

Table 3-2 Output Electrical Feature

Parameter NameParameter SymbolValue
Output Logic Level LowVL730 mV
Output Logic Level HighVH3.2 VDC
Output Falling DelayTDF6.3 μs
Output Rising DelayTDR68 μs
Output Falling TimeTF3 μs
Output Rising TimeTR60 μs

3.3 Input Signal Wiring

The device can receive external input signal via I/O interface, and here we take LineIn 0 and type I device as an example to introduce input signal wiring.

image.pngNote: Input signal wiring may differ with different types of external devices.

 

PNP Device

image.pngOpto-isolated input wiring to a PNP device

Figure 3-5 Input Signal Connecting to PNP Device

Figure description (text version): Wiring diagram: device power (Device Power+) from PWR, device power ground to the ground of PWR. The opto-isolated input is connected to the signal line of the PNP device. The input signal ground is connected to the PNP power ground and the ground of VCC; the PNP device is powered from VCC.

NPN Device

If the VCC of NPN device is 12 VDC or 24 VDC and pull-up resistor is not used, its wiring is as followsfollows:

image.pngOpto-isolated input wiring to an NPN device without pull-up resistor

Figure 3-6 Input Signal Connecting to NPN Device without Pull-Up Resistor

Figure description (text version): Wiring diagram: device power (Device Power+) from PWR, device power ground to the ground of PWR. The input signal ground (common) is connected to VCC (NPN device power); the opto-isolated input is connected to the signal line of the NPN device; the NPN power ground is connected to the ground of VCC.

If the VCC of NPN device is 12 VDC or 24 VDC and 1 KΩ pull-up resistor is used, its wiring is as follows.

image.pngOpto-isolated input wiring to an NPN device with pull-up resistor

Figure 3-7 Input Signal Connecting to NPN Device with Pull-Up Resistor

Figure description (text version): Wiring diagram: device power from PWR, device power ground to the ground of PWR. The opto-isolated input is connected to the signal line of the NPN device, with a pull-up resistor between the signal line and VCC (NPN device power). The input signal ground is connected to the NPN power ground and the ground of VCC.

3.4 Output Signal Wiring

The device can output signal to external device via I/O interface, and here we take LineOut 0 and type I device as an example to introduce output signal wiring.

image.png

 

Note:

  • Output signal wiring may differ by external device types.
  • The voltage of VCC should not be higher than that of PWR. Otherwise, the device’s output signal may have exception.

PNP Device

image.pngOpto-isolated output wiring to a PNP device

Figure 3-8 Output Signal Connecting to PNP Device

Figure description (text version): Wiring diagram: device power from PWR, device power ground to the ground of PWR. The opto-isolated output is connected to the signal line of the PNP device; the output signal ground is connected to the PNP power ground and the ground of VCC. The PNP device is powered from VCC.

NPN Device

If the VCC of NPN device is 12 VDC or 24 VDC and pull-up resistor is not used, its wiring is as follows.

image.pngOpto-isolated output wiring to an NPN device without pull-up resistor

Figure 3-9 Output Signal Connecting to NPN Device without Pull-Up Resistor

Figure description (text version): Wiring diagram: device power from PWR, device power ground to the ground of PWR. The output signal ground (common) is connected to VCC (NPN device power); the opto-isolated output is connected to the signal line of the NPN device; the NPN power ground is connected to the ground of VCC.

If the VCC of NPN device is 12 VDC or 24 VDC and 1 KΩ pull-up resistor is used, its wiring
 is as follows.

image.pngOpto-isolated output wiring to an NPN device with pull-up resistor

Figure 3-10 Output Signal Connecting to NPN Device with Pull-Up Resistor

Figure description (text version): Wiring diagram: device power from PWR, device power ground to the ground of PWR. The opto-isolated output is connected to the signal line of the NPN device, with a pull-up resistor between the signal line and VCC (NPN device power). The output signal ground is connected to the NPN power ground and the ground of VCC.

3.5 RS-232 Serial Port

The device supports output via RS-232 serial port. The 9-pin male connector and 25-pin male connector are commonly used serial ports, as shown below. You can refer to the table below for the specific pin name and function

image.pngDB9 and DB25 serial connector pin numbering

Figure 3-11 9-Pin Interface and Figure 3-12 25-Pin Interface

Figure description (text version): DB9 connector: pins 1–5 in the upper row, 6–9 in the lower row. DB25 connector: pins 1–13 in the upper row, 14–25 in the lower row.

image.pngTable 3-3 Description

Serial Port TypePin No.NameFunction
9-Pin Interface2RXReceive data
9-Pin Interface3TXSend data
9-Pin Interface5GNDSignal ground
25-Pin Interface2TXSend data
25-Pin Interface3RXReceive data
25-Pin Interface7GNDSignal ground

You can refer to the serial port wiring below to connect the device with an external devicedevice:

image.pngRS-232 serial port wiring to an external device

Figure 3-13 RS-232 Serial Port Wiring

Figure description (text version): Wiring diagram: device power from PWR. The RS-232 serial port output of the device goes to the TX line of the external device and the RS-232 serial port input to the RX line (as labelled in the drawing); the device power ground and the external device GND are connected to the common ground.

Słowa kluczowe

Hikrobot ID5000, I/O wiring, opto-isolated input, opto-isolated output, LineIn, LineOut, PNP, NPN, pull-up resistor, 1 kΩ, 25 mA, 5–30 VDC, TDF, TDR, RS-232, DB9, DB25, wejścia, wyjścia, okablowanie