Wednesday, May 30, 2012

May 29 4DIAC on CBC BotBall

Thanks to KIPR for providing the equipment to perform the following test IEC 61499 application mapped to 3 devices over WLAN while visiting.
Finally a truly distributed application for demonstrating a distributed standard.
CBC being Linux based made this simplier.


Test Case:
PC has START/STOP push buttons via  IN_EVENTs. When START is pressed, a touch sensor on CBC 1 is allowed to work. When touch sensor is pressed a motor  CBC1 runs and the action is mirrored on CBC2 by a motor also running. Release and both motor on CBC1 and CBC2 stop. If STOP on the PC is pressed then the touch sensor on CBC1 has no affect. Additionally a Servo motor moved on CBC 1.
Additional test: No PC: Download application and turn off PC. Touch turns on a motor on both CBC 1 and CBC2.



Saturday, May 5, 2012

May 5 Robotic Arm app

The real task is to:

  • Arm Down
  • Claw Close (pick-up cup or other object)
  • Arm Up
  • Turn 
  • Claw Open (drop object)
  • Turn back (reset)

Currently this application is divided into 3 parts corresponding the 3 motor functions:

  1. UP/ DOWN robotic arm until Touch pressed 
  2. OPEN / CLOSE claw
  3. Turn RT/LT 
Extra E_DELAYs are used to simulate when another motor would be active.

1. 
UP/ DOWN robotic arm until Touch pressed :

2. OPEN / CLOSE claw = 3. Turn RT/LT   except for motor and led port #s

Claw Close, Stop, wait until needed again, Open, Stop
Turn  Right, Stop, wait until needed again,  Left,  Stop

Currently looking into if this is best as Composite FB or Sub-system.
The generalized version has the problem that both motor plus and motor minus end with motor stop, from the last event output its not clear if its from forward or backward.

May 5 64-bit= technical difficulties

May labs will be done with a press simulation. Posts about planned lab apps were to be posted  after the lab, but no reason to wait now.


Lab computers are 64-bit Win7. We have a driver that works, basically the standard usbserial driver labeled as ecos. However for the usb ethserial communication we have not found the right combination. Lots of others have had problems, but none found match ours close enough to help. Even the students labtops are now 64-bit.


If anyone reading this knows how to get the RXTX dlls and jar file working under Win7  64-bita please post a comment here or answer my StackOverflow question.  It appears to be the right combination of path and 32-bit or 64 bit driver, java, RXTX files, which we have not yet found.


Additionally a USB ethserial version of PUBLISH / SUBSCRIBE FBs has been started using the new layered communication in FORTE.