# RE: [MAT-devel] hmi-gtk module

J

#### Juan Carlos Orozco

Mario de Sousa wrote:
>
> Hi Juan,
>
Welcome back Mario.

I was also out of town. Yesterday I was finally able to return from Houston after the terrible events that occurred in the US.

> The oven demos are looking good.
>
> I am now trying to remove the demo scripts once and for all.
> In order to achieve this, I need the hmi-gtk module to be fully mat-plc
> compliant. At the moment it does not pass the command line parameters to
> the plc_init() call. Do you think you could add it to the code without
> breaking anything else? I need to be able to call the module with
> $hmi-gtk --PLCmodule=mod_name > and have the --PLCmodule=mod_name parameter be passed to the plc_init() > call. OK I will work on this and I will let you know when it is done. > I will probably also upgrade the pid in the dsp module in order to > remove the "jump" that occurs to the setpoint when the system is changed > from auto to manual mode, and vice-versa. Do you have any ideas on how > you would like this to be done? I will need to think about this. All I can think of right now is that at least we need to reset the PID before changing from manual to automatic and there could be a ramp in time for the output when changing from automatic to manual. Of course this second part could be implemented as a separate block (i.e. ramp). Regards, Juan Carlos Orozco ACElab Industrial Automation [email protected] www.ace-lab.com _______________________________________________ LinuxPLC mailing list [email protected] http://linuxplc.org/mailman/listinfo/linuxplc M #### Mario de Sousa Juan Carlos Orozco wrote: > > > I am now trying to remove the demo scripts once and for all. > > In order to achieve this, I need the hmi-gtk module to be fully mat-plc > > compliant. At the moment it does not pass the command line parameters to > > the plc_init() call. Do you think you could add it to the code without > > breaking anything else? I need to be able to call the module with > >$hmi-gtk --PLCmodule=mod_name
> > and have the --PLCmodule=mod_name parameter be passed to the plc_init()
> > call.
> >
> OK I will work on this and I will let you know when it is done.

The above has been fixed! You don't have to do anything!

Please see the post I sent yesterday(?).

Cheers,

Mario.

--
----------------------------------------------------------------------------
Mario J. R. de Sousa
[email protected]
----------------------------------------------------------------------------

The box said it requires Windows 95 or better, so I installed Linux

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc

J

#### Johan Bengtsson

Bumpless transfer is usually implemented like this:

When changing from manual to auto and the I part is used the sum is set to the value required to produce the same output, considering what the other parts add.

Ipart=manualOut-Ppart-Dpart;

For this to work in the best way you should have the D part do the calculations (and not use them) even when in manual mode.

If the I part is not used you don't normally want the transfer to be bumpless.

When changing from auto to manual you normally set the manual value to the last output value.

/Johan Bengtsson

----------------------------------------
P&L, Innovation in training
Box 252, S-281 23 H{ssleholm SWEDEN
Tel: +46 451 49 460, Fax: +46 451 89 833
E-mail: [email protected]
Internet: http://www.pol.se/
----------------------------------------

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc