Specifications

168/201
BscOpen
FUNCTION: Gets a communication handler.
FORMAT: _declspec( dllexport ) short APIENTRY BscOpen(char *path,short mode);
ARGUMENTS: IN(Transfer)
*path Communication current directory storage pointer
mode Communication type:
1 (=0×01): serial port,
16 (=0×10): Ethernet
256 (=0×100): Ethernet Server
OUT(Return)
None
Return Value
-1:Acquisition Failure
Others:Communication handler ID number
REMARKS: Call Condition
By calling the BscSetCom function (serial port) or BscSetEther (Ethernet) or BscSetEServerMode
(Ethernet Server) and BscConnect
function after calling this function, communications can be started.
Type of Communications
Only 1 (=1×01): serial port or 16 (=0×10): Ethernet or 256 (=0×100): Ethernet Server can be used.
For any other values, an error occurs.