Mitsubishi Electric AnyWire ASLINK User Manual page 73

Programmable controller
Table of Contents

Advertisement

■Parameter individual write
A sample program for writing individual parameters is as follows.
Page 104 Parameter individual write
1.
Read the parameters referring to the procedure in "Parameter individual read" or "Parameter batch read".
2.
Use the SLMPSND instruction to write the desired value in the buffer memory for the device parameter.
For details on the SLMPSND instruction, refer to the following.
 MELSEC iQ-R Programming Manual (Module Dedicated Instructions)
3.
Specify the access method.
Store 0001H (write) in Parameter access setting (RWw0).
4.
Specify the access target ID.
Store the access target ID in Parameter access target module ID specification (RWw1).
5.
Turn on Slave module parameter access request command (RY10).
At this time, Parameter access completion flag (RX11) turns off.
6.
Turn off Slave module parameter access request command (RY10).
7.
When the parameter access is completed, Parameter access completion flag (RX11) automatically turns on.
■Parameter batch read
The operating procedure for parameter batch read is as follows.
1.
Turn on Slave module parameter batch read command (RY11).
At this time, Parameter access completion flag (RX11) turns off.
2.
Turn off Slave module parameter batch read command (RY11).
3.
When the parameter access is completed, Parameter access completion flag (RX11) automatically turns on.
4.
After the Parameter access completion flag (RX11) turns on, execute the following for all connected slave modules.
Use the SLMPSND instruction to acquire the start address where the parameters of the access target ID are stored from the
parameter storage location memory address.
For details on the SLMPSND instruction, refer to the following.
 MELSEC iQ-R Programming Manual (Module Dedicated Instructions)
5.
Execute the following for all connected slave modules.
Read 48 words of data from the start address acquired using the SLMPSND instruction.
*1 For details on the 48 words of data that were read, refer to the following.
Page 163 Slave parameter storage area
■Parameter batch write
The operating procedure for parameter batch write is as follows.
1.
Read the parameters referring to the procedure in "Parameter batch read".
*1 Because parameter batch write updates all parameters of target slave modules, all parameters to which no changes are made need to
be set correctly.
Executing parameter batch write without executing parameter batch read will result in a malfunction.
2.
Use the SLMPSND instruction for all connected slave modules to write the desired value in the buffer memory
corresponding to the device parameter.
For details on the SLMPSND instruction, refer to the following.
 MELSEC iQ-R Programming Manual (Module Dedicated Instructions)
3.
Turn on Slave module parameter batch write command (RY12).
At this time, Parameter access completion flag (RX11) turns off.
4.
Turn off Slave module parameter batch write command (RY12).
5.
When the parameter access is completed, Parameter access completion flag (RX11) automatically turns on.
*1
*1
7 FUNCTIONS
7.10 Slave Module Parameter Read/Write
7
71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nz2aw1gnal

Table of Contents