Delta AH500 Programming Manual page 688

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
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
: The device address
3
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.
Flag
Sending
the data
EMDRW
1
SM2000
2
SM2006
3
SM2012
4
SM2018
5
SM2024
6
SM2030
7
SM2036
8
SM2042
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.
6 - 5 2 0
Having
Waiting for
received
the data
the data
SM2001
SM2002
SM2007
SM2008
SM2013
SM2014
SM2019
SM2020
SM2025
SM2026
SM2031
SM2032
SM2037
SM2038
SM2043
SM2044
Timeout
Error flag
flag
SM2003
SM2004
SM2009
SM2010
SM2015
SM2016
SM2021
SM2022
SM2027
SM2028
SM2033
SM2034
SM2039
SM2040
SM2045
SM2046
Having
closed the
connection
SM2005
SM2011
SM2017
SM2023
SM2029
SM2035
SM2041
SM2047

Advertisement

Table of Contents
loading

Table of Contents