
R-3
A Standard System Protocol
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
R
-1 R
e
adi
ng Ref
e
rence
Docum
e
nts
Re
f
R
-1-1
Using Stand
ard System
P
rotocols
R-1
Reading Reference Documents
The section below provides information on the standard system protocols provided with the CX-Protocol
and the Serial Communications Units.
Standard system protocols can be executed merely by specifying the sequences number to be exe-
cuted in the second operand of PMCR(260) and settings the data described in the appendices in the
proper format starting at the word specified with the third operand of PMCR(260). The data received as
a response to executing the sequence will be automatically stored starting at the word specified with
the fourth operand of PMCR(260).
z
Procedure
1
Set the sequence number as a hexadecimal value in the second operand of PMCR(260).
2
In the Send Data Word Allocation (3rd Operand), indicate the data format starting from the S
Operand of the PMCR instruction. Set data of this format starting from S.
3
In the Receive Data Word Allocation (4th Operand), indicate the data format starting from the D
Operand of the PMCR instruction. Data of this format will be stored starting from D.
If there is no particular specification, set 0000 Hex as the initial value in D+0.
Example
The following data would be used to execute sequence number 600 in the CompoWay/F Master
Protocol for a transmission with ASCII conversion (no response).
R-1-1
Using Standard System Protocols
NJ Series
Offset
Contents (data format)
Data
Number of receive data
words (4 digits Hex)
0003 to 00FA Hex (3 to 250 decimal)
DstDat[0]
The response code will be stored in hexadecimal
form.
The data from just after the response code until just
before the ETX will be converted from ASCII to
hexadecimal and stored here.
Response code
(4 digits Hex)
Receive data
(4-digit Hex)
Send Data Allocation (SrcDat [ ] of ExecPMCR instruction)
Receive Data Allocation (DstDat [ ] of ExecPMCR instruction)
Offset
Contents (data format)
Data
Number of send data words
(4 digits Hex)
0005 to 00FA Hex (5 to 250 decimal)
SrcDat[0]
(Undefined)
Node No.
(2 digits BCD)
00 to 99
MRC
(2 digits Hex)
SRC
(2 digits Hex)
Set the command code for the required service
Number of send bytes
(4 digits Hex)
Number of data bytes from the next byte after the command code
(MRC, SRC) until the byte just before the ETX. 0000 to 0492
Send data (4-digit Hex)
The data specified in hexadecimal here will be
converted to ASCII and the number of bytes
specified in S+3 will be sent.
SrcDat[1]
SrcDat[2]
SrcDat[3]
SrcDat[4]
on
DstDat[1]
DstDat[2]
on
Communications sequence number 600
ExecPMCR
Execute
Done
Port
Busy
SeqNo
Error
SrcDat
ErrorID
DstDat
ErrorIDEx
DstDat
ExecPMCR_instance
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...