Mscs Protocol - Orion OPM-4250 User Manual

Mpdp
Table of Contents

Advertisement

OPM-4250 | OPM-4250R
6.

MSCS Protocol

1.
Introduction
ThischaptercontainsthecommunicationprotocolbetweenPDPanditscontroldevicessuchascomputerforbetter
useoftheproduct.However,itdoesnotincludedetailedtechnicalmatters.Itratherfocusesonthebrieffunctional
explanationandcommunicationprotocol.
Controller
Tx/Rx Line
ID:1
(Computer)
Master Slave
ID:N+1
Master Slave
ID:(M-2)N+1
Master Slave
ID:(M-1)N
Master Slave
※Theconnectioncanbevariablebasedonenvironmentortheusers'intention.
<Communicationconnectiondiagram>
1.1.
Communication Setting
-
Transmission & Reception type: Asynchronous Serial Communication
-
Connection type: Daisy Chain
-
Baudrate :
115200
-
Data Bits :
8
-
Parity :
None
-
Stop Bits :
1
-
Flow Control :
None
2.
Protocol Format
2.1.
Send To PDP
STX
Command
Length
Data
1 byte
1 byte
1 byte
Variable
ID
M/S
1 byte
1 byte
 -
ThisishowtosendcommandstoPDP.OnlythesetofthedesignatedIDisworkingaccordingtothe"Command."
But,ifthe"ID"valueis"0",allMPDPsetsareworkingaccordingtocommandas"Broadcast".
 -
STX(0x02):Theinitialcode.ItmeansthebeginningofProtocol.(Fixedvalue)
 -
Command:Codeforactualoperation.(Variable)
 -
Length:thelengthof"Data"area.(Variable:0~255)
 -
Data:theareasfor"ID"andtheotherData(Variable)
 -
ID:ItisacodetodistinguishPDPsets.Itsrangeis"0"to"255".IftheIDis"0,"itmeansBroadcastcommand.(variable)
ID:2
ID:N-1
ID:N
Master Slave
Master Slave
Master Slave
ID:N+N
Master Slave
ID:(M-2)N+N
Master Slave
ID:(M-1)N+2
ID:(M-1)N+N-1
ID:MXN
Master Slave
Master Slave
Master Slave
ETX
1 byte
Other Data
N byte
- 58 -
 -
M/S:TheclassificationcodesforMasterandSlaveare"0x01"forMasterand"0x00"forSlave.
But,thedataareaforMaster/SlaveclassificationcodedoesnotexistinBroadcastcommand.
Master/Slaveclassificationcodeisfixedas"0x01"for"Factorydataload"command.
 -
ETX(0x03):Theendofthecode.(Fixedvalue)
2.2.
receive From PDP
STX
CMD
Length
Data
1 byte
1 byte
1 byte
Variable
ID
M/S
1 byte
1 byte
 -
ResponsebyacertaincommandfromthedesignatedsetamongMPDPsets.Thedifferencefrom"SendtoPDP"is"Checksum".
 -
STX(0x02):Theinitialcode.ItmeansthebeginningofProtocol.(Fixedvalue)
 -
Command:Codeforactualoperation.(Variable)
 -
Length:thelengthof"Data"area.(Variable:0~255)
 -
Data:theareasfor"ID"andtheotherData(Variable)
 -
ID:Setidentification(0~255)(Variable)
 -
M/S:TheclassificationcodesforMasterandSlaveare"0x01"forMasterand"0x00"forSlave.
ExceptforBroadcastcommand.(Variable)
 -
Checksum:execute"Not"operationafteraddingallthevaluesin"STX~Data"area.
 -
ETX(0x03):Theendofthecode.(Fixedvalue))
3.
Command
3.1.
Power On
-
Command for Power On: Operative status
It is available only during Power Off(Stand-by) status.
-
-
Send to MPDP
A.
Normalcommand
STX
CMD
Length
Value
0x02
0x40
0x02
*IDrange(Program):0x01(1)~0xFF(255)
*M/S:Master(0x01),Slave(0x00)
B.
Broadcastcommand
STX
CMD
Length
Value
0x02
0x40
0x01
*MakeallPDP(Master/Slave)dothesameoperation.But,therewillbenoreturncommunication.(Onewaycommand)
-
Receive from MPDP
STX
CMD
Length
Value
0x02
0x40
0x02
*IDrange(Program):0x01(1)~0xFF(255)
*M/S:Master(0x01),Slave(0x00)
*Checksum:execute"Not"operationafteraddingallthevaluesin"STX~Data"area.
Infinitely Expandable
Check Sum
ETX
1 byte
1 byte
Other Data
N byte
Data
ETX
ID
M/S
Variable
Variable
0x03
Data: ID
ETX
0x00
0x03
Data
Check Sum
ETX
ID
M/S
Variable
Variable
Variable
0x03
- 59 -

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Opm-4250r

Table of Contents