data sampling motor

AmazingNoob

Member
Join Date
Aug 2016
Location
asia
Posts
14
Hi there, i am looking for a method to sample 600 points on a motor that is running at 800 rpm or sometimes at 1000rpm. Then, i would like to calculate the average speed for every cycle.

The scan time of the plc is about 2 ms.

I have tried various ways, but the position of my 1st index is always starting at different angles.
I would like the 1st data position array to start collecting close to when the motor is at 0° and the last data position array to be close to 359/360°.

Could somebody help me with a pseudocode?
 
What are you trying to 'sample'? The position of the motor? Or the instantaneous speed? If speed, I guess you are wanting to start at position 0 and end at 360, collecting speed points along the way? If so, what are you calling zero? A particular position of the motor shaft? It's not clear what you are really after.
 
What are you trying to 'sample'? The position of the motor? Or the instantaneous speed? If speed, I guess you are wanting to start at position 0 and end at 360, collecting speed points along the way? If so, what are you calling zero? A particular position of the motor shaft? It's not clear what you are really after.

I am looking to find the average torque, and speed of a motor for every cycle.
My motor perform with different torque at different angles.
I am looking to collect it in a cycle so I can calculate the average torque per cycle, rather than per 1.25 cycle, or 1.5 cycle.

i would preferably sample it this way:
data.position[0] = 0.0
data.speed[0] = 100.0
data.torque[0] = 900.0

data.position[1] = 0.0
data.speed[1] = 100.0
data.torque[1] = 850.0
....
data.position[600] = 359.9
data.speed[600] = 100.0
data.torque[600] = 500.0
 
Are you calculating speed or reading it?
Are all the points from a single cycle? You sample has two points at the same position with different torque.

Your scan time does not allow much resolution. At 1000RPM a cycle takes 60ms.

You really need to define your problem better.
 
Geoff, yup looks like I can only collect 30 points. Which means if I have 600 points, that would be 20 cycles.

Sorry for confusions.
The goal:
1. Get multiple plots on torque vs speeds curves for every cycle.
2. Calculate average speed, torque, current consumed.

Couple of ideas. Came up I guess.
I guess I can just let the scan colllect all the 600 points, then calculate average at 20 strokes to get more accurate.

Whereas for the plot, I'll have to live with 30 points if it is actually running at 1000 rpm.
1000Rpm was the worst case explain, typically the speed range 200-700rpm.

Mickey,
Am using a beckoff controller.
 
at 600 rpm it takes 100 ms/rev so only 50 samples max in one cycle.
A real time system will be needed, or a NOT PLC type like an arduino, a lot faster, and easy to program, and cheap.
please be aware that the sensor also needs to be fast, to get reliable measurements.
a scope would be a good choice here with a trigger sensor.
also be aware of forces related to position and the accuracy of the electric motor.
 
you will have a problem anyway as the position sensor is very fast, so your sampling point is always different, so not correct way, check my other reply.
 
If your using an encoder with a Z pulse, that can be used as your 0 reference and then use the pulses to find your locations around the cycle.
 
Is your cycle a single motor revolution or is there gearing involved? Does the drive have an an EtherCat interface? If so, does it have internal data capture capability? Beckhoff also has high speed analog input modules but you still have the issue of triggering a data capture base on position.

Keith
 

Similar Topics

I am using 15 history data display objects (event trigger) to display 15 different data then I used the backup object in order to save each one of...
Replies
4
Views
1,726
Hi, I'm having problem with data sampling on HMI.I'm using EZware plus software.My program functionality is to capture the hours and minutes on...
Replies
4
Views
2,076
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
121
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
65
Has anyone migrated Proficy Historian data to a new server? I followed the guide to move all the data over, but when I run the utility, it stops...
Replies
0
Views
48
Back
Top Bottom