|
ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
Rotary Switch More...
#include <libmoxa_rtu.h>Functions | |
| int | main (int argc, char *argv[]) |
Rotary Switch
Introduction: Changing Rotary Switch to control the DO status, Mode5 off and Mode6 on. Example: 1. Using default: ./rotary_switch 2. Setting DO slot and channel: ./rotary_switch -s2 -c1 Default: DO Slot = 1 DO Channel = 0 Help:
root@Moxa:/tmp#./rotary_switch -h
Rotary Switch program.
Usage: ./rotary_switch [OPTIONS]
Options:
-s DO slot [0-9]. Default DO slot = 1
(slot 0: Built-in IO, slot 1 ~ 9: IO Module)
-c DO channel [0-15]. Default DO channel = 0
Library:
RotarySwitch APIs
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
1.8.11