Welcome, Guest
Username: Password: Remember me

TOPIC: Re:Proview as HMI to Siemens S7?

Re:Proview as HMI to Siemens S7? 12 years 1 month ago #3409

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3179
  • Thank you received: 502
  • Karma: 133
If you set the nodave bit in the BuildOptions object -lpwr_nodave_dummy is replaced by -lnodave.

The methods for the IO objects are already compiled when the release is built so no include files are needed when compling the plc, only libnodave.so on /usr/lib is used when the plc is linked.

What is the message in the log file ?

/Claes
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 12 years 1 month ago #3410

  • frans
  • frans's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 0
Hi Claes, Rasmus,

this is what I found in mij pwr-ubuntu.log file:

I pwr_plc 3796 12-03-21 04:24:17.95 Init of IO agent VolGettingstarted:Nodes-Gettingstarted
E pwr_plc 3796 12-03-21 04:24:17.95 Nodave PLC, new interface error, no message defined!, VolGettingstarted:Nodes-Gettingstarted-CPU314
E pwr_plc 3796 12-03-21 04:24:17.95 Failed to inititalize io, %IO-E-ERRINIDEVICE, initialization device '%s'

"ubuntu"is the name of the computer

Is this of any help ?

I can't be much help at this moment. I have to test things in my breaks and in the evening.

Kind regards Frans.
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 12 years 1 month ago #3411

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
The log shows these plc messages

I pwr_plc 9117 12-03-21 10:17:07.34 Adding application. aix: 22
I pwr_plc 9117 12-03-21 10:17:07.34 Setting subscription defaults to 1.000 seconds
I pwr_plc 9117 12-03-21 10:17:07.34 maxdelay: %f, tv_sec: -1610612736, tv_nsec: 1069128089
I pwr_plc 9117 12-03-21 10:17:07.34 maxdelay: %f, tv_sec: 0, tv_nsec: 1072693248
E pwr_plc 9117 12-03-21 10:17:07.34 Failed to set priority, plc thread 100 ms, prio 22
I pwr_plc 9117 12-03-21 10:17:07.34 Init of IO agent VolHome2:Nodes-Home2
E pwr_plc 9117 12-03-21 10:17:07.34 Nodave PLC, open socket error, VolHome2:Nodes-Home2-FYR
E pwr_plc 9117 12-03-21 10:17:07.34 Failed to inititalize io, %IO-E-ERRINIDEVICE, initialization device '%s'

a test before showed

that plc priority was set and started

but i still cant get the build option to compile right
Last Edit: 12 years 1 month ago by HTRasmus.
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 12 years 1 month ago #3412

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3179
  • Thank you received: 502
  • Karma: 133
Frans,
You probably get en error return code from daveConnectPLC but before it's printed it's translated to a text, and 'no message defined!' means that it's an unknown error code. What protocol are you using ?

Rasmus,
The message 'Failed to set priority' indicates that the plc is not running with root privileges. But just to open a socket this should not be needed. It's when you create a socket for a privileged port you need to be root. Are you sure it's possible to connect to the supplied address and port ?

/Claes
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 12 years 1 month ago #3413

  • frans
  • frans's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 0
Hi Claes,

I'm using ISOTCPR, but i test it with another protocol.

I'l let you know.

By the way, with de libnodave test programs I can connect to my Siemens S7 314C-2DP procesoor via a ethernet 343-Lean card.

Frans
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 12 years 1 month ago #3414

  • frans
  • frans's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 0
Hi Cleas, Rasmus,

I have the Nodave_PLC running. In the status it gives running.
The status of the Nodave Transaction is blank.


On step ahead to a working connection!

Anny sugestions ?

Frans
The administrator has disabled public write access.
Time to create page: 7.637 seconds