Moxa Technologies C218 user manual RS-485 Programming for Opt8J, Solution

Models: C218

1 93
Download 93 pages 37.36 Kb
Page 69
Image 69

Serial Programming Tools

RS-485 Programming for Opt8J

If you intend to do RS-485 communication with Opt8J, please follow the RS-485 programming guide below and also refer to Chapter “Connection Option (Opt8x) and Cable Wiring” for more Opt8J RS-485 operation details.

The Opt8J supports only 2-wire half-duplex RS-485 communication. Data+/- pins are served for both data transmitting and receiving, depending on the RTS signal.

The port switch of each port should be set to On position. The port is for transmitting data if RTS is asserted and for receiving data if RTS is not asserted.

RTS scheme is suitable for any system, including Windows NT and Windows 95/98, DOS, or UNIX, that permits RTS control from application programs.

How to transmit and receive data under Windows NT and Windows 95/98

We recommend you to configure Intellio C218Turbo/PCI ports as follows in order to acquire precise timing control in RS-485 2-wire transmission.

First set the “Transmission Mode” in the configuration program to “Classical”. UART FIFO status has no effect under the circumstance.

There are 2 solutions to control RS-485 2-wire transmission.

Solution 1

The following model is common in RS-485 2-wire transmission.

sio_SetWriteTimeouts(port, 0);

/* Set sio_write() into block mode */

sio_RTS(port, 1);

/* Turn on RTS signal. The RS-485

 

port is ready for transmitting data. */

sio_write(port, buff, 10);

/* Write 10 byte characters in "buff".

 

The function blocks until last

 

character transmitted */

sio_RTS(port, 0);

/* Turn off RTS signal. The RS-485

 

port is ready for receiving data. */

sio_read(port, buff, 10);

/* Read 10 bytes */

Intellio C218Turbo /PCI User's Manual 4-15

Page 69
Image 69
Moxa Technologies C218 user manual RS-485 Programming for Opt8J, Solution

C218 specifications

Moxa Technologies, a leader in the field of industrial networking and communication solutions, has made significant strides in enhancing operational technology with its C218 series of industrial Ethernet switches. The Moxa C218 is designed to meet the demanding requirements of industrial automation, ensuring robust performance and reliability in critical applications.

One of the standout features of the C218 series is its advanced networking capabilities. The switch supports Layer 2 switching functionality, which allows for efficient traffic management and improved network performance. With support for up to 8 Ethernet ports, the C218 can seamlessly connect multiple devices, ensuring that communication flows smoothly across the network.

The C218 is designed with resilience in mind, equipped with features such as redundancy support. It includes Rapid Spanning Tree Protocol (RSTP) and Media Redundancy Protocol (MRP), which minimize downtime and ensure continuous network operation even in the event of failures. These features make the C218 an ideal choice for mission-critical applications where reliability is paramount.

Another significant aspect of the C218 is its ability to withstand challenging environmental conditions. With an extended operating temperature range, the switch can handle extreme temperatures typical in industrial settings. Its ruggedized design protects against dust, moisture, and vibrations, ensuring that it performs consistently in harsh environments.

Security is a crucial consideration in modern industrial networks, and the C218 addresses this with built-in security features. The switch supports various authentication mechanisms and allows for VLAN configurations, helping to segment network traffic and protect sensitive data.

Moxa's C218 also provides convenience through its user-friendly management interface. It supports SNMP, allowing for simple network monitoring and management. Additionally, the switch's web-based management and command-line interface (CLI) make it easy for network administrators to configure and monitor the device efficiently.

In summary, the Moxa Technologies C218 switch is a reliable, feature-rich solution tailored for the industrial sector. With its excellent networking capabilities, robust design, environmental resilience, security features, and user-friendly management tools, the C218 is well-equipped to meet the demands of today's industrial automation challenges, helping businesses optimize their operations while ensuring network integrity.