X hits on this document

119 views

0 shares

0 downloads

0 comments

26 / 37

MODBUS Communications Driver - Functions

KeyPort: Get/Set Hardware Key port

SYNOPSIS

status

Return Code

Integer

keyport

Hardware Key Port

Integer

short status = MB GetKeyport(short *keyport); short status = MB SetKeyport(short keyport); _ _

DESCRIPTION

By default, the Driver assumes that the Hardware Key is located on LPT1. However, you can tell the Driver to look for the Key on another parallel printer port with this command. keyport selects the port where the Key is located and can range from 1 (for LPT1) to the highest port number supported by your system (usually 3).

EXAMPLE

// Select LPT2 for Hardware Key MB SetKeyport(2);

_

Page 18

June 6, 1998

Revision 2.210

Document info
Document views119
Page views121
Page last viewedWed Jan 18 07:04:09 UTC 2017
Pages37
Paragraphs781
Words6172

Comments