Bosch 6000 User's Guide Page 70

  • Download
  • Add to my manuals
  • Print
  • Page
    / 268
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 69
Chapter 2. Communication
55
DLL Functions for
Visual Basic
(continued)
DLL Function: SendAT6400File
Description: Downloads a file of 6000 Series commands to a 6000 series product (one line at a time). Before
downloading the file, ERRDEF and ERROK are set to zero. After downloading the file, ERRDEF
and ERROK are set to their default values.
Syntax: Declare Function SendAT6400File% Lib "______.dll" (ByVal handle%, ByVal address%,
ByVal irqnum%, ByVal filename$, ByVal options$)
“handle”........ Parent window handle for SendAT6400File's message boxes. For no parent,
set to zero.
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8).
“irqnum”
.......
Set to zero (used internally by Motion Architect for interrupt support).
“filename”..... Pointer to filename of file that is to be sent to the 6000 product.
“options”....... Pointer to options string. Set to null string ("") to get the message boxes.
Set to “/quiet” to keep SendAT6400File from displaying the hour glass cursor
and message boxes.
Return Value: “-1” indicates that the operating system is not loaded.
“-2” indicates that the function has timed out (see SetTimeout).
“-3” indicates that the file (“filename”) could not be opened.
SendAT6400File also returns the number of bytes sent to the 6000 product.
DLL Function: GetFastStatus
Description: Fetches Blocks 1 through 6 of the 6000 fast status area. See page 56 for fast status structure.
Syntax: Declare Function GetFastStatus% Lib "______.dll" (ByVal address%, faststatus As
AT6400INFO)
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8).
“faststatus”... Fast status structure.
See page 56 for fast status structure (defined as “AT6400INFO”).
Return Value: “1” indicates no errors.
“-1” indicates that the operating system is not loaded.
“-2” indicates that the function has timed out (see SetTimeout).
GetFastStatus also returns the number of bytes sent to the 6000 product.
DLL Function: GetExFastStatus
Description: SERVOS ONLY Fetches Blocks 7 and 8 of the 6000 fast status area.
Syntax: Declare Function GetExFastStatus% Lib "______.dll" (ByVal address%, ByVal block7%,
ByVal block8%, faststatus As AT6400INFO)
“address”...... Board address of the 6000 controller card (must be evenly divisible by 8).
“block7”........ Integer code representing data type in Block 7 of the fast status area (see enum
exfaststatus in WIN6400.H).
“block8”........ Integer code representing data type in Block 8 of the fast status area (see enum
exfaststatus in WIN6400.H).
“faststatus”... Fast status structure.
See page 56 for fast status structure (defined as “AT6400INFO”).
Return Value: “1” indicates no errors.
“-1” indicates that the operating system is not loaded.
“-2” indicates that the function has timed out (see SetTimeout).
GetExFastStatus also returns the number of bytes sent to the 6000 product.
Page view 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 267 268

Comments to this Manuals

No comments