[MAT logo][Prev][Up][Next]

Pontech sv203b

Introduction

This is a Python module that interfaces MatPLC with the sv203b servo board from Pontech.
The board uses an RS232 serial interface to comunicate with a PC using a ASCII protocol.
The module was developed as part of the MatPLC Live-Demo, it is used to move the robot arm.

Functions

Class name: sv203b

sv203b class methods:

open(port, speed, rtscts, timeout)
Opens the serial port. It needs to be called before anything else can be done with the module.

close()
Closes the serial port.

move(motor, position)
Command to move a servomotor to a certain absolute position. Motor is a number from 0 to 5.

incr(motor, position)
Same as move but using a relative position.

pos(motor)
Returns the selected servo motor current absolute position.

[Prev][Up][Next]

$Date: 2006/12/26 13:23:27 $