Moxa V2616A-C8-CT-W7E [52/111] Programmable led indicators

Moxa V2616A-C7-CT-T-W7E [52/111] Programmable led indicators
V2616A Linux Programming Guide
4-3
Operation: -h Help
-g Get interface and terminator type
-i intf Set interface type with options below
-t value Set termination resistor with options below
intf RS232 RS-232 mode
RS422 RS-422 mode
RS4852W RS-485 2-wire mode
RS4854W RS-485 4-wire mode
value NONTERM Non termination resistor
120TERM 120ohm termination resistor
For example:
To set the MUE interface
# muestty i RS422 /dev/ttyMUE2
To set the MUE termination resistor
# muestty t 120TERM /dev/ttyMUE2
Programmable LED Indicators
There are four programmable LED indicators on the front panel of the V2616A. The programmable LED device
file is located at /dev/pled. Each LED can be accessed via /dev/pled device node. These are the examples
to control the programable LED indicators.
Example to turn on/off the LED:
To turn on the first LED and turn off the second, third and fourth LED:
# echo 10000000 > /dev/pled
To turn off all the LEDs:
# echo 00000000 > /dev/pled
To turn on the second LED and turn off other LEDs:
# echo 01000000 > /dev/pled
To turn on the first and the last LEDs and turn off the second and third LEDs:
# echo 11010000 > /dev/pled
Digital I/O
Digital Output channels can be set to high or low. The channels are controlled by the function call
set_dout_state( ). Use the digital input channels to detect the state change of the digital input signal. The DI
channels can also be used to detect whether or not the state of a digital signal changes during a fixed period
of time. This can be done with the function call set_din_event( ).

Содержание

Похожие устройства

Скачать