MODBUS Communications Driver - Functions
KeyPort: Get/Set Hardware Key port
Hardware Key Port
short status = MB GetKeyport(short *keyport); short status = MB SetKeyport(short keyport); _ _
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).
// Select LPT2 for Hardware Key MB SetKeyport(2);
June 6, 1998