Example programm average at AC450
Hi ! Im New Engineer.
I have new task to make program calculation Average for speed machine
Speed taken from MV speed.
Calculation report each xxxx 1 from 06:00 to 14:00, shift 2 from 14:00 to 22:00 and shift 3 from 22:00 to 06:00
Can you help me how to make and example program
Thank you
I have new task to make program calculation Average for speed machine
Speed taken from MV speed.
Calculation report each xxxx 1 from 06:00 to 14:00, shift 2 from 14:00 to 22:00 and shift 3 from 22:00 to 06:00
Can you help me how to make and example program
Thank you
Answers
Hi !
you cant expect someone will do logic for you. Remember the best way to learn is try and error.
I can give you basic hints how to create logic:
-use PC element Timer(3) , for each section of Timer set inputs YEARx, WEEKx, DAYx to zero.
For input TONx set beginning time of particular shift , like D=6:0:0 ,
for inpout TOFFx set end of shift like D=13:59:59 , etc for each shift.
-then insert 3pcs switches SW(R,1) ,
connect the gate input 1 of each switch to the particular output of Timer.
connect input 11 of each switch to the Machine speed.
- insert 3pcs integrators INT
output of each SW connect to input I of particular INT,
set K=1 , TI=8:0:0 , OHL=max. machine speed for each INT,
This logic is just for average calculation.
Next you need to fetch data from INT outputs and to store average data in DATs for example after each shift end.
Dont forget to do reset pulse for each INT after average data is stored to DATs
you cant expect someone will do logic for you. Remember the best way to learn is try and error.
I can give you basic hints how to create logic:
-use PC element Timer(3) , for each section of Timer set inputs YEARx, WEEKx, DAYx to zero.
For input TONx set beginning time of particular shift , like D=6:0:0 ,
for inpout TOFFx set end of shift like D=13:59:59 , etc for each shift.
-then insert 3pcs switches SW(R,1) ,
connect the gate input 1 of each switch to the particular output of Timer.
connect input 11 of each switch to the Machine speed.
- insert 3pcs integrators INT
output of each SW connect to input I of particular INT,
set K=1 , TI=8:0:0 , OHL=max. machine speed for each INT,
This logic is just for average calculation.
Next you need to fetch data from INT outputs and to store average data in DATs for example after each shift end.
Dont forget to do reset pulse for each INT after average data is stored to DATs
Add new comment