Welcome, Guest
Username: Password: Remember me

TOPIC: Motion Control USBIO

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

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Hi Claes,

This seems to have help with the lining problem. I have tried to run the program but there are issues coming at runtime which are stating the the IO stalled IO read Error. Do you know what could be causing this. There are still no outputs on the AO channels or the DO channels. This is the output of the start-up, build and run. It goes into IO Stall IO read error before I can go into the user interface. I have then restarted it but this does not give any output on the USB I/O.
[code:1]Setting base /usr/pwr47
pwrp@dcarr-desktop:~$ su
Password:
root@dcarr-desktop:/home/pwrp# chmod a+rw /dev/usbio0
root@dcarr-desktop:/home/pwrp# exit
exit
pwrp@dcarr-desktop:~$ pwra
Open processcontrol
args: processcontrol pwrp pwrp
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Welcome to
processcontrol V4.7

Revision history
2010-05-19 pwrp Project created
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
-- Processing line: 56
-- Building volume directory
-- Opening volume 'VolProcesscontrol'
Berkeley DB 4.7.25: (May 15, 2008)
info get: 0
Build node dcarr_desktop
-- Building archive for volume: 000_001_001_001
-- Archive built for volume: 000_001_001_001

-- Working with load file volume 'VolProcesscontrol'...
-- Open file...
-- Successfully created load file for volume 'VolProcesscontrol'
-- 346 objects with a total body size of 77920 bytes were written to new file.
-- Creating bootfile for node dcarr-desktop
plc_dcarr-desktop_0999_00091
-- Plc thread generated priority 0, scantime 1.00000 s, 3 plcpgm's
-- Plc process compiled for x86_64_linux optimized -O3 Dummy
-- Plc program linked for x86_64_linux node plc_dcarr-desktop_0999

Proview/R Version V4.7.0 for Linux on Unknown Hardware
Copyright � 26-MAR-2010 12:00:00 by SSAB Oxel�sund AB

Proview/R is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License.

This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

PROVIEW/R Process Environment

I Reading Boot file /usr/local/pwrp/processcontrol/bld/common/load/ld_boot_dcarr-desktop_0999.dat
I Created at 26-MAY-2010 11:40:26.65 for project: processcontrol
I This node vill run PLC file: plc_dcarr-desktop_0999_00091
I This node has node identity 0.1.1.1 (65793)
I Reading Node file /usr/local/pwrp/processcontrol/bld/common/load/ld_node_dcarr-desktop_0999.dat
I Reading volume file /usr/local/pwrp/processcontrol/bld/common/load/volprocesscontrol.dbs
I Created 26-MAY-2010 11:40:26.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/rt.dbs
I Created 27-MAR-2010 20:56:57.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrs.dbs
I Created 27-MAR-2010 20:56:52.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrb.dbs
I Created 27-MAR-2010 20:56:56.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/basecomponent.dbs
I Created 27-MAR-2010 21:01:29.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/profibus.dbs
I Created 27-MAR-2010 21:00:38.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/otherio.dbs
I Created 27-MAR-2010 21:14:13.00
I Mapped /tmp/pwr_db_lock_999, base: ef470000, size: 16
I Objects : 39235 : 16007880 bytes
I Volumes : 30 : 17040 bytes
I Classes : 300 : 55200 bytes
I Nodes : 10 : 8400 bytes
I Mount servers: 100 : 14400 bytes
I Alias servers: 50 : 4400 bytes
I Sub servers : 500 : 84000 bytes
I Sub clients : 2000 : 464000 bytes
I San servers : 200 : 25600 bytes
I Cache : 10000
I Cached classes: 300 : 220800 bytes
I Cached class volumes: 150 : 12000 bytes
I Sub class objects: 300 : 62400 bytes
I Pool isize : 16976120, esize: 2122015
I Rtdb isize : 3662856, esize: 457857
I Mapped /tmp/pwr_pool_999, base: ef45b000, size: 82024
I Mapped /tmp/pwr_po0001_999, base: ed00e000, size: 16976120
I Mapped /tmp/pwr_rtdb_999, base: ef417000, size: 82024
I Mapped /tmp/pwr_rt0001_999, base: ecc8f000, size: 3662856
I Mapped /tmp/pwr_po0002_999, base: ecc8e000, size: 2736
I Reading volume file /usr/local/pwrp/processcontrol/bld/common/load/volprocesscontrol.dbs
I Loading volume VolProcesscontrol ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/rt.dbs
I Loading volume rt ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrs.dbs
I Loading volume pwrs ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrb.dbs
I Loading volume pwrb ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/basecomponent.dbs
I Loading volume BaseComponent ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/profibus.dbs
I Loading volume Profibus ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/otherio.dbs
I Loading volume OtherIO ()...
I Created pwrNode, oid: _O1.1.1.1:2147483649
I Setting log file to: /usr/local/pwrp/processcontrol/bld/common/log/pwr_dcarr-desktop.log
E ini_SetAttribute, %NONAME-W-NOMSG, Message number 00000000
I Mapped /tmp/pwr_qdb_lock_999, base: ecc8d000, size: 16
I Qcom pool isize : 600000, esize: 300000
I Mapped /tmp/pwr_qpool_999, base: ecc78000, size: 82024
I Mapped /tmp/pwr_qp0001_999, base: ecbe5000, size: 600000
I Mapped /tmp/pwr_qp0002_999, base: ecbe4000, size: 744
I BACKUP loading information from $pwrp_load/pwr_backup.bck
I Starting pwr_neth, file: rt_neth, prio: 18
I Started pwr_neth_999, prio: 18, pid: 6544
file: rt_neth
I Starting pwr_qmon, file: rt_qmon, prio: 19
I Started pwr_qmon_999, prio: 19, pid: 6545
file: rt_qmon
I Starting pwr_nacp, file: rt_neth_acp, prio: 17
I Started pwr_nacp_999, prio: 17, pid: 6546
file: rt_neth_acp
I Starting pwr_io, file: rt_io_comm, prio: 17
I Started pwr_io_999, prio: 17, pid: 6547
file: rt_io_comm
I Starting pwr_tmon, file: rt_tmon, prio: 17
I Started pwr_tmon_999, prio: 17, pid: 6548
file: rt_tmon
I Starting pwr_emon, file: rt_emon, prio: 17
I Started pwr_emon_999, prio: 17, pid: 6549
file: rt_emon
I Starting pwr_alim, file: rt_alimserver, prio: 17
I Started pwr_alim_999, prio: 17, pid: 6550
file: rt_alimserver
I Starting pwr_bck, file: rt_bck, prio: 16
I Started pwr_bck_999, prio: 16, pid: 6551
file: rt_bck
I Starting pwr_linksup, file: rt_linksup, prio: 16
I Started pwr_linksup_999, prio: 16, pid: 6552
file: rt_linksup
I Starting pwr_trend, file: rt_trend, prio: 15
I Started pwr_trend_999, prio: 15, pid: 6553
file: rt_trend
I Starting pwr_fast, file: rt_fast, prio: 15
I Started pwr_fast_999, prio: 15, pid: 6554
file: rt_fast
I Starting pwr_remh, file: rs_remotehandler, prio: 5
I Started pwr_remh_999, prio: 5, pid: 6555
file: rs_remotehandler
I Starting pwr_remlog, file: rs_remote_logg, prio: 5
I Started pwr_remlog_999, prio: 5, pid: 6556
file: rs_remote_logg
I Starting pwr_elog, file: rt_elog, prio: 15
I Started pwr_elog_999, prio: 15, pid: 6557
file: rt_elog
I Starting pwr_sysmon, file: rt_sysmon, prio: 16
I Started pwr_sysmon_999, prio: 16, pid: 6558
file: rt_sysmon
I Starting pwr_webmon, file: rt_webmon.sh, prio: 15
I Started pwr_webmon_999, prio: 15, pid: 6559
file: rt_webmon.sh
I Starting pwr_webmonmh, file: rt_webmonmh.sh, prio: 15
I Started pwr_webmonmh_999, prio: 15, pid: 6560
file: rt_webmonmh.sh
I Starting pwr_webmonelog, file: rt_webmonelog.sh, prio: 15
I Started pwr_webmonelog_999, prio: 15, pid: 6561
file: rt_webmonelog.sh
I Starting pwr_opc_server, file: opc_server, prio: 15
I Started pwr_opc_server_999, prio: 15, pid: 6562
file: opc_server
I Starting pwr_statussrv, file: rt_statussrv, prio: 15
I Started pwr_statussrv_999, prio: 15, pid: 6563
file: rt_statussrv
I Starting pwr_sevhistmon, file: rt_sevhistmon, prio: 15
I Started pwr_sevhistmon_999, prio: 15, pid: 6564
file: rt_sevhistmon
I Starting pwr_sev_server, file: sev_server, prio: 15
I Started pwr_sev_server_999, prio: 15, pid: 6565
file: sev_server
/usr/pwr47/os_linux/hw_x86_64/exp/exe/rt_webmon.sh: line 24: /usr/local//bin/java: No such file or directory
/usr/pwr47/os_linux/hw_x86_64/exp/exe/rt_webmonmh.sh: line 23: /usr/local//bin/java: No such file or directory
/usr/pwr47/os_linux/hw_x86_64/exp/exe/rt_webmonelog.sh: line 24: /usr/local//bin/java: No such file or directory
sched_setscheduler: Operation not permitted
failed to set pid 6544's policy
sched_setscheduler: Operation not permitted
failed to set pid 6545's policy
sched_setscheduler: Operation not permitted
failed to set pid 6546's policy
sched_setscheduler: Operation not permitted
failed to set pid 6547's policy
I No fast configuration, using base frequency 10 Hz
I No sysmon configuration, using base frequency 1 Hz
sched_setscheduler: Operation not permitted
failed to set pid 6548's policy
sched_setscheduler: Operation not permitted
failed to set pid 6549's policy
sched_setscheduler: Operation not permitted
failed to set pid 6550's policy
sched_setscheduler: Operation not permitted
failed to set pid 6551's policy
sched_setscheduler: Operation not permitted
failed to set pid 6552's policy
sched_setscheduler: Operation not permitted
failed to set pid 6553's policy
sched_setscheduler: Operation not permitted
failed to set pid 6554's policy
sched_setscheduler: Operation not permitted
failed to set pid 6555's policy
sched_setscheduler: Operation not permitted
failed to set pid 6556's policy
sched_setscheduler: Operation not permitted
failed to set pid 6557's policy
sched_setscheduler: Operation not permitted
failed to set pid 6558's policy
sched_setscheduler: Operation not permitted
failed to set pid 6559's policy
sched_setscheduler: Operation not permitted
failed to set pid 6560's policy
sched_setscheduler: Operation not permitted
failed to set pid 6561's policy
sched_setscheduler: Operation not permitted
failed to set pid 6562's policy
sched_setscheduler: Operation not permitted
failed to set pid 6563's policy
sched_setscheduler: Operation not permitted
failed to set pid 6564's policy
sched_setscheduler: Operation not permitted
failed to set pid 6565's policy
I Adding application. aix: 1
I Starting pwr_plc, file: plc_dcarr-desktop_0999_00091, prio: 5
I Started pwr_plc_999_0, prio: 5, pid: 6617
file: plc_dcarr-desktop_0999_00091
I Process pwr_linksup_999 exited with status 0
I Process pwr_trend_999 exited with status 0
I Process pwr_remh_999 exited with status 256
I Process pwr_elog_999 exited with status 256
I Process pwr_webmon_999 exited with status 32512
I Process pwr_webmonmh_999 exited with status 32512
I Process pwr_webmonelog_999 exited with status 32512
I Process pwr_opc_server_999 exited with status 8704
I Process pwr_sevhistmon_999 exited with status 0
I Process pwr_sev_server_999 exited with status 0

Proview/R Version V4.7.0 for Linux on Unknown Hardware
Copyright � 26-MAR-2010 12:00:00 by SSAB Oxel�sund AB

Proview/R is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License.

This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

PROVIEW/R Process Environment

I Adding application. aix: 22
I argv[0]: 6 \"rt_ini\"
I argv[1]: 2 \"-r\"
I Reading Boot file /usr/local/pwrp/processcontrol/bld/common/load/ld_boot_dcarr-desktop_0999.dat
I Reading Boot file /usr/local/pwrp/processcontrol/bld/common/load/ld_boot_dcarr-desktop_0999.dat
I Created at 26-MAY-2010 11:40:26.65 for project: processcontrol
I Created at 26-MAY-2010 11:40:26.65 for project: processcontrol
I This node vill run PLC file: plc_dcarr-desktop_0999_00091
I This node vill run PLC file: plc_dcarr-desktop_0999_00091
I This node has node identity 0.1.1.1 (65793)
I This node has node identity 0.1.1.1 (65793)
I Reading volume file /usr/local/pwrp/processcontrol/bld/common/load/volprocesscontrol.dbs
I Reading volume file /usr/local/pwrp/processcontrol/bld/common/load/volprocesscontrol.dbs
I Created 26-MAY-2010 11:40:26.00
I Created 26-MAY-2010 11:40:26.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/rt.dbs
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/rt.dbs
I Created 27-MAR-2010 20:56:57.00
I Created 27-MAR-2010 20:56:57.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrs.dbs
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrs.dbs
I Created 27-MAR-2010 20:56:52.00
I Created 27-MAR-2010 20:56:52.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrb.dbs
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrb.dbs
I Created 27-MAR-2010 20:56:56.00
I Created 27-MAR-2010 20:56:56.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/basecomponent.dbs
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/basecomponent.dbs
I Created 27-MAR-2010 21:01:29.00
I Created 27-MAR-2010 21:01:29.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/profibus.dbs
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/profibus.dbs
I Created 27-MAR-2010 21:00:38.00
I Created 27-MAR-2010 21:00:38.00
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/otherio.dbs
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/otherio.dbs
I Created 27-MAR-2010 21:14:13.00
I Created 27-MAR-2010 21:14:13.00
I Reading volume file /usr/local/pwrp/processcontrol/bld/common/load/volprocesscontrol.dbs
I Loading volume VolProcesscontrol ()...
I Reading volume file /usr/local/pwrp/processcontrol/bld/common/load/volprocesscontrol.dbs
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/rt.dbs
I Loading volume VolProcesscontrol ()...
I Loading volume rt ()...
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/rt.dbs
I Loading volume rt ()...
E Section order
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrs.dbs
I Loading volume pwrs ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrs.dbs
I Loading volume pwrs ()...
E Section order
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrb.dbs
I Loading volume pwrb ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/pwrb.dbs
I Loading volume pwrb ()...
E Section order
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/basecomponent.dbs
I Loading volume BaseComponent ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/basecomponent.dbs
I Loading volume BaseComponent ()...
E Section order
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/profibus.dbs
I Loading volume Profibus ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/profibus.dbs
I Loading volume Profibus ()...
E Section order
E Section order
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/otherio.dbs
I Loading volume OtherIO ()...
I Reading volume file /usr/pwr47/os_linux/hw_x86_64/exp/load/otherio.dbs
I Loading volume OtherIO ()...
E Section order
E Section order
I Starting pwr_plc, file: plc_dcarr-desktop_0999_00091, prio: 5
I Starting pwr_plc, file: plc_dcarr-desktop_0999_00091, prio: 5
I Started pwr_plc_999_1, prio: 5, pid: 6624
file: plc_dcarr-desktop_0999_00091
I Entering time critical period, stopping old PLC
I Entering time critical period, stopping old PLC
I Time critical period over, new PLC is running
I Time critical period over, new PLC is running
I IO stall time: 0:00:00.00
I No fast configuration, using base frequency 10 Hz
I No sysmon configuration, using base frequency 1 Hz
I IO stall time: 0:00:00.00
I Process pwr_plc_999_0 exited with status 0
[/code:1]

Do you have any pointers on how this can be addressed.

Regards
Dan
The administrator has disabled public write access.

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

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

It seems as if the init methods of the usbio objects are not called as there is no messages from them in the log file.

Check in the configurator that IOReadWriteFlag is 1 and IOSimulFlag is 0 in the IOHandler object in the node hierarchy. Also check that the Process attribute it set to Plc in the MotionControl_USB and MotionControl_USBIO objects, and that there is a valid PlcThread object in the thread attributes. When Proview runtime is started, check if the plc thread is running by looking at the loop counter i the PlcThread object.

/Claes
The administrator has disabled public write access.

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

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
hello,

The IOReadWriteFlag is set to 1 and the IOSimulFlag is set to 0. The loopcount is running in the PLC thread. The attribute for the card and rack are both PLC.

I have three plc programs running on the same thread, and their priorities are changed to 0, 1 and 2 so that the execution order is set.

I don't have the full circuit attached to the usb I/O pins at present but don't think that should make a difference as the device will just see 0v on the pins.

Is there anything else that I can send you that may help to diagnose the problem?

Dan
The administrator has disabled public write access.

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

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 501
  • Karma: 133
Take a look at IOReadWriteFlag in runtime also. Is it still ?
If you dump your data base to a text file and send it to me I will have a look at your configuration. Enter the command 'wb dump /out=t.wb_dmp\" in the rootvolume configurator.

/Claes
The administrator has disabled public write access.

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

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Thank you so much for your help and time it is appreciated. I have had a look at the IOReadWriteFlag and I think it does go to 0 when it comes with the error. I have attached the dump file of the project .

Dan
The administrator has disabled public write access.

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

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Sorry here is the file

Attachment processcontrol.zip not found

Attachments:
The administrator has disabled public write access.
Time to create page: 8.628 seconds