Jump to content

Reading Data Tables


vlitomsk

Recommended Posts

Hello again.

I've tried to read data tables from the PLC. I wrote program in Java, and it doesn't work. Query was created by myself, checksums was calculated by myself. This program worked successfully , when I tried to read one MI. But when I run this program, and sometimes it throws exception (Connection reset), sometimes it doesn't write something to the screen few minutes, and I have to stop that. Can you help me? There isn't problems in the cable/etc.

Here is the source: http://pastebin.com/GkFssHiG .

I've Vision V570 model, and when entered to the Ethernet monitor from the INFO MODE, saw that RX and TX count = 0. But on the PC, RX and TX count increases when running program.

Where is the problem?

Link to comment
Share on other sites

Here is hex dump:

TCP header (for communication over Ethernet): 01 00 66 00 3B 00

Header section: 2F 5F 4F 50 4C 43 01 FE 01 00 00 00 04 00 00 00 00 00 00 00 20 00 19 FD

Details section: 04 00 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Footer section: F7 00 5C

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.