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

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3180
  • Thank you received: 502
  • Karma: 133
If the Status is empty the init method for the nodave_transaction object is not called. Are the process and plcthread filled in correctly in this object ?

/Claes
The administrator has disabled public write access.

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

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

I have set the Process of both the Nodave_PLC and the Nodave_Transaction to 1 (PLC only)
Now the status of the Nodave_transaction is "Initialised".

Now I only have to figure out how the channels must be configured and how they must be linked to a Di signal in the Plant hier.

I wil that try later this evening.

Thanks for all Your help.

Frans
The administrator has disabled public write access.

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

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hi claes and frans.


this is my latest log for the plc

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

I am Using ISOTCP protocol to a ethernet cp.

the chroot and chmod is done to the plc_sim.bus_0999_00007

The .opt file now states the -lnodave at the end of the first line.

if i go to my libnodave folder and call the following:

testISO_TCP --readoutall 20.20.20.21

i get connected to the PLC and reads all block on the cpu.

i guess this is done bye daveconnect with standard settings, rack 0, slot 2, port 102 etc.

but when proview calls the nodave it does not do it right.


Frans. how did you get the nodave connected and with which protocol/settings?

Are there something that need to be set changed regarding local ip adress or network device.?

im on the laptop and are trying to reach the plc over my wlan interface but i dont think this should be a problem.

i can ping the device and as I said if i run the libnodave directly I can readout all data from the plc.

Frans, did you set any of the mpi adress atributes or rack atributes?
also how about your atributes for byte ordering, Float representation, timeout etc. which plc thread did you connect to the nodave?
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 #3429

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Which privileges is neede for the nodave.h and libnodave.so? i have both set to owner root, group root--read only, and others read only. both are executable

is this correct? i am unsure of how proview acces theese files?
The administrator has disabled public write access.

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

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Wauw..!!

Got it working..

By accident i noticed that the syntax on the .opt file and the plc file was different. :$ dont know how this happened.

my .opt file was MYNode.opt and the plc file was plc_mynode.

after a slight change in my configuration the project compiled with local.option file.

A bit embarrassing but i have plcnodave running.

sorry for all the trouble
The administrator has disabled public write access.

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

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

Try it again. My login was expired before i was ready.

I have an XP-notebook with VMware player installed. In this virtual machine i installed Ubuntu10.04.4 LTS as operating system. Then I loaded and installed libnodave as root user. After this I loaded and installed Proview (the version for ubuntu 10.04)

The PLC is a Siemens CPU314-2DP with an ethetnet Lean-card (CP343-Lean).
This card has IP-adress 192.168.2.152 and networked set to "Yes"

I configured nodave_plc with process set to 1 (PLC only)
Threatobject is the Plcprocess_treat
Connection = TCP
adress is 192.168.2.152
Prococol = ISOTCP (rest didn't work)

Nodave_transaction:
Threatobject same as above
area = flags
adres = 10
rest is standard

I configured a chandi under the nodave transcaction and connected this to a Di in the plant hier.

With a syntac check it didn't give any problems.

After starting the Nodave transaction gave a few times status "initiales" and a few times "success"
What is the difference ?

I couldn't see the status of the Di. (it kept value 0). but it gave no errors.

Hope this is helpful.

Kind regards, Frans
The administrator has disabled public write access.
Time to create page: 8.130 seconds