Serial Programming Tools

Syntax for SCO UNIX/XENIX

#define MTCDTR

0x404

#define TurnON

1

#define TurnOFF

0

ioctl(moxa_fd, MTCDTR, TurnON); ioctl(moxa_fd, MTCDTR, TurnOFF);

Syntax for UNIX SVR4

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MTCDTR

0x404

#define TurnON

1

#define TurnOFF

0

struct strioctl

ioc;

int

setting;

setting = TurnON /* or TurnOFF */; ioc.ic_cmd = MTCDTR; ioc.ic_timout = 0;

ioc.ic_len = sizeof(int); ioc.ic_dp = (char *)&setting; ioctl(moxa_fd, I_STR, &ioc);

5. MLOWATER

Sometimes the application software may not be able to write any further data to the output buffer because of the output buffer being full. The application has to wait until the output buffer has 'enough space' again. The criteria to tell if the output buffer has 'enough space' is whether the output buffer reached its 'low water' level. That is the output buffer will accept further data only when the 'low water' level is reached.

If the 'low water' value is relatively small, you may find that the output buffer become empty before you write another block of data (this is quite possible because UNIX is time-sharing multitasking environment). This will result in discontinuous data transmission. In a timeout-sensitive application, e.g. facsimile (FAX) transmission, discontinuous data may falter the operation.

The default 'low water' is 512 bytes. You can enlarge it but better not exceed one half of the output buffer. Each port's output buffer is 8K bytes.

Intellio C218Turbo /PCI User's Manual 4-9

Page 63
Image 63
Moxa Technologies C218 user manual Mlowater

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.