Network control block (ncb) return codes – Schneider Electric 174 CEV User Manual
Page 82

NCB Return Codes
80
8.1
Network Control Block (NCB) Return Codes
The bridge returns the following codes into the NCB_RETCODE field. Note that
some application programs such as Modsoft may not map these codes to the
correct error message.
ERR_success 0
/* NCB command completed normally */
ERR_bad_buffer_length 1
/* Bad send or status buffer size */
ERR_invalid 3
/* invalid NetBIOS command */
ERR_timeout 5
/* Command time-out has expired */
ERR_buffer_too_small 6
/* Receive buffer not big enough */
ERR_bad_session_num 8
/* Bad value in NCB_LSN */
ERR_no_RAM 9
/* LAN card doesn’t have enough memory*/
ERR_session_closed 0xa
/* This session is closed */
ERR_cancel 0xb
/* Command has been closed */
ERR_dup_local_name 0xd
/* Name already exists for this PC */
ERR_name_table_full 0xe
/* Local name table is full */
ERR_active_session 0xf
/* Can’t delete name - used in session*/
ERR_sess_table_full 0x11
/* Local session table is full */
ERR_no_listen 0x12
/* Remote PC not listening for call */
ERR_bad_name_num 0x13
/* Bad value in NCB_NUM field */
ERR_no_answer 0x14
/* No answer to CALL or no such remote*/
ERR_no_local_name 0x15
/* No such name in local name table */
ERR_duplicate_name 0x16
/* Name is in use elsewhere on net */
ERR_bad_delete 0x17
/* Name incorrectly deleted */
ERR_abnormal_end 0x18
/* Session aborted abnormally */
ERR_name_error 0x19
/* 2 or more identical names in use! */
ERR_bad_packet 0x1a
/* Bad NetBIOS packet on network */
ERR_card_busy 0x21
/* network card is busy */
ERR_too_many_cmds 0x22
/* Too many NCB commands queued */
ERR_bad_card_num 0x23
/* bad NCB_LANA_NUM - must be 0 */
ERR_cancel_done 0x24
/* command finished while cancelling */
ERR_no_cancel 0x26
/* Command can’t be cancelled */
ERR_busy 0xff
/* Still processing command */