LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Snap7 CPU : Function not available when reading DB from PLC S7 1200

I need help connecting PLC S7 1200 and Labview using Snap7.

 

Using example DBGet.vi, I get Error in DBGet function saying "CPU : Function not available"

I'm using S7 1200 with TIA portal, Labview 2017. 

From my Labview Computer (IP 10.0.2.10) cmd.exe I succesfully ping CPU that is on IP 10.0.2.1.

I also did setup in TIA Portal:

- Protection = Full Access

- DB Property-> disable optimized block access

- Connection Mechanism ->  Permit access with PUT/GET

0 Kudos
Message 1 of 2
(5,099 Views)

Hi.

Probably a late answer for you but in the past I was searching for similar information and I found this on the Snap7 forums :

"if you are using DBGet the first operation is to gather DB info via GetAgBlockInfo() which is not supported by S71200/1500"

 

We are using ReadArea function and it works fine with S7-1200/1500

0 Kudos
Message 2 of 2
(4,976 Views)