|
ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
ioPAC8600 Trap Alarm Application TAG Sample More...
#include "libmoxa_rtu.h"Functions | |
| void | usage (void) |
| int | main (int argc, char *argv[]) |
ioPAC8600 Trap Alarm Application TAG Sample
Introduction: Send Trap alarm by the following 2 scenario: l) If Detect DI0 on and DI15 off then send trap with 8 tags information 2) If Detect DI0 and DI15 both ON, then send trap with message Example: ./ioPAC8600_trap_alarm_service Help:
root@Moxa:/tmp#./ioPAC8600_trap_alarm_service -h
Trap Alarm program.
Usage: ./ioPAC8600_trap_alarm_service [OPTIONS]
Options:
-i Slot of DI module [1-9]. Using with -i. Default value: 1
Ex. ./ioPAC8600_trap_alarm_service -i 1
-o Slot of DO module [1-9]. Using with -o. Default value: 2
Ex. ./ioPAC8600_trap_alarm_service -o 2
Library:
TAG APIs
RTUxpress Project file:
ioPAC8600_snmp_trap_alarm_service.rtu
(Please right click on the link and ‘Save Target As…’ to save RTUxpress project file and open it with RTUxpress utility)
| void usage | ( | void | ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
1.8.11