AH500 Programming Manual
6-520
5 (16#05): The AH500 series PLC writes the state into a bit device.
6 (16#06): The AH500 series PLC writes the data into a word device.
15 (16#0F): The AH500 series PLC writes the states into several bit devices.
16 (16#10): The AH500 series PLC writes the data into several word devices.
Only the function codes mentioned above are supported, and other function codes can not be
executed. Please refer to the examples below.
3. S
3
: The device address
4. S: The register involved in the reading/writing of the data
The data which will be written into the external equipment is stored in the register in advance.
The data which is read from the external equipment is stored in the register.
5. n: The length of the data
The size of the data can not be larger than 240 bytes. For the communication commands
related to the coils, the unit of the data is the bit, and n should be within the range between 1
and 1920. For the communication commands related to the registers, the unit of the data is the
word, and n should be within the range between 1 and 120.
EMDRW
the data
Waiting for
the data
received
Error flag
Timeout
flag
closed the
6. The instruction can be used several times in the program, but only eight instructions are
executed at a time.
7. If several flags which are related to the sending of the data are ON simultaneously, the data
indicated by the flag whose number is the smallest is sent first.
8. Generally, the pulse instruction EMDRWP is used.
Example:
1. The remote station address is set to 3.