没有合适的资源?快使用搜索试试~ 我知道了~
首页PCOMM32 PRO 函数说明.pdf
资源详情
资源评论
资源推荐
^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币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0