Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with I/Os card Valleman k8055

Re:Problem with I/Os card Valleman k8055 13 years 2 months ago #1541

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Marc,

The linker doesn't find the .opt files, otherwise you should have gotten an errormessage from the linker. I think is has to do with the uppercase E in the nodename. Try an uppercase E in the opt filename as well.

/Claes
The administrator has disabled public write access.

Re:Problem with I/Os card Valleman k8055 13 years 2 months ago #1542

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Claes,

I have tried:

plc_e227_0999.opt
plc_E227_0999 .opt
plc_e227_999 .opt
plc_E227_999.opt

I installed on another PC everything from scratch again but with the same error:

\"Failed to initialize io, %IO-E-INITFAIL, Initialization failed\"

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:Problem with I/Os card Valleman k8055 13 years 2 months ago #1544

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Marc,

If you insert a 'set -o xtrace' on line 163 in $pwr_exe/wb_gcg.sh you should be able to see which .opt file Proview is looking for and if it is found.

[code:1]CompileRtNode()
{
set -o xtrace
#link option file exists and is not empty
if [ -s $pwrp_exe/$FileName.opt ]; then

ld_opt_tmp=\"`cat $pwrp_exe/$FileName.opt`\"
ld_opt=\"`eval echo $ld_opt_tmp`\"
else
ld_opt=\"`eval echo $pwr_obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy`\"
fi[/code:1]

/Claes
The administrator has disabled public write access.

Re:Problem with I/Os card Valleman k8055 13 years 2 months ago #1548

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Claes,

This is the result and it compiles with plc_E227_0999.opt:


Build node E227
-- Building archive for volume: 000_001_001_001
-- Archive built for volume: 000_001_001_001

-- Working with load file volume 'VolK8055'...
-- Open file...
-- Successfully created load file for volume 'VolK8055'
-- 29 objects with a total body size of 32320 bytes were written to new file.
-- Creating bootfile for node E227
plc_e227_0999_00009
-- Plc thread generated priority 22, scantime 0.10000 s, 1 plcpgm's
-- Plc process compiled for x86_linux optimized -O3 Dummy
+ ''
++ eval echo /usr/pwr48/os_linux/hw_x86/exp/obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy
+++ echo /usr/pwr48/os_linux/hw_x86/exp/obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy
+ ld_opt='/usr/pwr48/os_linux/hw_x86/exp/obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy'
+ g++ -L/lib/thread -L/usr/local/pwrp/k8055/bld/x86_linux/lib -L/usr/local/pwrp/k8055/x86_linux/lib -L/usr/pwr48/os_linux/hw_x86/exp/lib -o /usr/local/pwrp/k8055/bld/x86_linux/exe/plc_e227_0999_00009 /usr/pwr48/os_linux/hw_x86/exp/obj/rt_plc_process.o /usr/local/pwrp/k8055/bld/x86_linux/obj/plc_E227_0999.o -lplcf000_001_001_001 /usr/pwr48/os_linux/hw_x86/exp/obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy /usr/pwr48/os_linux/hw_x86/exp/obj/pwr_msg_rt.o /usr/pwr48/os_linux/hw_x86/exp/obj/pwr_msg_co.o -lrt -lpwr_remote -lpwr_nmps -lpwr_rt -lpwr_co -lrpcsvc -lpwr_msg_dummy -lpthread -lm
+ echo '-- Plc program linked for x86_linux node plc_E227_0999'
-- Plc program linked for x86_linux node plc_E227_0999
+ gcg_status=0
+ ''
+ exit 0

pppfffffff...., what the hack is going on and what am I doing wrong....

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:Problem with I/Os card Valleman k8055 13 years 2 months ago #1550

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Marc,

[code:1]+ ''[/code:1]

This is the test if the opt-file exist or not, and it is case sensitive on the nodename, which it shouldn't be. Create the file with and uppercase E and hopefully it will work.

/Claes
The administrator has disabled public write access.

Re:Problem with I/Os card Valleman k8055 13 years 2 months ago #1551

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Bingo!

It works.
But for me it's just still a little strange.
Because yesterday I tried:

plc_e227_0999.opt
plc_E227_0999.opt
plc_e227_999.opt
plc_E227_999.opt

But my lesson for today: \"hostname/*.opt files always lowercase....

Thanks again, for your support, Claes....

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.
Time to create page: 8.078 seconds