Welcome, Guest
Username: Password: Remember me

TOPIC: Re:Proview as HMI to Siemens S7?

Re:Proview as HMI to Siemens S7? 10 years 9 months ago #5490

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Thank you Rasmus, I got it working!

Firstly the answer for your question:
Some lads from another department of the company I work for asked me to read individual bytes from the PLC. Apparently they use those bytes as status falgs or something. I'm not a PLC programmer, that's why I struggle a bit with it.

Back to the main subject:
I got it working for a few seconds, the only problem is that a moment after I initialise the environment, the plc stalls (please see attatched screenshot).

The timeout related option is under the Nodave_PLC object, and there's the ScanInterval under Nodave_Transaction as well. Any tips on that?

Also, I created an empty PlcPgm, do I really need it?

Eduardo
Last Edit: 10 years 9 months ago by beloni.
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 10 years 9 months ago #5492

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hi beloni. Happy you got it working.

About the stall. which cpu are you connecting to and how? (protocol and physical connection)


if you are connected over wifi and the signal is a bit unstable, you would need to configure a plc thread that allows a longer io cycle. eg 200ms or more I had some similar problems on the development (laptop) if the network is loaded the response time from the plc can be delayed a bit.

also if you are having to many connections to the cpu but again how many connections available depends on your cpu and connection type.
The administrator has disabled public write access.
The following user(s) said Thank You: beloni

Re:Proview as HMI to Siemens S7? 10 years 9 months ago #5508

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hello beloni. did you sort out the stall problem?
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 10 years 9 months ago #5514

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Hello Rasmus and thank you for the interest.

My preliminary tests showed an improvement by increasing the PLC thread cycle and the timeout in the Nodave_PLC. With that, the stall took significantly longer to occur.

I'm using the ISOTCP to connect to the PLC. However your network connection is not reliable (nor is our electricity) here in south Brazil, thus it keeps going down, so I can only tell for now there's been an improvement.

I'll focus in the stall issue next week.

Eduardo
Last Edit: 10 years 9 months ago by beloni.
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 10 years 9 months ago #5517

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Hello again,

I think I can consider the stall problem solved or overcame, if you like.

Our network is reasonably stable today and I've got a test app running for a few hours: no stall so far.

Eduardo
The administrator has disabled public write access.

Re:Proview as HMI to Siemens S7? 10 years 6 months ago #5645

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Hi there,

Has anyone got a clue on what might cause this log related to nodave PLC?
I pwr_plc              2490 13-10-25 15:25:52.80 Adding application. aix: 11
I plc                  2490 13-10-25 15:25:52.80 Setting subscription defaults to 1.000 seconds
I plc                  2490 13-10-25 15:25:52.80 maxdelay: %f, tv_sec: -1610612736, tv_nsec: 1069128089
I plc                  2490 13-10-25 15:25:52.80 maxdelay: %f, tv_sec: 0, tv_nsec: 1072693248
E plc                  2490 13-10-25 15:25:52.80 Failed to set priority, plc thread 200 ms, prio 22
I plc                  2490 13-10-25 15:25:52.81 Init of IO agent VolTestoper:Nodes-Testoper
E plc                  2490 13-10-25 15:25:52.81 Nodave PLC, open socket error, VolTestoper:Nodes-Testoper-NodavePLC
E plc                  2490 13-10-25 15:25:52.81 Failed to inititalize io, %IO-E-ERRINIDEVICE, initialization device  '%s'

Eduardo
The administrator has disabled public write access.
Time to create page: 7.845 seconds