Help - Search - Members - Calendar
Full Version: CX-Supervisor Hanging
Forums.MrPLC.com > PLCs and Supporting Devices > Omron > CX-Supervisor
scottmurphy
My CX-Supervisor application is hanging, randomly I think. I have no idea why, an error
code/file is generated which means nothing to me. I have attached the text files and a screen
shot of the error messages.

When I re-start the application, it seems that the IO server does not start back up, what
I have to do is log off and then on again, this seems to cure the problem.

I have a few hunches as to why, like is it because I am running developer and runtime at the
same time? What seems to happen, is that the selection buttons become in-active. Could it be that
if a button is selected at the same time a subroutine script is running, that it causes an error?

I need to know if this in error in the way that I have the system configured, or if there is something
else that I need to look at, something to do with the OS perhaps?




PdL
QUOTE(scottmurphy @ Aug 10 2007, 06:58 AM) [snapback]57630[/snapback]
My CX-Supervisor application is hanging, randomly I think. I have no idea why, an error
code/file is generated which means nothing to me. I have attached the text files and a screen
shot of the error messages.

When I re-start the application, it seems that the IO server does not start back up, what
I have to do is log off and then on again, this seems to cure the problem.

I have a few hunches as to why, like is it because I am running developer and runtime at the
same time? What seems to happen, is that the selection buttons become in-active. Could it be that
if a button is selected at the same time a subroutine script is running, that it causes an error?

I need to know if this in error in the way that I have the system configured, or if there is something
else that I need to look at, something to do with the OS perhaps?






Which version CX-Supervisor and CX-Server are you running ?
What comms method are you using to your I/O devices ?

It is common for CX-Server processes to keep running after a CX client crash (CXP or CXS), that's the reason you need to log off and on before they connect again.
It is no problem to run the developer next to runtime, as long as you don't rebuild runtime from the developer when a runtime instance is running.

QUOTE
What seems to happen, is that the selection buttons become in-active.


What do you mean with this ?
scottmurphy

QUOTE

Which version CX-Supervisor and CX-Server are you running ?
What comms method are you using to your I/O devices ?


Sorry, was meant to post the version, version is 1.32(4), CX-Server V2.4

QUOTE

It is common for CX-Server processes to keep running after a CX client crash (CXP or CXS), that's the reason you need to log off and on before they connect again.


Yeah, I thought as much.

QUOTE

It is no problem to run the developer next to runtime, as long as you don't rebuild runtime from the developer when a runtime instance is running.


Again, thats what I thought, it doesn't seem to be related to if developer is open or not.

QUOTE

What do you mean with this ?


Sorry, was not clearer, basically any objects that have an action associated, do not respond, or
some do and some don't, then it eventually freezes and gives the error message and shuts down.

Are the txt files that were generated of use, are they supposed to point to a problem?




PdL
QUOTE(scottmurphy @ Aug 10 2007, 12:30 PM) [snapback]57642[/snapback]

QUOTE

Which version CX-Supervisor and CX-Server are you running ?
What comms method are you using to your I/O devices ?


Sorry, was meant to post the version, version is 1.32(4), CX-Server V2.4



1.32(4) is the latest version so that's ok.

QUOTE
Sorry, was not clearer, basically any objects that have an action associated, do not respond, or
some do and some don't, then it eventually freezes and gives the error message and shuts down.


Sounds like a common program freeze. I think it is CX-Server related.
Have you monitored all process resources in the task manager during the hang up ?
What comms method do you use, how many I/O devices, types, number of points, update rate etc etc.

QUOTE

Are the txt files that were generated of use, are they supposed to point to a problem?


These common Windows errors don't tell me much. shrug.gif
tashinz
QUOTE
1.32(4) is the latest version so that's ok.


hey, the latest version is 1.33 (1), there is an update on omron download section for registered users. went through the list of changes, didn't see any new comparing to 1.32 (4).

error files don't tell much. This mfc42u.dll file, I've searched it on my laptop, there is two versions, one in system32 folder and other in CX-Designer's folder (also in WinSxS never mind). the version in CX-Designer's folder in newer. I can not tell you how this is important though.
Try to install the latest CX-Server 3.0.0.21 it comes with cx-one 2.03 or 2.01 with updates.
I had a similar problem once: when click on text with display page action, the page is open - it is a pop up screen with text with two actions. one close page (closes this pop up) and another is Execute Script with one line OpenLogView(bla bla). when click on it Data Log Viewer opens and generates an error similar to yours and crashes the whole application (with stupid send error report, dont send). this sometimes happens and sometimes not. I solved this by doing following:
I erased close page action and add another line in script, after OpenLogView(bla bla)
Close(pop up)

after this it never crashed again.
one would say that this is solved internaly (queueing methods of object).

Or maybe uninstall whole omron software, wipe the registry of omron and cx, install again the latest versions.

also, look up on the internet what services of winxp you can disable, it can help, who knows.

regards
scottmurphy

QUOTE

1.32(4) is the latest version so that's ok.


Yep, I thought so. When is V2 going to be released, does anyone know?

QUOTE

Sounds like a common program freeze. I think it is CX-Server related.


Is there a later CX-Server than V2.4? I do not have CX-One V2 yet, trying to sort
with supplier at present.

QUOTE

Have you monitored all process resources in the task manager during the hang up ?


Not diligently enough, I will do so though, I think there is something else that may be going on.

QUOTE

What comms method do you use, how many I/O devices, types, number of points, update rate etc etc.


Sorry, was meant to answer this last time. I have 3 CQM1H's, 2 are CPU51's, 1 is a CPU21. I have 2 serial
ports, one via Toolbus at 19200 to CPU51[1], then CPU51[2] is via controller link. CPU21 is to be connected via the second comm port, but is not as yet. I have it configured, but disable it my using the 'app = ClosePLC("CPU21")' command in an initialisation script.


QUOTE

These common Windows errors don't tell me much. shrug.gif


dang ranting.gif


QUOTE
Could it be that
if a button is selected at the same time a subroutine script is running, that it causes an error?


I wouldn't think so, but I may try and simulate this scenario. I did not have any of these errors during
development, but the runtime is installed on another machine...









PdL

Some good suggestions the Tashinz! Thanks for pointing out the CXS update blush.gif

QUOTE(scottmurphy @ Aug 11 2007, 02:15 AM) [snapback]57679[/snapback]

QUOTE

1.32(4) is the latest version so that's ok.


Yep, I thought so. When is V2 going to be released, does anyone know?



Shouldn't take too long I think, unofficial releases were distributed amongst power users some time ago.

QUOTE
QUOTE

Sounds like a common program freeze. I think it is CX-Server related.


Is there a later CX-Server than V2.4? I do not have CX-One V2 yet, trying to sort
with supplier at present.


See Tashinz post.

QUOTE
QUOTE

What comms method do you use, how many I/O devices, types, number of points, update rate etc etc.


Sorry, was meant to answer this last time. I have 3 CQM1H's, 2 are CPU51's, 1 is a CPU21. I have 2 serial
ports, one via Toolbus at 19200 to CPU51[1], then CPU51[2] is via controller link. CPU21 is to be connected via the second comm port, but is not as yet. I have it configured, but disable it my using the 'app = ClosePLC("CPU21")' command in an initialisation script.


Tried disabling all I/O devices to see if it is application related ?

You would say there must be something that started the instability.

When did the crashes start to occur ? In other words how long has is run without problems ?

Prior to this;

Any CXS / CX-Server updates installs done ?
Any third party software installs done ?
Are there any changes done to the project graphics / animations?
Any changes done to the I/O device configuration, comms methods, I/O point count, updates rates ?

Is system restore enabled on the XP install ? Is it possible to roll back to a restore point before the errors occured ? (make a project backup and load it on restored system)

Ultimately you might want to follow Tashinz re-install Omron software suggestion. Might do the trick.
tashinz
scottmurphy,

can you upload here the elg and ebk (error log and error backup) files from cx-supervisor's runtime folder (or uel and ueb files if it's 1.3 and later). maybe something we can dig out f there.
you should do what PdL said, try to start minimum of your application, and then add features you implemented later to see when the crash will occur.


QUOTE
Shouldn't take too long I think, unofficial releases were distributed amongst power users some time ago.


we are distributing cx-s 2.0 already here in serbia, i think for two months now, omron even told us that cx-s 1.3 can be purchased only if something is really important, how to say.

please, keep us informed regarding crashes of your application. this was happenning not so often in my experience and I solved all this crashes with minor changes in the project. hope this is the case with you also.

regards to all
beegee
Something I had to when I had the same problem with CX-Server:

Check if you have a process rundll32 running. If so kill it before you start CX-Supervisor. I have had the problem with the NVIDIA drivers on my la^ptop (DELL). If thisworks you can diable the service with th command MSCONFIG

Beegee
scottmurphy
QUOTE(beegee @ Aug 16 2007, 10:20 AM) [snapback]57947[/snapback]

Something I had to when I had the same problem with CX-Server:

Check if you have a process rundll32 running. If so kill it before you start CX-Supervisor. I have had the problem with the NVIDIA drivers on my la^ptop (DELL). If thisworks you can diable the service with th command MSCONFIG

Beegee


I have tried a few different things, and it seems to not hang anymore. I have removed the PLC that is not connected at present, I think that instead of using the close PLC command in an initialisation script, I should de-select the 'open device' option under the setup devices config.

Another quirky issue that I have, is when an item is selected, either to switch pages or display a popup, the item stays selected graphically, does anyone know why this is happening? I have attached an image of what I mean.
tashinz
QUOTE
the item stays selected graphically, does anyone know why this is happening?


don't know why, but you obviously use the Dinamic Hand Cursors Enabled option from Project -> Runtime Settings -> Startup Conditions... in the cx-supervisor developer window. I've used it once but it slowed runtime very much for some reason. never used it since. try to uncheck this option?
PdL
QUOTE(tashinz @ Aug 19 2007, 12:20 AM) [snapback]58022[/snapback]
QUOTE
the item stays selected graphically, does anyone know why this is happening?


don't know why, but you obviously use the Dinamic Hand Cursors Enabled option from Project -> Runtime Settings -> Startup Conditions... in the cx-supervisor developer window. I've used it once but it slowed runtime very much for some reason. never used it since. try to uncheck this option?


I always use this option, never have problems. I like that is it clear what objects are clickable with the hand cursor.
scottmurphy
QUOTE

don't know why, but you obviously use the Dinamic Hand Cursors Enabled option from Project -> Runtime Settings -> Startup Conditions... in the cx-supervisor developer window. I've used it once but it slowed runtime very much for some reason. never used it since. try to uncheck this option?


No, I don't have this option checked. I did check it to see if it made a difference, but it did at the
time seem to be different, could of been related or couldn't of?

QUOTE

I always use this option, never have problems. I like that is it clear what objects are clickable with the hand cursor


Yes, it is a good option, I cannot remember why I didn't select it.

Still does not solve the problem though?



PdL
QUOTE(scottmurphy @ Aug 20 2007, 10:32 AM) [snapback]58051[/snapback]


Still does not solve the problem though?


Do you have the possibility to install the project on another system and test run it ? Could rule out comms or application cause and leaves doing a clean install on the problem system.
If the problem then persists perhaps you have a hardware RAM problem.
Berti Baker
QUOTE(scottmurphy @ Aug 18 2007, 07:13 PM) [snapback]58020[/snapback]

Another quirky issue that I have, is when an item is selected, either to switch pages or display a popup, the item stays selected graphically, does anyone know why this is happening? I have attached an image of what I mean.


Looking at the Image supplied, is this just the focus for the "Keyboard Only Control"? Do you have Project->Runtime Settings->Startup Settings->Keyboard control enabled option on? Does this box move when you Tab or cursor? If so then I think this is correct operation of Keyboard only control - so you can select and operate this object.

BB
scottmurphy
QUOTE
Do you have the possibility to install the project on another system and test run it ? Could rule out comms or application cause and leaves doing a clean install on the problem system.
If the problem then persists perhaps you have a hardware RAM problem.


Sorry pdl, yeah I do, but I think the initial issue I was having was related to the PLC that
was not connected yet.

QUOTE(Berti Baker @ Aug 20 2007, 02:13 PM) [snapback]58074[/snapback]

Looking at the Image supplied, is this just the focus for the "Keyboard Only Control"? Do you have Project->Runtime Settings->Startup Settings->Keyboard control enabled option on? Does this box move when you Tab or cursor? If so then I think this is correct operation of Keyboard only control - so you can select and operate this object.
BB


I think this is what is the issue BB, it makes perfect sense as it always does!! Thanks BB.


PdL
QUOTE(Berti Baker @ Aug 20 2007, 09:13 PM) [snapback]58074[/snapback]
QUOTE(scottmurphy @ Aug 18 2007, 07:13 PM) [snapback]58020[/snapback]

Another quirky issue that I have, is when an item is selected, either to switch pages or display a popup, the item stays selected graphically, does anyone know why this is happening? I have attached an image of what I mean.


Looking at the Image supplied, is this just the focus for the "Keyboard Only Control"? Do you have Project->Runtime Settings->Startup Settings->Keyboard control enabled option on? Does this box move when you Tab or cursor? If so then I think this is correct operation of Keyboard only control - so you can select and operate this object.

BB


brainbulb.gif good thinking BB !!
scottmurphy
So more questions,

What does the use Flat Toolbars option mean?

How do others to L, LL, H, & HH alarms on analogues, in the PLC? Other packages
you can do it off the tag directly. My PLC is getting full, so am reluctant to do it
in there.


Sleepy Wombat
QUOTE
What does the use Flat Toolbars option mean?

Always ticked ? Never looked at it though and the help conviently skips those two simple explanations....
I hazard to guess that it would have to do with that the icon menu would not be animated (ie not show a button push) but i am just guessing....
QUOTE
How do others to L, LL, H, & HH alarms on analogues, in the PLC?

You could certainly do it in CX-Supervisor ... to make it adjustable from CX-Supervisor you would need to create a non volitile memory points for the LL L H HH values and then create individual alarm points for each LL L H HH and in the expression have the anlaogue point compared to the memory point etc... ie TankLevel > TankHH


scottmurphy
QUOTE
How do others to L, LL, H, & HH alarms on analogues, in the PLC?
You could certainly do it in CX-Supervisor ... to make it adjustable from CX-Supervisor you would need to create a non volitile memory points for the LL L H HH values and then create individual alarm points for each LL L H HH and in the expression have the anlaogue point compared to the memory point etc... ie TankLevel > TankHH


This is how I am currently doing it, I have a common alarm script, and am using arrays, but I am calling
the script every 10 seconds, I think that it would be better perhaps to do it on an event, rather
than in a sub that is executed every 10 seconds?
Sleepy Wombat
If you do if for each alarm you don;t need a script... a bit more work probably though
plus it should be updated based on the point update...
scottmurphy
QUOTE(Sleepy Wombat @ Aug 21 2007, 11:53 PM) [snapback]58138[/snapback]

If you do if for each alarm you don;t need a script... a bit more work probably though
plus it should be updated based on the point update...


Yeah, I did look at this option, probably better than running the script continuously. I will look
at this option, not too much more work, can do it in excel.




This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.