LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm tring to communicate with my S7-1200 PLC but it give protocol error.

Solved!
Go to solution

 

 

 

Certified LabVIEW Developer
0 Kudos
Message 1 of 8
(11,251 Views)

NI OPC server gives these protocol errors when i try to read bytes from PLC.

 

Date Time Level Source Event
12.1.2015 12:10:13 Warning Siemens TCP/IP Ethernet Unable to read 1 bytes starting at offset 30 for Memory Type M (e.g. M30) on device 'PLC_com.PLC-S7-1215c'. Device returned protocol error [Class=0x81, Code=0x04].
12.1.2015 12:10:13 Warning Siemens TCP/IP Ethernet Unable to read 1 bytes starting at offset 8 for Memory Type Q (e.g. Q8) on device 'PLC_com.PLC-S7-1215c'. Device returned protocol error [Class=0x81, Code=0x04].
12.1.2015 12:10:13 Warning Siemens TCP/IP Ethernet Unable to read 2 bytes starting at offset 0 for Data Block DB1 (e.g. DB1,B0) on device 'PLC_com.PLC-S7-1215c'. Device returned protocol error [Class=0x81, Code=0x04].
 

what is the reason of this problem? Can anyone help me?

Certified LabVIEW Developer
0 Kudos
Message 2 of 8
(11,229 Views)
Solution
Accepted by topic author Onuralp

I found the solution. You need to check the "permit access with PUT/GET communication from remote partner (PLC, HMI, OPC, ...)". After that i compiled the project and accessed to the PLC.

Certified LabVIEW Developer
Message 3 of 8
(11,201 Views)

Hello,

You must configure the FB14 (GET) and FB15 (PUT) in TIA PORTAL ?

Thanks in advance for your answer.

0 Kudos
Message 4 of 8
(10,265 Views)

Hi,

 

Since this is an older post, it would be useful to have more information about your situation. What errors are you seeing? Are you using the exact same hardware? 

 

I would actually recommend creating a new post so that it will get more visibility.

 

Have a good one!

Matt G.
Product Manager
National Instruments
0 Kudos
Message 5 of 8
(10,248 Views)

Thank you very much for your reply, It helped solving my issue

0 Kudos
Message 6 of 8
(8,405 Views)

You need to check the "permit access with PUT/GET communication from remote partner (PLC, HMI, OPC,)

0 Kudos
Message 7 of 8
(6,446 Views)

Thanks master!!!!

0 Kudos
Message 8 of 8
(2,435 Views)