Datasheet

MotionControl USB I/O
Motion Control USB I/O is a device manufactured by Motion Control, www.motioncontrol.se. The
device is connected to the USB port on the pc. The unit contains 21 channels of different types,
divided into 3 ports, A, B and C. The first four channels (A1 – A4) are Digital outputs of relay type
for voltage up to 230 V. The next four channels (A5 – A8) are Digital inputs with optocouplers.
Next eight channels (B1 – B8) can either be configured as digital outputs, digital inputs or analog
inputs. The last 5 channels (C1 – C5) can be digital outputs or inputs, where C4 and C5 also can be
configured as analog outputs.
In Proview USB I/O is configured with a rackobject, OtherIO:MotionControl_USB, that is
positioned in the nodehierarchy under the $Node object, and a card object,
OtherIO:MotionControl_USBIO. Below the card object, channelobjects of the type that
corresponds to the configuration of the card, are placed.
The card has a watchdog the resets the outputs of the card, if the card is not written to within a
certain time.
For the moment, the driver can only handle one device.
Driver
Download and unback the tar-file for the driver.
> tar -xvzf usbio.tar.tz
Build the driver with make
> cd usbio/driver/linux-2.6
> make
Install the driver usbio.ko as root
> insmod usbio.ko
Allow all to read and write to the driver
> chmod a+rw /dev/usbio0
There is also an API to the driver with an archive, usbio/test/libusbio.a. Copy the archive to /usr/lib
or $pwrp_lib on the development station.
Rack object
MotonControl_USB
The rack object is placed under the $Node object in the node hierarchy. Process should be 1.
Connect the object to a plc thread by selecting a PlcThread object and activate Connect PlcThread
in the popup menu for the rack object.