English Support - Software > easySoft

PID-Control

<< < (2/5) > >>

Marco:
Good morning Maikky,
if I well known, I have to inser in the line 39 of NET-ID 1 a trigger to refresh the value of IA2.
Which is the best cycle time for trigger, about your point of view?

So, in line 39 of NET-ID 1, I put the PT_T function block for reading the IA2 and in NET-ID 5, with GT_Q function block, I read the value of IA2 and write it on MD1; then in the same line I put DB_T function block where I read MD e move it on MD2 (this step is correct or the DB_T block is nonsense?).
I use the value on MD2 for showing in the MFD-Titan display and for PID.

I wait your comments.

Thanks a lto.

Have a nice day

Maikky:
Dear Marco.

The trigger time depends on the estimated change of the signal. For example for
temperatures it will be much slower than for motion control.

To be on the safe side you may use the quickest possibility which is a toggle bit.
A new value will be sent on each second cycle.
I have added a line 39 in NetID01.

Regarding receiving the data it is not necessary to use the function DB and it
is even not necessary to store the value in MD01. The value from the net
already is stored in GT01.QV

I have modified the program and visualization in NetId05 for information.

If you like to store the value you may do that. It will work also.

Regards
Maikky

Marco:
Hi Maikky,
now I understand.
Thanks a lot for your precious suggestions, and sorry for my bad English.

See you.

Regards

Maikky:
Dear Marco.

Chnaging to the subject PID-control now.

In your program you are actually using the proportional and integral component,
which in most cases is sufficient. If the differential component is not used, you do
not need a screen to adjust the rate time TV.

You also have to modify the output of your DC01 block. The output of the controller
is a 12bit value. You can not direct it to the analogue output, which is using 10 bits
only. You have to change the 12 bit output into 10 bits.

I have done that in attached revision by using the arithmetic function AR01, dividing the
controller output by 4 and direct it to analogue output.

Regards
Maikky

Maikky:
Dear Marco.

There is nothing wrong with your English,
it is definitely better than my Italian.

Regards
Maikky

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln