Chapter 6 Applied Instructions The instruction supports only the function codes mentioned above, and cannot execute other function codes. Please refer to the examples below. 3. S 3 is the device address. If the address is invalid for the designated communication device, the communication device responds with an error message. For example, the device address 16#8000 is invalid in the DVP-ES2. 4. S is the register involved in the reading/writing the data. The data to be written into the external equipment is stored in the register in advance. The data to be read from the external equipment is stored in the register. 5.
N is the length of the data 6_ For word-type communication function codes, the data length cannot exceed 100 words. For bit-type (BOOL) communication function codes, the data length is between 1–1600 bits. 6. The following table shows how the functions of S 3 , S , and n vary with the function code used. 6-533 Function Data Description Devices that support devices for slaves code length 16#04 PLC reads the data from several word devices. 1-100 X 16#05 PLC writes the state into a bit device. 1 Y, M, SM, S, T, C, HC 16#06 PLC writes the data into a word device. 1 Y, SR, D, T, C, HC, E 16#0F PLC writes the states into several bit devices.
1-1600 Y, M, SM, S, T, C, HC 16#10 PLC writes the data into several word devices. 1-100 Y, SR, D, T, C, HC, E Function S3 S n code 16#01 Address from where the data is read Register where the data read is stored Length of data read 16#02 Address from where the data is read Register where the data read is stored Length of data read 16#03 Address from where the data is read Register where the data read is stored Length of data read 16#04 Address from where the data is read Register where the data read is stored Length of data read 16#05 Address into where the Status value written No meaning