
3.2 Settings for Triggers at Preset Positions
3.2.4 Making Settings with the MEM_WR Command
3-14
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 (type specified by DATA_TYPE)
ADDRESS: Initial address for writing
DATA:
Data to be written
Command Warning
The details of CMD_ALM of the MEM_RD/MEM_WR command are described below.
Setting Command Data
Examples of using the MEM_WR command for triggers at preset positions to write the setting
table parameters, saving the settings to non-volatile memory, and initializing related parameters
are given below.
Example of Setting the Output Position for Output Setting 1 to 100,000
ADDRESS = 0xF0050000
MODE/DATA_TYPE = 0x13
SIZE = 0x01
DATA = 100000
Saving Parameters Related to Outputs at Preset Positions
Use the following procedure to save the settings in RAM to non-volatile memory. Send the
commands in the following order.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
MODE
DATA_TYPE
CMD_ALM
Displayed Code
Error Details
9h
A.94A
When an initial address outside the defined areas is specified
When an address within the reserved ranges of common parameter or ven-
dor-specific areas is specified
When a value other than a multiple of the data size specified in DATA_TYPE
is set for ADDRESS
A.94B
When the MODE or DATA_TYPE data is invalid
A.94D
When the initial address is within the defined areas but the specified size
goes beyond those areas
When a data size beyond the specification of the command format is set for
SIZE
Step
Description
Setting Example
1
Set the request code for writing to non-
volatile memory.
ADDRESS = 0x80004000
MODE/DATA_TYPE = 0x12
SIZE = 0x0001
DATA = 0x2025
2
Execute preparation process 1 for writing
to non-volatile memory.
ADDRESS = 0x800041E0
MODE/DATA_TYPE = 0x12
SIZE = 0x0001
DATA = 0x0000
3
Execute preparation process 2 for writing
to non-volatile memory.
ADDRESS = 0x800041E4
MODE/DATA_TYPE = 0x13
SIZE = 0x0001
DATA = 0xF0050000
Continued on next page.