4-27
Note For sequence No. 600, received data is stored from the largest word number sequentially to D+2.
In the above example, Resolver speed data “08” and “00” and present cam angle data “03” and
“59” are received as ASCII data in this order, and D00503 and D00502 are converted into hexade-
cimal values in this order.
D Examples of Monitoring Errors
Always ON
Protocol Macro
Executing Flag
Communications
Port Enabled Flag
PMCR Protocol macro instruction
#01E1 Control data: Communications port No. 0, serial port No. 1, and inner board are used.
#0258 Control data: Send-receive sequence No. 600 (with ASCII code conversion and response) is set.
D00000 First word No. of send data: DM00000 is set.
D00500 First word No. of received data storage: DM00500 is set.
Send Data Word Allocations
D00000 0004 No. of send data words: There are four words from D00000 to D00003, so 0004 Hex is set.
D00001 0000 Node No.: The node number of Cam Positioner is 00, so 0000 Hex is set.
D00002 0601 MRC, SRC: Controller Status Read is used, so MRC = 06 and SRC = 01 are set.
D00003 0000 No. of sent data bytes: There is no data to be sent, so 0000 Hex is set.
DM address Data
Receive Data Word Allocations
D00500 0003
D00501 0000
D00502 8010
DM address Data
No. of received data words: There are three words from D00500 to D00502,
so 0003 Hex is stored.
Response code: MRES = 00 and SRES = 00 are stored at normal completion.
Received data: “Status” (80 in this example) and “error data” (10 in this example)
are stored after being converted from ASCII code to hexadecimal values.
Note 1. The content of “Status” is as follows:
b7 b0
Executing status
0: While in error status or in PRGM or SET mode
1: When there is no error in RUN mode
1: When the communications function is being executed to change the operating status
1: When an error occurs
In this example, “status” = 80 indicates that an error has occurred.
Communications Chapter 4