Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 401

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

CompoWay/F Master Protocol
Receive Data Word Allocation (4th Operand of PMCR(260))
Note Received frames are stored starting from the leftmost to rightmost word of the address in I/O memory.
Example: The following example illustrates reading the present value from a K3N@-series Intelligent Signal
Processor.
CompoWay/F command
VARIABLE AREA READ
Command code: 01 01
First read address
Sequence No. 600 (Send with ASCII Conversion, with Response) is used. The specified data beginning with
the command code is converted ASCII and sent to the Intelligent Signal Processor with the specified node
number. The response is converted to hexadecimal and stored starting at the specified word.
The command frame for reading the present value for a K3N@-@@@@-FLK1/2/3/4/5/6 Intelligent Signal Pro-
cessor (command code 01 01) is shown below. The following data is specified in the operands for PMCR(260).
• Rightmost byte of S+1: Node number (2 digits BCD)
• S+2: Command code: MRC + SRC = "0101"
• S+4 on: Send data = Variable type + first read address + 00 + number of elements.
STX
Node No.
1
1
(02 Hex) ( × 10
( × 10
)
)
00
Data in shaded portions is specified in the PMCR(260) instruction.
Note A first read address of 0000 specifies the present value. An address of 0001 specifies the maximum
value; 0002, the minimum value; and 0003, the status.
The response frame is shown below. The response code and receive data are stored according to the oper-
ands for PMCR(260) as follows:
372
Receive data
+0
storage words
+1
+2
Offset
Contents (data format)
+0
Number of receive data words
(4 digits Hex)
+1
Response code (4 digits Hex)
+2
Receive data (4-digit Hex)
on
Receive frame
"12"
"34"
"56"
CS /CJ -series PLC
CompoWay/F response
Read data = present value
Subad-
SID
Command code
dress
MRC
0
01
Number of receive data words
Response code
Receive data
Receive data words
5 6 7 8
"78"
1 2 3 4
Intelligent Signal Processor
K3N#-####-FLK1/2/3/4/5/6
Send data
SRC
Variable
First read
type
address
(Note)
01
C0
0000
Appendix B
Data
0003 to 00FA Hex (3 to 250 decimal)
The response code will be stored in hexa-
decimal form.
The data from just after the response code
until just before the ETX will be converted
from ASCII to hexadecimal and stored here.
ETX
Always
No. of ele-
00
ments
00
0001
(03 Hex)
BCC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents