# big demo

M

#### Mario de Sousa

Hi Juan,

Juan Carlos Orozco wrote:
>
> Let me rephrase my previous message, I will be interested to help with the
> big demo, but I will like to know if there is any possibility of using the
> announced LinuxPLC HMI or do I have to do the graphical part from scratch?

Sure. Go ahead and use Greg's tcl extension to interface with the LPLC.

>
> The application that I have in mind is a textile printing machine including
> unwinder, printer, oven and winder. The actuators will be variable speed
> motors for the transmission, valves, heating devices, etc. the sensors will
> be speed feedback, power feedback from the motor drives, tension control
> sensors, temperature sensors, pressure sensors, level sensor for the
> printer, edge detectors for the alignment in the winder. Does this sound
> like something interesting?

This sounds like something interesting, but at first glance it seems much too big to handle in one go. Maybe you could tackle one component
at a time? Say start off with the winder, or the oven, ...? You know the process better than I, so if you think it isn't too big a job to handle it all at once, then go ahead!

Remember that for the demo you have to make two 'programs'. One that simulates the industrial process, and the other that controls the
process. Probably the HMI showing the current state of the process would be yet a third module.

--
----------------------------------------------------------------------------
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

#### Juan Carlos Orozco

Hi Mario,

I will follow your advice and try to tackle the demo by parts as you suggested. I am aware that this project has to include the simulation part of the plant.

Now back to the real world, today when I was ready to start this project I downloaded the latest sources via cvs. And then tried to compile some of the demos to start "playing" with them. But unfortunately the gcc compiler ended the making process with an internal error, unfortunately right now I am not in my Linux machine so I don't remember the exact message. I wanted now to see if this has happened to anyone else. My linux version is RedHat 7.0. I have already run this demos before with no problems, this is the first time that I try the LinuxPLC using RedHat 7.0 so my first guess was that the gcc version of this distro is the problem (I have heard some bad coments about this gcc version). For now I am trying two things to fix my problem and start programming the demo: Try to run a diferent version of gcc in my RedHat 7.0 and try to compile the demos using a different distro. The
first solution is not so easy because the gcc instalation is not straight forward, i.e. there is no uninstall option for this package. For the second solution I will try a debian distro (potato 2.2). I will be able to try these two alternatives on monday or tuesday next week. But I thought maybe someone has already the solution to my problem. Ideas are welcome.

Juan Carlos Orozco

ACElab Industrial Automation
[email protected]
www.ace-lab.com

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

J

#### Jiri Baum

Juan Carlos Orozco:
> But unfortunately the gcc compiler ended the making process with an
> internal error, unfortunately right now I am not in my Linux machine so I
> don't remember the exact message.

Try posting the exact error messages (or at least a detailed description).

If they go by too fast you can pipe them through less, using

make |& less

Or divert them into a file

make >& logfile

It could be something simple, like us using some library that we've long forgotten we've installed or something...

Jiri
--
Jiri Baum <[email protected]>
"In my opinion, the GPL is optimized to build a strong software community
at the expense of a strong commercial software business model."
--Craig Mundie, Senior VP, Microsoft; 17 May 2001

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

J

#### Juan Carlos Orozco

David Wilson wrote:

> Just curious,
>
> Have you updated your libraries / GCC? Sounds like your running RH7.0

No Dave, I had not updated my libraries / GCC.

But now I did the next updates:
gcc-2.96-54 to gcc-2.96-69
glibc-2.1.92-14 to glibc-2.2-12
This is glibc-2.2-12, glibc-2.2-common-12, glibc-2.2-devel-12,
glibc-profile-2.2-12
Unfortunately the error is still there.

This is the output from the command "cd demo/basic; make >& gcclog" using gcc-2.96-54 and glibc-2.1.92-14. I had the same output even after updating gcc and glibc.

make -C ../../lib liblinuxplc.la
make[1]: Entering directory /local/linuxplc/lib'
make -C gmm gmm.lo
make[2]: Entering directory /local/linuxplc/lib/gmm'
libtool gcc -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ggdb -O3
-funroll-loops -I.. -c -o gmm.lo gmm.c
rm -f .libs/gmm.lo
gcc -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ggdb -O3
-funroll-loops -I.. -c gmm.c -fPIC -DPIC -o .libs/gmm.lo
gmm.c: In function plc_pt_details':
gmm.c:714: Internal compiler error in instantiate_virtual_regs_1, at
function.c:3897
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [gmm.lo] Error 1
make[2]: Leaving directory /local/linuxplc/lib/gmm'
make[1]: *** [gmm/gmm.lo] Error 2
make[1]: Leaving directory /local/linuxplc/lib'
make: *** [../../lib/liblinuxplc.la] Error 2

Juan Carlos Orozco

ACElab Industrial Automation
[email protected]
www.ace-lab.com

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

P

#### Philip Costigan

> gmm.c: In function plc_pt_details':
> gmm.c:714: Internal compiler error in instantiate_virtual_regs_1, at
> function.c:3897
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> make[2]: *** [gmm.lo] Error 1
> make[2]: Leaving directory /local/linuxplc/lib/gmm'
> make[1]: *** [gmm/gmm.lo] Error 2
> make[1]: Leaving directory /local/linuxplc/lib'
> make: *** [../../lib/liblinuxplc.la] Error 2

I'm using RH 7.1

Same problem.

--

Regards

Philip Costigan

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

J

#### Jiri Baum

Juan Carlos Orozco:
> This is the output from the command "cd demo/basic; make >& gcclog"
> using gcc-2.96-54 and glibc-2.1.92-14. I had the same output even after
> updating gcc and glibc.
...
> make[2]: Entering directory /local/linuxplc/lib/gmm'
> libtool gcc -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ggdb -O3
> -funroll-loops -I.. -c -o gmm.lo gmm.c
> rm -f .libs/gmm.lo
> gcc -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ggdb -O3
> -funroll-loops -I.. -c gmm.c -fPIC -DPIC -o .libs/gmm.lo
> gmm.c: In function plc_pt_details':
> gmm.c:714: Internal compiler error in instantiate_virtual_regs_1, at
> function.c:3897
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Gack...

Try taking the -ggdb -O3 out of the Makefile - I seem to remember having a problem like that once (with another project) and removing one or the other of those flags helped then. If it works, you can try to find out exactly when it happens (what combination of flags). I can look into my PhD project to see what I did there.

Just comment out the line in lib/gmm/Makefile - the one just above the comment that says "Note: if the optimizer crashes, we'll leave out the -O3
for those files".

Jiri
--
Jiri Baum <[email protected]>
"In my opinion, the GPL is optimized to build a strong software community
at the expense of a strong commercial software business model."
--Craig Mundie, Senior VP, Microsoft; 17 May 2001

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

C

#### Curt Wuollet

Hi all,

Jiri and Mario:

Just as an aside, could you perhaps post (and mention in the readmes) what distribution and gcc version, etc. you compiled on. And could those who get it running post the same. It would be a big help to those who are not Linux veterans and have the opportunity to pick a distro.

Regards

cww

PS For what it's worth, I have compile problems with a missing directory on RH 6.2 stock install.

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

J

#### Juan Carlos Orozco

Thanks Jiri,

Taking out the -ggdb and -O3 options from the /lib/gmm/Makefile got rid of the problem. In fact it was only necesary to take -O3 so the comment in the Makefile is appropriate. My gcc version in this RH7.0 is 2.96

For information to other users I also tried other OS, Corel Linux 1.2, I needed to download the libtool package and after that the program compiled without commenting out the -O3 option. In this distro the gcc version is 2.95.2

Now, I am not quite there yet. I still have two missing files when compiling the /mmi/kbd/linuxkbd.c these are lct/utils.h and lct/console.h

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

> Just as an aside, could you perhaps post (and mention in the readmes) what
> distribution and gcc version, etc. you compiled on.
> (...)

I'm using Debian (Potato), with gcc 2.95.2

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

M

#### Mario de Sousa

> Now, I am not quite there yet. I still have two missing files when compiling
> the /mmi/kbd/linuxkbd.c these are lct/utils.h and lct/console.h
>

For a Debian box, you need to install the console-tools-dev package. As root, run
\$apt-get install console-tools-dev

You need to have the /etc/apt/sources.list file correctly configured to be able to run the previous command.

For a non-Debian box, you probably need a similar named package!

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