Welcome, Guest
Username: Password: Remember me

TOPIC: Motion Control USBIO

Re:Motion Control USBIO 13 years 10 months ago #785

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hello Dan,

As far as I can see, the configuration is ok.

Where do you see the IO Stalled Io read error ?

Please check that other has rw premission on the usbio device before starting proview. If you have set this by hand, it will be lost when restarting Proview as the driver creates a new device.

Also check the errorcounts and status attributes of the rack and card object.

/Claes
The administrator has disabled public write access.

Re:Motion Control USBIO 13 years 10 months ago #786

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
The IO Stalled and IO read error are displayed on the runtime monitor (picture included). The usbio other section is read write before proview is started.

The Rack status is 5 and the card status is 24 with error count of 102.

Dan



Attachment Screenshot_dcarr_desktop_Runtime_Monitor.zip not found

Attachments:
The administrator has disabled public write access.

Re:Motion Control USBIO 13 years 10 months ago #787

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi,

I found a configuration error after all. You have to state the serial number of the usbio board, which is written somewhere on the board, into the Address attribute of the card object.

/Claes
The administrator has disabled public write access.

Re:Motion Control USBIO 13 years 10 months ago #788

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Thank you for that the error seems to be gone. I have managed to get an output so everything else should be fine. In another post I asked about the constants being a problem, I created a file in /usr/local/pwrp/processcontrol/src/cnf/pwp_alias.dat with the constants. As an example one of them is:

dcarr-desktop_setvalp TempControl-1VConst.ActualValue = 1
The administrator has disabled public write access.

Re:Motion Control USBIO 13 years 10 months ago #797

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Dan,

There where some other things I noticed when I studied the configuration. You should set a priority in the PlcThread object, usually a value > 20, and I would also advise you to activate the usbio watchdog by setting a watchdog time in the card object, when you have your system up and running.

/Claes
The administrator has disabled public write access.

Re:Motion Control USBIO 13 years 10 months ago #798

  • robert
  • robert's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 178
  • Karma: 7
Hi Dan,

For the plc to be able to run with real time priority it is needed that root is the owner of the executable and the s-bit should be set.

/Robert
The administrator has disabled public write access.
Time to create page: 8.003 seconds