没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
^1 SOFTWARE REFERENCE MANUAL
^2 PCOMM32PRO
^3 Communication Driver Set
^4 3A0-09WPRO-xSx2
^5 January 28, 2003
Single Source Machine Control Power // Flexibility // Ease of Use
21314 Lassen Street Chatsworth, CA 91311 // Tel. (818) 998-2095 Fax. (818) 998-7807 // www.deltatau.com
Copyright Information
© 2003 Delta Tau Data Systems, Inc. All rights reserved.
This document is furnished for the customers of Delta Tau Data Systems, Inc. Other uses are
unauthorized without written permission of Delta Tau Data Systems, Inc. Information contained
in this manual may be updated from time-to-time due to product improvements, etc., and may not
conform in every respect to former issues.
To report errors or inconsistencies, call or email:
Delta Tau Data Systems, Inc. Technical Support
Phone: (818) 717-5656
Fax: (818) 998-7807
Email: support@deltatau.com
Website: http://www.deltatau.com
Operating Conditions
All Delta Tau Data Systems, Inc. motion controller products, accessories, and amplifiers contain
static sensitive components that can be damaged by incorrect handling. When installing or
handling Delta Tau Data Systems, Inc. products, avoid contact with highly insulated materials.
Only qualified personnel should be allowed to handle this equipment.
In the case of industrial applications, we expect our products to be protected from hazardous or
conductive materials and/or environments that could cause harm to the controller by damaging
components or causing electrical shorts. When our products are used in an industrial
environment, install them into an industrial electrical cabinet or industrial PC to protect them
from excessive or corrosive moisture, abnormal ambient temperatures, and conductive materials.
If Delta Tau Data Systems, Inc. products are directly exposed to hazardous or conductive
materials and/or environments, we cannot guarantee their operation.
\
PComm 32 Pro Software Reference Manual
Table of Contents i
Table of Contents
INTRODUCTION TO USER MANUAL..................................................................................................................1
About PComm 32 Pro...............................................................................................................................................1
A Global View of the Library ...................................................................................................................................1
Supported Operating Systems ...................................................................................................................................2
Communication Modes .............................................................................................................................................2
Plug and Play Ports..............................................................................................................................................2
Non-plug and Play Ports ......................................................................................................................................2
GETTING STARTED.................................................................................................................................................3
Setting up Communications with PMAC..................................................................................................................3
Installing Pcomm 32 Pro...........................................................................................................................................3
Usage of PComm 32 Pro...........................................................................................................................................3
Linking the Code with the Driver .........................................................................................................................3
Initializing Communication ..................................................................................................................................4
PmacServer...........................................................................................................................................................5
Shutting Down Communication............................................................................................................................5
A Guide to Using ASCII Communication Functions.............................................................................................5
Common Problems Experienced Using ASCII Communications Functions.........................................................5
Thread-Safe ASCII Communications....................................................................................................................6
Error Handling - ASCII Communication and Other Functions............................................................................6
Int vs Long Data Type...........................................................................................................................................7
FEATURES..................................................................................................................................................................9
Using Interrupts.........................................................................................................................................................9
Send a Message to a Window ...............................................................................................................................9
Call a Function.....................................................................................................................................................9
Start a Thread Function........................................................................................................................................9
Set an Event ..........................................................................................................................................................9
Downloading to PMAC...........................................................................................................................................10
DPR FEATURES.......................................................................................................................................................11
A Global View of the DPR Support Functions .......................................................................................................11
Control Panel (Non-Turbo PMACs)...................................................................................................................11
Fixed Real Time Data buffer ..............................................................................................................................11
Fixed Background Data Buffer...........................................................................................................................11
Variable Background Data Buffer......................................................................................................................11
Binary Rotary Buffer...........................................................................................................................................12
Read/Write Functions.........................................................................................................................................12
Initialization /Shutdown..........................................................................................................................................12
Memory Organization/Correct Order of Initialization ............................................................................................12
Using the DPR Control Panel (Non-Turbo PMAC)................................................................................................13
Action Bits...........................................................................................................................................................14
Request Bits ........................................................................................................................................................14
Assigning a New Feedrate Override...................................................................................................................14
Feedrate Override Enable Bits...........................................................................................................................15
Using the DPR Real Time Fixed Data Buffer.........................................................................................................15
Startup/ShutDown...............................................................................................................................................15
Handshaking.......................................................................................................................................................15
Data Query Functions ........................................................................................................................................15
Using the DPR Real Time Fixed Data Buffer (Turbo)............................................................................................17
Startup/Shutdown................................................................................................................................................17
Handshaking.......................................................................................................................................................17
Data Query Functions ........................................................................................................................................17
Using the DPR Background Fixed Data Buffer ......................................................................................................18
Startup/Shutdown and Handshaking Functions..................................................................................................18
Data Query Functions ........................................................................................................................................19
PComm 32 Pro Software Reference Manual
ii Table of Contents
Logical Query Functions....................................................................................................................................19
Using the DPR Background Fixed Data Buffer (Turbo).........................................................................................20
Startup/Shutdown and Handshaking Functions..................................................................................................20
Data Query Functions ........................................................................................................................................20
Logical Query Functions....................................................................................................................................21
Using the DPR Variable Background Read/Write Data Buffer ..............................................................................22
Variable Read Data Buffer .................................................................................................................................22
Startup/Shutdown................................................................................................................................................23
Data Query Function Description......................................................................................................................23
Variable Write Data Buffer.................................................................................................................................25
Using the DPR Binary Rotary Motion Program Buffer ..........................................................................................26
Startup/Shutdown Functions...............................................................................................................................26
Conversion and Transfer Functions ...................................................................................................................26
PmacDPRRotBufChange() .................................................................................................................................26
PmacDPRRotBufRemove().................................................................................................................................27
PmacDPRRotBufClr() ........................................................................................................................................27
PmacDPRRotBuf()..............................................................................................................................................27
PmacDPRBufLast() ............................................................................................................................................27
Downloading Stuffing Functions ........................................................................................................................27
INTRODUCTION TO PROGRAMMER’S REFERENCE ..................................................................................29
Important Information about Method of Communication Being Used by PComm 32 Pro.....................................29
Maximum Number of Response Buffer Characters ................................................................................................29
INITIALIZATION, SHUTDOWN AND CONFIGURATION FUNCTIONS.....................................................31
OpenPmacDevice() .................................................................................................................................................31
ClosePmacDevice().................................................................................................................................................31
PmacSelect()............................................................................................................................................................31
LockPmac().............................................................................................................................................................32
ReleasePmac().........................................................................................................................................................32
PmacSetCriticaIVars().............................................................................................................................................32
PmacAbortDPRTest () ............................................................................................................................................33
PmacConfigure().....................................................................................................................................................33
PmacGetDpramAvailable().....................................................................................................................................33
PmacInBootStrapMode().........................................................................................................................................34
PmacDPRTest().......................................................................................................................................................34
PmacSERGetPort()..................................................................................................................................................34
ASCII COMMUNICATION FUNCTIONS............................................................................................................35
GetUSResponse(), USReadReady()........................................................................................................................35
PmacFlush() ............................................................................................................................................................35
PmacGetAsciiComm() ............................................................................................................................................36
PmacGetBufferA() ..................................................................................................................................................36
PmacGetControlResponseA(), PmacGetControlResponseExA() ............................................................................36
PmacGetLineA(), PmacGetLineExA()....................................................................................................................37
PmacGetResponseA(),PmacGetResponseExA().....................................................................................................38
PmacReadReady()...................................................................................................................................................38
PmacSendCharA()...................................................................................................................................................38
PmacSendCommandA()..........................................................................................................................................39
PmacSendLineA() ...................................................................................................................................................39
PmacSetAsciiComm().............................................................................................................................................39
DOWNLOADING FUNCTIONS.............................................................................................................................41
PmacAbortDownload() ...........................................................................................................................................41
PmacAddDownloadFileA().....................................................................................................................................41
PmacDownloadA()..................................................................................................................................................41
PmacDownloadFirmwareFile()...............................................................................................................................42
PmacMultiDownload()............................................................................................................................................42
PComm 32 Pro Software Reference Manual
Table of Contents iii
PmacRemoveDownloadFile() .................................................................................................................................43
PmacSetMaxDownloadErrors() ..............................................................................................................................44
DUAL-PORTED RAM CONTROL PANEL..........................................................................................................45
PmacDPRControlPanel().........................................................................................................................................45
PmacDPRGetActionBit() and PmacDPRSetActionBit() .........................................................................................45
PmacDPRGetFOEnableBit() and PmacDPRSetFOEnableBit()..............................................................................46
PmacDPRGetFOValue() and PmacDPRSetFOValue()...........................................................................................46
PmacDPRGetRequestBit() and PmacDPRSetRequestBit().....................................................................................47
DPR REAL TIME FIXED DATA BUFFER...........................................................................................................49
DPR Real Time Fixed Data Buffer Initialization and Handshaking........................................................................49
Startup/Shutdown................................................................................................................................................49
HandShaking ......................................................................................................................................................49
DPR Real Time Fixed Data Buffer Query Routines ...............................................................................................49
DPR REAL TIME FIXED DATA BUFFER (TURBO).........................................................................................53
DPR Real Time Fixed Data Buffer Initialization (Turbo).......................................................................................53
Startup/ShutDown...............................................................................................................................................53
HandShaking ......................................................................................................................................................53
DPR Real Time Fixed Data Buffer Query Routines (Turbo)..................................................................................53
DPR BACKGROUND FIXED DATA BUFFER ....................................................................................................55
DPR Background Fixed Data Buffer Initialization and Handshaking.....................................................................55
DPR Background Fixed Data Buffer Query Routines.............................................................................................55
Data Query Functions ........................................................................................................................................55
Logical Query Functions....................................................................................................................................57
DPR BACKGROUND FIXED DATA BUFFER (TURBO)...................................................................................59
DPR Background Fixed Data Buffer Initialization and Handshaking (Turbo) .......................................................59
Startup/Shutdown and Handshaking Functions..................................................................................................59
DPR Background Fixed Data Buffer Query Routines (Turbo) ...............................................................................59
Data Query Functions ........................................................................................................................................59
Logical Query Functions....................................................................................................................................60
DPR VARIABLE BACKGROUND READ/WRITE DATA BUFFER.................................................................61
PmacDPRBackground()..........................................................................................................................................61
PmacDPRBufLast().................................................................................................................................................61
PmacDPRGetVBGAddress() ..................................................................................................................................61
PmacDPRGetVBGNumEntries() ............................................................................................................................62
PmacDPRGetVBGDataOffset()..............................................................................................................................62
PmacDPRGetVBGAddrOffset() .............................................................................................................................62
PmacDPRGetVBGServoTimer() ............................................................................................................................62
PmacDPRGetVBGStartAddr()................................................................................................................................62
PmacDPRGetVBGTotalEntries()............................................................................................................................63
PmacDPRVarBufChange() .....................................................................................................................................63
PmacDPRVarBufInit()............................................................................................................................................63
PmacDPRVarBufRead() .........................................................................................................................................64
PmacDPRVarBufReadEx().....................................................................................................................................64
PmacDPRVarBufRemove() ....................................................................................................................................64
PmacDPRWriteBufferEx()......................................................................................................................................65
DPR BINARY ROTARY BUFFER FUNCTIONS.................................................................................................67
PmacDPRAsciiFileToRot().....................................................................................................................................67
PmacDPRAsciiStrToRot() ......................................................................................................................................67
PmacDPRAsciiStrToRotEx()..................................................................................................................................68
PmacDPRRotBufChange()......................................................................................................................................68
PmacDPRRotBufRemove().....................................................................................................................................69
PmacDPRRotBufClr().............................................................................................................................................69
剩余108页未读,继续阅读
资源评论
松山云鹤
- 粉丝: 30
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功