자유게시판

자유게시판

Rs485 Cable Guide To Communicating Value

페이지 정보

작성자 Derick 댓글 0건 조회 62회 작성일 24-05-30 06:43

본문

Then the programming software can be used to complete the normal communication with the PLC. Rather, it relies on software handshaking via transmission of XON/XOFF characters (ascii 0x11 and 0x13, respectively) to coordinate data transfer and ensure that information is not lost when one of the communicating parties is busy. Since both channels can operate simultaneously and independently, rs485 cable serial debugging can be performed while the application program is communicating via its primary channel. Having a second serial port is also handy for system debugging. They translate the bit-by-bit data on the serial cable into bytes of data that can be interpreted by the operating system or by your application program. If your application requires RS485, you can use the secondary serial port (serial2) to program and debug your application code using the RS232 protocol, and use the primary serial port (Serial1) for RS485 communications. Each serial port can be configured for the RS232 or RS485 protocol, and runs at standard baud rates up to 115,200 bits per second. The Serial 1 and Serial2 ports can be configured for either RS-232 or RS-485 communications at standard baud rates up to 115200 bits per second. The default baud rate after a factory cleanup is 115200 baud.



The default baud rate for both Serial1 and Serial2 is 115200 baud after a factory cleanup. For Serial1 RS485 operation: Install the jumper shunt onto "1 485En" (J4). A jumper labeled "2 485En" (J7) enables RS485 operation on the Serial2 port if the jumper cap is installed, and configures Serial2 for RS232 operation if the jumper cap is not installed. The Serial1 and Serial2 ports have identical communications capabilities, although more of the Serial1 signals (both RS232 and RS485) are made available on the Docking Panels headers and connectors. These factors are discussed in more detail in The UART Wildcard: Modem Handshaking Signals. RS232 uses inverse logic; that is, a positive bit at the HCS12 UART is inverted by the onboard RS232 driver chip and appears as a negative signal on the serial cable. The Serial ports are implemented by the dual on-chip hardware UARTs (Universal Asynchronous Receiver/Transmitters) on the Freescale 9S12 (HCS12) microcontroller. Owing to hardware constraints, if modem handshaking is needed on UART channel 1, then channel 1 must be configured for RS232, and channel 2 cannot be configured for RS232 communications. The PDQ Board, however, does not implement hardware handshaking.



The mating 10-pin connectors that join the H6 header of the PDQ Board to the H4 header of the Docking Panel are typically not accessed directly, and are not discussed in detail here. In this case, cable connections may be made to Serial 2 at pins 4 and 10 of the PDQ Board’s 10-pin Serial Header, or pins 5 and 6 of the Docking Panel’s 10-pin right-angle Serial Header. No termination - If the PDQ Board is not an end device, you should not terminate that cable. Bias termination - Using resistive termination decreases noise immunity, particularly if the cable is loaded with many devices. In a finished instrument, either or both channels can be used to communicate with other serial devices, or with other computers and/or terminals using RS232 or RS485. In that case, when using very long cables you can improve noise immunity and assure a valid idle level when the transceiver is not active by installing bias resistors. At any given time, only the master and a single active slave communicate. Because a single pair of conductors is used for both transmission and reception, RS485 is useful for multi-drop applications in which a master communicates with multiple slave serial devices, or nodes.



The USE.SERIAL2 command means that the operating system’s terminal interface now communicates via Serial2. By connecting pairs of these handshaking signals together, the terminal or PC can be made to think that the PDQ Board is always ready to send and receive data. A modem (modulator/demodulator) provides a way of encoding digital data as a set of audio signals that can be sent over a telephone line. Although the RS232 protocol specifies functions for as many as 25 pins, each communications channel requires only three for simple serial interfaces: /TxD1 (transmit data), /RxD1 (receive data), and DGND (digital ground). Each UART (sometimes referred to as a "USART") controls the serial-to-parallel and parallel-to-serial conversion and performs all of the timing functions necessary for one asynchronous serial communications link. The UART Wildcard implements these optional RS232 modem handshaking signals on channel 1. The handshaking signals can be disabled and/or ignored by applications that do not need them. From the PDQ Board’s point of view, these three signals (/TxD, /RxD, and ground) are the only connections required to perform serial communications.

arsilicii-nsa-sewage-node-110-xa00006002-rimor.jpg

댓글목록

등록된 댓글이 없습니다.

Copyright 2009 © http://www.jpandi.co.kr