Moxa DA-685-W7E [20/38] Sample code for customizing the da 685

Moxa DA-685-W7E [20/38] Sample code for customizing the da 685
DA-685 / W7E Customizable Sample Code
5-2
Sample Code for Customizing the DA-685
The DA-685 computer comes with several pieces of sample code so users may customize LED notifications
behavior, digital I/O control, or to initiate emergency reboots when critical system applications come to a halt.
The Digital I/O Control Walkthrough
The DA-683 is designed with 4 digital inputs and 4 digital outputs that integrators and system administrators
may customize for their needs. The source code for controlling digital I/O behavior is located in the folder
<Software DVD>\examples\Example\C++\DIO\, while the compiled executable DIO.exe is located
under <Software DVD>\examples\Release. You can follow the steps below to test the digital I/O control
script, or you may freely modify the control script to create customized patterns that are associated with
specific system events. To review the digital I/O control code, see The Digital I/O Control Sample Code
section in Appendix A of this manual.
1. Create the c:\programs\examples folder and copy DIO.exe into that folder. Run DIO.exe.
2. You will be presented with a menu of three choices; first, select 1 to display the DIO’s current status.
3. In the screenshot below, the user has selected 1.
4. You may now run DIO.exe again, but this time select 2. At the next prompt, enter the ID number (0 to 3)
of the digital interface you wish to activate, and when prompted enter either 1 (to turn it on), or 0 (to turn
it off).

Содержание

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

Скачать