RUGGEDCOM ROS
User Guide
Chapter 1
Introduction
Alarm
21
Reading Data Using PortCmd
To understand how to read data using PortCmd, consider a ModBus Request to read multiple registers from
locatoin 0x03FE.
0x04
0x03
0xFE
0x00
0x02
The response depends on how many parts are available on the device. For example, if the maximum number of
ports on a connected RUGGEDCOM device is 20, the response would be similar to the following:
0x04
0x04
0xF2
0x76
0x00
0x05
In this example, bytes 3 and 4 refer to register 1 at location 0x03FE, and represent the status of ports 1 – 16.
Bytes 5 and 6 refer to register 2 at location 0x03FF, and represent the status of ports 17 – 32. The device only
has 20 ports, so byte 6 contains the status for ports 17 – 20 starting from right to left. The rest of the bites in
register 2 corresponding to the non-existing ports 21 – 31 are zero (0).
Performing Write Actions Using PortCmd
To understand how data is written using PortCmd, consider a Write Multiple Register request to clear Ethernet
port statistics:
0x10
0x00
0x83
0x00
0x01
2
0x55
0x76
0x00
0x50
A bit value of 1 clears Ethernet statistics on the corresponding port. A bit value of 0 does not clear the Ethernet
statistics.
0x10
0x00
0x81
0x00
0x02
Section 1.7.3.6
Alarm
The Alarm format is another form of text description. Alarm text corresponds to the alarm description from the
table holding all of the alarms. Similar to the Text format, this format returns an ASCII representation of alarms.
NOTE
Alarms are stacked in the device in the sequence of their occurence (i.e. Alarm 1, Alarm 2, Alarm 3,
etc.).
The first eight alarms from the stack can be returned, if they exist. A zero (0) value is returned if an alarm does
not exist.
Section 1.7.3.7
PSStatusCmd
The PSStatusCmd format describes a bit layout for providing the status of available power supplies. Bits 0-4 of
the lower byte of the register are used for this purpose.
• Bits 0-1: Power Supply 1 Status
• Bits 2-3: Power Supply 2 Status
Other bits in the register do not provide any system status information.
Bit Value
Description
01
Power Supply not present (01 = 1)