User`s manual

64
CHAPTER2 CC-Link Unit
2-12 Remote command
When the remote register is used, the message command can be issued directly from the
sequencer (PLC). The high-ranked commands such as MOVD command (movement
command which directly specifies the position coordinates), which must use RS-232C
unit conventionally, can be easily executed. The method to use these commands is ex-
plained in this section.
2-12-1 Remote command specifications
The following functions are assigned to the remote register.
Status
Reserved
Command response
RWrn
RWrn+1
RWrn+2
RWrn+3
RWrn+4
RWrn+5
RWrn+6
RWrn+7
Execution command
Command option
RWwn
RWwn+1
RWwn+2
RWwn+3
RWwn+4
RWwn+5
RWwn+6
RWwn+7
OUTPUT (RemoteMaster) INPUT (MasterRemote)
Address Description Address Description
n: Value determined by station number settin
g
.
The remote command is executed by setting RWwn and RWwn+1 with the command
code desired to execute. When the controller receives the command, it will execute
the process, and inform the result (status) to the master sequencer (PLC) side via
RWrn. When the command is ended, set RWwn to 0, and clear the status. After the
status is cleared, the next command can be executed.
The command is sometimes provided with options on the remote command. The op-
tion data is set at RWwn+2 to RWwn+7. Since the number of options, size and setting
address of the command option are different in each command, refer to "2-12-3 Re-
mote command details (robot operation)" and the subsequent sections.
Similarly, some commands return the data to the master sequencer (PLC) side as the
response. In this case, the response data is set at RWrn+2 to RWrn+7. Like the com-
mand option, the number of options, size and setting address of the response data are
also different in each command.
* Even if the data is set at the register not defined as any command option when the command is executed, there is not
any problem. (It is unnecessary to clear the not-defined register to 0.). Moreover, the register which is not defined as
the response data is not influenced during the command execution, and the register content before the command
execution is held.
It is necessary to set the command option to the register at the same time when or
before the command desired to execute is set.
The data is set with the binary code. If the data size exceeds 16 bits (1 word), set the
data of the upper-ranked bit at the higher address. (Little endian)
Example: To set 12345678 (hexadecimal) at the register of RWwn+2 and RWwn+3,
set 1234 (hexadecimal) at RWwn+3 and 5678 (hexadecimal) at RWwn+2.
RWrn+1 is the system reservation. When it is read, 0 is returned.