Velleman К8063 User Manual

Page 12

Advertising
background image

12

Serial port connection : Connect the pin marked ‘RS232’ to pins 2&3 of the 9P SUBD connector.
Connect the pin marked ‘GND’ to pin 5 of the 9P SUBD connector. We have successfully bridged up to
50m between the serial port and the last digit, using standard UTP (twisted pair) cable. Make sure to
remove resistor R2 (terminator) from all K8063 units except the last unit (unit n in the example above).

Controlling one or more K8063 via a computer:
In order to display information on the K8063, you need to send it a correct data string. The data string
consists of 5 bytes :

Byte 1 : chr$(13)

(letting the K8063 know that data will come in)

Byte 2 : address (0 to 255)
(determines the individual K8063 you want to access. Note: Address ‘0’ accesses all connected K8063)

Byte3 : command
(A # of commands are available, to control the various functions of the K8063, see list of commands)

Byte4 : parameter
(Most commands require a parameter. See list of commands)

Byte5 : checksum
Two-compliment of the sum of the previous 4 bytes
256 - (Byte1+ Byte2 + Byte3 + Byte4) MOD 256

Hook-up

Advertising