Command Code For Viewing The Status; Control Command Code - Moxa Technologies MiiNePort E2-H User Manual

Miineport e2/e3
Hide thumbs Also See for MiiNePort E2-H:
Table of Contents

Advertisement

MiiNePort E2/E3

Command Code for Viewing the Status

Ethernet Speed and Duplex
Command code: NS
Command parameters: N/A
Reply parameters: The speed and duplex status of the Ethernet. Possible values are 0(Unlink), 10H(10Mbps
Half Duplex), 10F(10Mbps Full Duplex), 100H(100Mbps Half Duplex), 100F(100Mbps Full Duplex).
?VNS
!VNS0100F
DIO mode
Command code: PM
Command parameters: DIO port index and IO mode (0 for input and 1 for output), separated by semicolon (;).
For MiiNePort E2, the index is as following:
Index
DIO port
0
DIO 0
1
DIO 1
2
DIO 2
3
DIO 3
Note that this function works only if related PIN function is set to DIO.
Reply parameters: N/A
?VPM2↲
!VPM01↲
DIO state
Command code: PS
Command parameters: DIO port index and output state (0 for low and 1 for high).
Note that this function works only if DIO mode is set to output.
Reply parameters: N/A
?VPS2↲
!VPS01↲

Control Command Code

PING
Command code: NP
Command parameters: Target host name or IP address.
Reply parameters: A single minus symbol indicates the target host did not reply in 1000 milliseconds.
Otherwise, one decimal number indicating the reply latency in milliseconds is returned.
?CNPwww.moxa.com
!CNP010
?CNP192.168.1.1
!CNP0-
Introduction to SCM (Serial Command Mode) Command Set
System requests current Ethernet status.
MiiNePort reports the Ethernet is current in 100Mbps Full Duplex mode.
MiiNePort E2 PIN number
JP3 - PIN1
JP3 - PIN4
JP3 – PIN2
JP3 - PIN3
System requests for DIO running mode of DIO port 2.
MiiNePort reports DIO port is in output.
System requests for DIO state of DIO port 2.
MiiNePort reports DIO port is in high state.
System requests to PING www.moxa.com.
Target host replies in 10 milliseconds.
System requests to PING 192.168.1.1.
Target host did not reply in 1000 milliseconds.
A-42

Advertisement

Table of Contents
loading

Table of Contents