beautypg.com

Read version – Sensoray 417 User Manual

Page 25

background image

Instruction Manual

24

Read Version

This command returns the coprocessor firmware version number, times 100. The version number
is printed on the EPROM device that is plugged into the coprocessor board.

COMMAND: (224), (5), (0)

RESPONSE:

(Version_MSB), (Version_LSB)

By means of this command, the host can automatically determine any enhanced coprocessor func-
tions that may be present in future firmware releases.

VB Code Example:

‘******************************************************************

‘ This function returns the coprocessor firmware version number.

‘******************************************************************

Function GetVersion!(BasePort As Integer)

Call SendByte(BasePort, 224)

Call SendByte(BasePort, 5)

Call SendByte(BasePort, 0)

GetVersion = ReadWord(BasePort) / 100.0

End Function

‘******************************************************************

‘ Fetch the coprocessor firmware version number.

‘******************************************************************

Dim Version As Single

Version = GetVersion(BaseAdrs)