Specifications

175/201
BscSetEServerMode
FUNCTION: Sets the communication parameters for Ethernet Server function.
FORMAT: _declspec( dllexport )short APIENTRY BscSetEServerMode(short nCid,
char FAR *IPaddr, short Mode);
ARGUMENTS: IN(Transfer)
nCid Communication handler ID number
IPaddr IP address of receiver
Mode Server communication mode 1: Server mode, -1: Exclusive mode
OUT(Return)
None
Return Value
0: Error
1: Normal completion
REMARKS: Restrictions
DCI function is not supported with Ethernet Server function communication.
The function is only available for communication with the NX100.
Call Condition
Before calling this function, it is necessary to get the communication handler of the serial port with
BscOpen
function. After calling this function, communications can be done using the BscConnect
function.
Mode Specification
This function specifies the Ethernet Server mode. The following modes are available:
Server Mode:
The network connection between the controller and application is ended after each command.
Because of this, multiple applications can communicate simultaneously to the same controller via the
network connection.
Exclusive Mode:
The network connection with the controller is exclusive to a single application. After the
BscConnect
function is called, the network connection is maintained until the BscDisConnect
function is called.
Because the differences between these network connection modes are processed inside
MOTOCOM32, it is not necessary to make any change to the connection method on application side,
other than to appoint the mode with this function.