4.6 Write Memory Subcommand (MEM_WR: 1Eh)
4-7
4
S
ubcommand
s
4.6
Write Memory Subcommand (MEM_WR: 1Eh)
Data Format
Command Parameters
The details of MODE/DATA_TYPE are described below.
MODE = 1: Volatile memory, 2: Non-volatile memory (Non-volatile memory can be selected only
for common parameters)
DATA_TYPE = 1: Byte, 2: Short, 3: Long, 4: Not supported
SIZE: Data size for writing (of type specified by DATA_TYPE)
ADDRESS: Initial address for writing
DATA: Data to be written
Phases in which the
Command can be Executed
2, 3
Command Clas-
sification
Common
command
Asynchronous
command
Processing Time
Subcommand
Byte
MEM_WR
Description
Command
Response
32
1Eh
1Eh
•
The MEM_WR subcommand writes the data in virtual
memory by specifying the initial address, the data size
and the data for writing.
•
This subcommand provides an adjustment function
equivalent to that of the ADJ command of the MECHA-
TROLINK-II compatible profile. For the operation proce-
dure, refer to the MEM_WR main command.
•
Confirm the completion of the subcommand execution
by checking that RSUBCMD = MEM_WR (= 1Eh) and
SUB_STAT.SUBCMDRDY = 1, and also checking the
setting for ADDRESS, SIZE and DATA.
In the following cases, an alarm will occur and the sub-
command will not be executed.
•
When the ADDRESS data is invalid:
SUBCMD_ALM = 9h(A.94A)
•
When the MODE/DATA_TYPE data is invalid:
SUBCMD_ALM = 9h (A.94B)
•
When the SIZE data is invalid:
SUBCMD_ALM = 9h (A.94D)
•
When the conditions for executing the adjustment oper-
ation are not satisfied: SUBCMD_ALM = Ah (A.95A)
•
While editing using SigmaWin or digital operator: SUB-
CMD_ALM = Ah (A.95A)
Refer to the following section for details.
Method to Access Virtual Memory Areas
33
SUB_CTRL
SUB_STAT
34
35
36
Reserved (0)
Reserved (0)
37
MODE/DATA_-
TYPE
MODE/DATA_-
TYPE
38
SIZE
SIZE
39
40
ADDRESS
ADDRESS
41
42
43
44
DATA
DATA
45
46
47
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
MODE
DATA_TYPE