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 7
(5,020 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 7
(4,998 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 7
(4,970 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 7
(4,034 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 7
(4,017 Views)

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

0 Kudos
Message 6 of 7
(2,174 Views)

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

0 Kudos
Message 7 of 7
(215 Views)