Bosch 6000 User's Guide Page 68

  • Download
  • Add to my manuals
  • Print
  • Page
    / 268
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 67
Chapter 2. Communication
53
DLL Functions for
Visual Basic
(continued)
DLL Function: SendAT6400Block
Description: Send a block of up to 256 characters to a 6000 bus-based product. SendAT6400Block will wait
until the 6000 controller is ready before sending. By default SendAT6400 will wait forever until
the 6000 controller is ready. SetTimeout allows control over this waiting period.
Syntax: For WIN6400.DLL and NT6000.DLL:
Declare Function SendAT6400Block% Lib "______.dll" (ByVal address%, ByVal cmd$,
ByVal irqnum%)
For WN956000.DLL:
Declare Function SendAT6400Block% Lib "wn956000.dll" (ByVal address%, ByVal cmd$)
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8). The
default address on the 6000 controller (selected with DIP switches) is 768; to
change the address, refer to the product's
Installation Guide
.
“cmd”
............
Pointer to a null-terminated string that contains one or more 6000 series
commands. Commands must be separated with a carriage return or colon. The
buffer that
cmd
points to should be 258 bytes in size.
“irqnum”....... Set to zero (used internally by Motion Architect for interrupt support).
Return Value: “-1” indicates that the operating system is not loaded.
“-2” indicates that the function has timed out (see SetTimeout).
SendAT6400Block also returns the number of bytes sent to the 6000 product.
DLL Function: RecvAT6400Block
Description: Poll the controller for any response it may have in its output buffer. Fetches a block of up to 256
characters (block is terminated with a null).
Syntax: For WIN6400.DLL and NT6000.DLL:
Declare Function RecvAT6400Block% Lib "______.dll" (ByVal address%, ByVal resp$,
ByVal irqnum%)
For WN956000.DLL:
Declare Function RecvAT6400Block% Lib "wn956000.dll" (ByVal address%, ByVal resp$)
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8).
“resp”............ Pointer to a 258 byte response buffer.
“irqnum”....... Set to zero (used internally by Motion Architect for interrupt support).
Return Value: “-1” indicates that the operating system is not loaded.
“-2” indicates that the function has timed out (see SetTimeout).
RecvAT6400Block also returns the number of bytes received from the 6000 product.
DLL Function: osload
Description: Download the operating system to the controller.
Syntax: Declare Function osload% Lib "______.dll" (ByVal address%, ByVal options$, ByVal
handle%)
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8).
“options”....... Pointer to a string of operating system loader options:
“at6400.ops” downloads AT6n00 operating system (same operating system
for the AT6200, AT6400, OEM-AT6200, and OEM-AT6400)
“at6250.ops” downloads AT6250 operating system
“at6450.ops” downloads AT6450 operating system
“/port=768” allows operating system to be sent to a particular address
“/quiet” keeps osload form displaying the meter dialog and error messages
“handle”........ Parent window handle for osload's meter dialog and message boxes. For no
parent, set to zero.
Return Value: “0” indicates that the operating system downloaded successfully.
Value greater than 0 for error conditions (see enum osload_errors in WIN6400.H).
DLL Function: IsOSLoaded
Description: Determine if the operating system has been loaded to the 6000 controller.
Syntax: Declare Function IsOSLoaded% Lib "______.dll" (ByVal address%)
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8).
Return Value: Returns TRUE (non-zero value) if the 6000 operating system has been loaded. Otherwise,
returns FALSE (“0”).
Page view 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 267 268

Comments to this Manuals

No comments