mlx1100 timer problem

escoplcguy

Member
Join Date
Jun 2010
Location
New Jersey
Posts
191
Hey guys,

I know theres a way to do this and i may just be looking at it all wrong, but.. i have to figure out what the amount of a mixture produced by time....and i need an accurate number, i was trying to use the centiseconds.... so i have

x/y = minutes*6000= z (time it takes to make mixture in centiseconds (0.01))

then

y/6000*z=mixture produced.

the problem is that it is over the 32767 point with the max number of minutes which can be no more than 100.

100*6000 = 600,000.

the only way i see to make this work, is either

A) just use seconds and sacrifice the acuracy, which i really cant do,
or
B) divide my total of centiseconds by 20 and set up a series of 20 different timers, and addition statemtnts.

is there a better way??
 
Use a timer (0.01 timebase) combined with a counter. Set the preset of the timer to 6000 (1 minute). The done bit of the timer should trigger the counter and also reset the timer. So, you now have the counter keeping track of elapsed minutes and the timer keeping track of fractions of a second. Total time elapsed (in centiseconds) would be [C5:x.ACC*6000 + T4:x.ACC]. You could put the result of this math into a Long register to avoid overflow.
 
thank you john, that worked out realy well, problem i have now is, with these equations, if i change the "Y" value, which represents speed, the number for amount produced changed with it, instead of just increasing slower.
 

Similar Topics

Hello, I have a 1762-IA8 input module, connected to MLX1100. When I force an input "on", should the LED for that input address light, whether it...
Replies
2
Views
1,397
Hello Everybody.. I have a Micrologix 1100 and i would like to connect this PLC to PanelView. I have 2 possibilites PanelViews.. PV 1000 Color (...
Replies
1
Views
1,529
Hello, I usually use MLX1100 with 1763-NC01 cable to connect my RS485 modbus slaves. But now i have RS232 device (modbus slave) and i wonder if i...
Replies
1
Views
1,870
Hi all, We have a MLX1100 that was down today. Every time we began auto cycle, the controller faulted, and restored automatically, but faulted...
Replies
1
Views
1,888
I'm having problems getting a MLX1100 to work with a Redlion G306K through Ethernet. All I want to do is put a pushbutton on the screen addressed...
Replies
2
Views
1,371
Back
Top Bottom