EasyManua.ls Logo

Moxa Technologies MiiNePort E2-H - Page 88

Moxa Technologies MiiNePort E2-H
149 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MiiNePort E2/E3 NetEZ Technologies
8-7
Channel Switch Command
This command is used for an end to switch its active transmission channel. The CHN field indicates the new
channel number. Note that the CHN index is zero based, so you will need to use 0x00 for CHN to switch to
channel 1, 0x01 to switch to channel 2, and so on. For safety reasons, if one serial communication end receives
a Channel Switch Command that switches to a channel it does not support, it will simply discard it after the data
has been transmitted.
Note that when you begin using MCSC, both active communication channels are assumed to be channel 1. After
serial communication has ended, data is transferred without directing Channel Switch Command to the channel
1 application.
In the MiiNePort E2, SCM will always be enabled when MCSC is enabled. A special channel indexed as 0xFF in
MCSC is dedicated for SCM. For more information, refer to the Serial Command Mode section in this chapter.
Example
A> 10 01 01 11 22 33 10 01 00 44
B> 10 01 01 33 22 11
A> 55 66
B> 11 22 33 10 01 00 66 55 44 44 55 66
This example shows that end A sends three bytes of data (11, 22, 33) using channel 1 and three bytes of data
(44, 55, 66) using channel 2. On the other side, end B sends six bytes of data (33, 22, 11, 11, 22, 33) using
channel 1 and six bytes of data (66, 55, 44, 44, 55, 66) using channel 2.
Channel Enquiry Command
This command is used for an end to query for its active reception channel. By receiving this command, the other
end will resend a Channel Switch Command to indicate the active transmission channel it is dealing with, which
is the active reception channel the initiator of Channel Enquiry Command deals with.
Example
This examples shows that end A queries for the active transmission channel of end B, and end B replies for
channel 2 and then continues to sending three bytes of data (11, 22, 33) using channel 2.
A> 10 05
B> 10 01 01 11 22 33
Data Escape Command
Although this is not actually an MCSC command, since the DLE character is used by MCSC to escape its
commands, a pair of DLEs will be transmitted to indicate a single 0x10 character of data.
Example
This examples shows end A sending 10 bytes of data (00, 02, 04, 06, 08, 0A, 0C, 0E, 10, 12) using channel 1.
A> 10 01 00
00 02 04 06 08 0A 0C 0E 10 10 12
B>
DLE
0x10
SOH
0x01
CHN
0x??
DLE
0x10
ENQ
0x05
DLE
0x10
DLE
0x10

Table of Contents