Jump to content

Recommended Posts

Posted

Hi, 

I consider few ways to get 100 variables every second from USC-B10-TR22:

1.  Create DataTable on SD card, and then get it through FTP server

2. Get data via MODBUS

3. Use any OPC client

When I tested first way, there was problems with accurate timming.
I forced creating line in SD file with data every 0.8s, and average time
was around 0.8s, but varied between 0.6 and 1.4s

Second way seems to be ok, but using Python's modbus library also occured some 
timming mismatch. Average was also ok, but again varied between similiar values. 
I'm not sure, but it also can be Python's library problem, because it is me 
first time with this library. 

So far I don't have any experience with OPC and I would like to know is it right 
way or not.

I also tried DataSampler, but it is limited by amount of variables saved with 
one DataSampler, so I discontinued this way. 

Posted

hi damiankk,

in my opinion with 100 variables you can use the modbus way...what you have to be sure is that at the PC side the python scrip has to use an asynchronous method.

I am not so deeply inside python but I found THIS example about how to implement an async modbus_TCP_client.

  • Like 1
Posted

orso2p001

Is you link for Linux-like PCs?

"#!/usr/bin/env python"

damiankk - How about to use SQL database connection?

You can create data table and add records with time stamp.

Then use this information as you wish.

B.R.

 

  • Like 1

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.