Delta AH500 — 6.22.2 Explanation of Ethernet Instructions

Chapter 6 Applied Instructions 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. 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-521 Flag Sending the data Waiting for the data Having Error flag Timeout flag Having received closed the EMDRW the data connection 1 SM2000 SM2001 SM2002 SM2003 SM2004 SM2005 2 SM2006 SM2007 SM2008 SM2009 SM2010 SM2011 3 SM2012 SM2013 SM2014 SM2015 SM2016 SM2017 4 SM2018 SM2019 SM2020 SM2021 SM2022 SM2023 5 SM2024 SM2025 SM2026 SM2027 SM2028 SM2029 6 SM2030 SM2031 SM2032 SM2033 SM2034 SM2035 7 SM2036 SM2037 SM2038 SM2039 SM2040 SM2041 8 SM2042 SM2043 SM2044 SM2045 SM2046 SM2047