Dear All,
I am a mechanical - 3D design engineer with almost no knowledge in plc programming (and limited knowledge in algorithms in general). I would really appreciate any help on my subject below as i seem to be really stack
LEt me describe what i have to do
I have an analogue 4-20mA input lets call it IN and an analogue 4-20mA output lets call it OUT
My input sensor (IN) gives results after performing a 60 second measuring cycle.
INITIALIZATION OF THE PROCESS
Turn the ''switch'' on
READ ....IN_0=0 (the 60 seconds have not passed so my initial input is 0)
Set... OUT_0=50
based on the OUT the physical process is initiated and after 60seconds i will get the initial actual input IN_1
Based on IN_1 i will perform the below calculation
OUT_1=(OUT_0 * 100)/IN_1
OUT_1 will change the physical process and after 60 secs i will get a second actual input IN_2
then
OUT_2=(OUT_1 * 100)/IN_2
simirally after 60 sec
OUT_3=(OUT_2 * 100)/IN_3
...
...
...
The process will stop when i turn the ''switch'' off
As you see every 60 seconds i get i new input and then i calculate the new output base on the previous output!!! This is where the programming is getting complicated and is wrong
Well i cannot seem to be able to work it out....most probably very easy for PLC programmers but almost imposible for myself
my PLC is Schneider TWDLCAE40DRF and the software is TWIDO
MANY THANKS
I am a mechanical - 3D design engineer with almost no knowledge in plc programming (and limited knowledge in algorithms in general). I would really appreciate any help on my subject below as i seem to be really stack
LEt me describe what i have to do
I have an analogue 4-20mA input lets call it IN and an analogue 4-20mA output lets call it OUT
My input sensor (IN) gives results after performing a 60 second measuring cycle.
INITIALIZATION OF THE PROCESS
Turn the ''switch'' on
READ ....IN_0=0 (the 60 seconds have not passed so my initial input is 0)
Set... OUT_0=50
based on the OUT the physical process is initiated and after 60seconds i will get the initial actual input IN_1
Based on IN_1 i will perform the below calculation
OUT_1=(OUT_0 * 100)/IN_1
OUT_1 will change the physical process and after 60 secs i will get a second actual input IN_2
then
OUT_2=(OUT_1 * 100)/IN_2
simirally after 60 sec
OUT_3=(OUT_2 * 100)/IN_3
...
...
...
The process will stop when i turn the ''switch'' off
As you see every 60 seconds i get i new input and then i calculate the new output base on the previous output!!! This is where the programming is getting complicated and is wrong
Well i cannot seem to be able to work it out....most probably very easy for PLC programmers but almost imposible for myself
my PLC is Schneider TWDLCAE40DRF and the software is TWIDO
MANY THANKS