I want to control PLC by Java. So I'm using Moka7.
But I Can't read DB's from PLC Siemens #S71200 #CPU 1212C AC/DC/RLY #212-1BE40-0XB0 #fw:4.2
PLC Configuration:
Optimized Block Access... unchecked
Full Access... selected
Permit access with PUT/GET... checked
+================================================================
| ConnectTo()
+================================================================
Connected to : 192.168.0.1 (Rack=0, Slot=0)
PDU negotiated : 240 bytes
Execution time 68 ms
+================================================================
| GetPlcStatus()
+================================================================
PLC Status : RUN
Execution time 7 ms
+================================================================
| DBGet()
+================================================================
S7 function refused by the CPU.
Execution time 8 ms
+================================================================
| ReadArea()
+================================================================
DB 1 succesfully read using size reported by DBGet()
Execution time 0 ms
I connected to PLC but I can't control DataBlock.
Can you explain it simply?
Thank you.
Best Regards
Last edit: Özkan ERÖZCAN 2017-06-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi ,
I want to control PLC by Java. So I'm using Moka7.
But I Can't read DB's from PLC Siemens #S71200 #CPU 1212C AC/DC/RLY #212-1BE40-0XB0 #fw:4.2
PLC Configuration:
Optimized Block Access... unchecked
Full Access... selected
Permit access with PUT/GET... checked
+================================================================
| ConnectTo()
+================================================================
Connected to : 192.168.0.1 (Rack=0, Slot=0)
PDU negotiated : 240 bytes
Execution time 68 ms
+================================================================
| GetPlcStatus()
+================================================================
PLC Status : RUN
Execution time 7 ms
+================================================================
| DBGet()
+================================================================
S7 function refused by the CPU.
Execution time 8 ms
+================================================================
| ReadArea()
+================================================================
DB 1 succesfully read using size reported by DBGet()
Execution time 0 ms
I connected to PLC but I can't control DataBlock.
Can you explain it simply?
Thank you.
Best Regards
Last edit: Özkan ERÖZCAN 2017-06-11
You can't use DBGet() with S71200/1500 with all Snap7 family (Snap7,Moka7,Sharp7....)
see
http://snap7.sourceforge.net/snap7_client.html#target_compatibility
EDIT : I got it . Thanks a lot.
Last edit: Özkan ERÖZCAN 2017-06-11