Special register functions used in MODBUS/TCP communication.Used to store the latest error codes SD10130-SD10137 for the built-in Ethernet.
Indicator light status displays communication status:
When MODBUS communication is functioning normally, both LED indicators will light up. If the LEDs are not lit, check the wiring or the settings and error status of the master and slave stations. The special registers mentioned above can be used to read the error codes.Communication error flag soft element:
Special memory address for error codes:
Meaning of the codes stored in the communication error special register:
When an operation error occurs in the ADPRW command, the operation error flag is ON. Please confirm whether the following soft elements are ON.
When the operation error flag is ON, the error code (SD0/SD8067) stores the error code (in hexadecimal). The error codes stored in the soft element (in hexadecimal) are as follows.
The above special registers and soft elements can conveniently indicate various statuses during programming and debugging, improving efficiency. You can try them out during debugging.