beautypg.com

Clickserialportconnect – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 178

background image

APPENDIX

• CLICK 500 DEVELOPER GUIDE

177

ClickSerialPortConnect

Connect a physical port to a virtual port so multiple physical ports can be treated as a group.

˽

LIBRARY – click500serial.lib

˽

SYNTAX –

int ClickSerialPortConnect( int virtualPortId,
int physicalPortId );

˽

PARAMETER1 – The virtual port to connect to. Valid Virtual Ports: V1, V2, V3, V4

˽

PARAMETER2 – The Physical port to be connected. Valid Physical Ports: _485TOP,

_485TBUS, _232TOP, _232FRONT

˽

RETURN VALUE – 0 - Connection successful/1 - Invalid virtual port/2 - Invalid physi-

cal port