15.01.2015 Views

Rugged Operating System (ROS ® ) Software User ... - RuggedCom

Rugged Operating System (ROS ® ) Software User ... - RuggedCom

Rugged Operating System (ROS ® ) Software User ... - RuggedCom

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1<br />

Introduction<br />

RUGGEDCOM <strong>ROS</strong><br />

<strong>User</strong> Guide<br />

0x10 0x00 0x80 0x00 0x01 2 0xFF 0x00<br />

• FF 00 for register 00 80 clears the system alarms<br />

• 00 00 does not clear any alarms<br />

The response may look like:<br />

0x10 0x00 0x80 0x00 0x01<br />

Section 1.5.1.3<br />

Uint16<br />

This format describes a Standard Modbus 16-bit register.<br />

Section 1.5.1.4<br />

Uint32<br />

This format describes Standard 2 Modbus 16-bit registers. The first register holds the most significant 16 bits of a<br />

32 bit value. The second register holds the least significant 16 bits of a 32 bit value.<br />

Section 1.5.1.5<br />

PortCmd<br />

This format describes a bit layout per port, where 1 indicates the requested action is true, and 0 indicates the<br />

requested action is false.<br />

PortCmd provides a bit layout of a maximum of 32 ports; therefore, it uses two Modbus registers:<br />

• The first Modbus register corresponds to ports 1 – 16.<br />

• The second Modbus register corresponds to ports 17 – 32 for a particular action.<br />

Bits that do not apply to a particular product are always set to zero.<br />

A bit value of 1 indicates that the requested action is true. For example: the particular port is “up”.<br />

A bit value of 0 indicates that the requested action is false. For example: the particular port is “down”.<br />

Reading data using PortCmd:<br />

For example, consider a Modbus Request to read multiple registers from location 0x03FE.<br />

0x04 0x03 0xFE 0x00 0x02<br />

The response depends on how many ports are available on the device. For example, if the maximum number of<br />

ports on a connected RUGGEDCOM device is 20, the response would look like the following:<br />

0x04 0x04 0xF2 0x76 0x00 0x05<br />

In this example, bytes 3 and 4 refer to register 1 at location 0X03FE, and represent the status of ports 1–16.<br />

Bytes 5 and 6 refer to register 2 at location 0x03FF, and represent the status of ports 17–32. In this example, the<br />

device only has 20 ports, so byte 6 contains the status for ports 17-20 starting from right to left. The rest of the<br />

bits in register 2 corresponding to the non-existing ports 21–31 are zero.<br />

20 Uint16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!