S7-1200 Modbus RTU Error 8382

frzw

Member
Join Date
Jun 2009
Location
Tallinn
Posts
7
Having a problem and spent quite a bit time on that.

I can read whatever I want from this particular modbus device, but when I want to write 1 single bit to register 01015 (tried 1015), then I have error 8382.

Device supports commands 01 and 05. That means that if I select mode 1 on MB_Master, then I should be able to write 1 bit.

ScreenShot367.png ScreenShot366.jpg
 
Try data address 41015.
Edit = 4xxxx is analog. Maybe 31015? I think you need long addresses (5 digit) for Siemens Modbus.
 
Last edited:
3xxxx and 4xxxx are occupied with other stuff and they are not bits. I read with no problems.

Can not write a bit :(

ScreenShot377.jpg
 
S7-1200 uses only 4xxxxx (holding) registers for modbus, AFAIK. So you'll have to work with that.
also it uses 4xxxxX instead of 4xxxx address range, as said earlier
 
So what you are saying TIA help file is not true?

I can read from Modbus device 01001-01016, 3XXXX, 4XXXX with no problem with S7 MB_MASTER mode 0

I can not write into single coil, which is located in address, which I could read. For example 01016.

I have tried to write TRUE, FALSE - I get 8382
I have tried to write 16#0000 and 16#FF00 and then i get 8382 and 8384.

I can not write data which I plan to put into 1016 into 41016, because in modbus device specs this holding register is occupied with other important stuff.

Does anyone have a print screen, which shows 101% working (at least for him) example how TIA handles 1 single coil writing?

Thanks

ScreenShot391.jpg
 
So what you are saying TIA help file is not true?

I can read from Modbus device 01001-01016, 3XXXX, 4XXXX with no problem with S7 MB_MASTER mode 0
Thanks

Hmmm, I probably mixed single coil with single bit in holding register. I would trust TIA help file, not me.

As for write operation I would have to check help file on my laptop.
 

Similar Topics

Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
252
Hi all, reading out parameters from a Weg CFW500 VFD using a Siemens S7-1214 CPU over Modbus RTU (CB1241). Using the PLC's built-in Modbus...
Replies
4
Views
1,697
I have 3 control panels made by an OEM, they are all identical and have a Siemens S7-1200 PLC with a Siemens CB-1241 Modbus card talking to 2...
Replies
8
Views
4,525
Hi Everyone, First Project with Siemens and I need to communicate via RS-485 to a Tank Level Hub using Modbus RTU. I will be using the CB 1241...
Replies
13
Views
3,819
I am just getting information about a need that a site has. They currently have a machine that has a ML1200 and is being interfaced to by a...
Replies
16
Views
6,660
Back
Top Bottom