Modbus error

If you have a question about the software please ask it here.

Modbus error

Postby Socke » Sun Apr 21, 2024 5:03 pm

I get the error function code 120 / 127 not supported.
Any hint, where I can find more info?
I see the communication counters counting up.
Socke
 
Posts: 20
Joined: Thu Mar 07, 2024 3:37 pm

Re: Modbus error

Postby dezsoe » Sun Apr 21, 2024 7:30 pm

Where and when do you get this message? If using the Modbus plugin then what is the version of the plugin?
dezsoe
 
Posts: 2078
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Modbus error

Postby Socke » Sun Apr 21, 2024 7:47 pm

I‘m using uccnc 1.2116 and the Modus Master Plugin, that came with uccnc.

I get the error, as I start the loop with functions enabled. With functions disabled, I get no error.
Socke
 
Posts: 20
Joined: Thu Mar 07, 2024 3:37 pm

Re: Modbus error

Postby dezsoe » Sun Apr 21, 2024 8:10 pm

OK, getting closer. In 1.2116 the Modbus plugin version is 1.6.0.0. But I still don't know what did you set in the functions. Could you upload your profile with the saved Modbus settings? Also, what is connected using Modbus?
dezsoe
 
Posts: 2078
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Modbus error

Postby Socke » Mon Apr 22, 2024 6:56 am

I can't get a grip at the machine now, only in the evening. In the function i want to read coils, slave adress 1, starting register slave and uccnc at 0, everything like in the manual.
The slave is an I/O-board: https://de.aliexpress.com/i/1005005338884242.html
[youtube]https://www.youtube.com/watch?v=Pz3R7jXr-1g[/youtube] (youtube-link not working?)
Attachments
N4D3E16 16-channel RS485 IO input and output controller Manual.pdf
(425.96 KiB) Downloaded 19 times
N4D3E16 16-channel RS485 IO input and output controller commamd.docx
(368.2 KiB) Downloaded 16 times
Socke
 
Posts: 20
Joined: Thu Mar 07, 2024 3:37 pm

Re: Modbus error

Postby dezsoe » Mon Apr 22, 2024 7:20 am

Thanks, I'll check it.
dezsoe
 
Posts: 2078
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Modbus error

Postby dezsoe » Mon Apr 22, 2024 8:34 am

On Youtube press Share, select Embed then copy. This long string has to be between the youtube - /youtube.



As I see Battwell could control this beauty, so it's possible. I can't imagine how he could do it, because the manuals don't help too much... :)
dezsoe
 
Posts: 2078
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Modbus error

Postby Socke » Tue Apr 23, 2024 5:56 pm

So, what can I do but asking at YouTube and hoping for an answer?
Socke
 
Posts: 20
Joined: Thu Mar 07, 2024 3:37 pm

Re: Modbus error

Postby dezsoe » Tue Apr 23, 2024 6:11 pm

As I wrote: upload your profile. It has your settings for the Modbus plugin, so I can compare it with the manuals and (hopefully) find the problem.
dezsoe
 
Posts: 2078
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Modbus error

Postby Socke » Wed Apr 24, 2024 6:13 am

The modbus-part:
Code: Select all
[ModbusMaster]
; ============================================================================= ModbusMaster
; Conn<c>="Name",Enabled,Loopinterval,Retrycount,Timeout,Type=RTU,Serial_Comport,Serial_Baudrate,Serial_Databits,Serial_Parity,Serial_Stopbits,Serial_RS485mode,FnCount
; Conn<c>="Name",Enabled,Loopinterval,Retrycount,Timeout,Type=TCP,TCP_IPaddress,TCP_Port,FnCount
; Conn<c>Fn<f>="Name",Enabled,Slaveaddress,Type,Registercount,Startregister,UCCNCstartregister
Version=1.060000
Connections=1
Conn0="Modbus-1",True,100,3,1000,RTU,COM4,9600,8,None,1,True,2
Conn0Fn0="inputs",True,1,Read_Coils,1,0,0
Conn0Fn1="outputs",False,1,Write_MultipleCoils,1,20,20

Where can we play with registers?
Or is this the wrong profile-file?
Attachments
C5-1.pro
(45.71 KiB) Downloaded 15 times
Socke
 
Posts: 20
Joined: Thu Mar 07, 2024 3:37 pm

Next

Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 12 guests