9/29/2022 6:14 AM | |
Joined: 6/12/2018 Last visit: 10/4/2024 Posts: 18 Rating: (0) |
Good day I ask everyone to help. I have a controller similar to S7-300 (VIPA 015-CEFPR01) and a Fanuc robot. Communication between them is possible using Modbus TCP. The MODBUS functions of this controller are similar to those of the S7-300 I use the TCON function to establish a connection. and the MB_CLIENT function for reading or writing. When I give the command to read the Holding Register, there are no problems. I see their condition. In the program, it looks like the picture (see attached file). The structure of the DB is as follows (see file). When I try to give the command to write Coils (see attached file) I get error 818B. The structure of the DB is as follows (see file). I tried changing the data type from BOOL to BYTE or WORD in the DB block. I changed the number of registers I want to write, but the error remained. MODBUS functions and robot address areas are presented in the figure (see file) Help me figure it out, thanks.
AttachmentProgram code.zip (598 Downloads) |
9/29/2022 7:39 AM | |
Joined: 8/12/2021 Last visit: 11/14/2024 Posts: 332 Rating: (31) |
Hi Electronshik! The status means: The MB_DATA_PTR parameter has an invalid pointer. You should also check the values of the MB_DATA_ADDR and MB_DATA_LEN parameters You can find more info here. Kind regards, |
If this Information really helps, you could use the Rate function |
|
9/29/2022 7:59 AM | |
Joined: 6/12/2018 Last visit: 10/4/2024 Posts: 18 Rating: (0) |
Hello I can not understand why this error appear? What is my mistake? |
Follow us on