damiankk Posted September 28, 2020 Report Posted September 28, 2020 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.
ORSO2001 Posted September 29, 2020 Report Posted September 29, 2020 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. 1
AlexUT Posted September 29, 2020 Report Posted September 29, 2020 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. 1
ORSO2001 Posted September 29, 2020 Report Posted September 29, 2020 2 hours ago, AlexUT said: Is you link for Linux-like PCs? ...I took the first exampke that I found searching "pythin async modbus client" without any checks...😀
damiankk Posted September 30, 2020 Author Report Posted September 30, 2020 Thank You for replies. I'm going to check both ways. After first try SQL looks friendly
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now