BINARY HOST INTERFACE
ACR Programmer’s Guide
251
Current Position Parameter Address:
AXIS0: 0x405031
Binary Mask Command
A binary mask command consists of a four-byte header followed by an address and two bit masks to be combined
with the data at that address. There is no information returned from this command. The address must point to a
long integer storage area. The NAND mask is used to clear bits and the OR mask is used to set bits (OR mask is
dominant). The data is modified as follows:
data = ( data AND NOT nandmask ) OR ormask
Transmit Packet
Data Field
Data Type
Description
Byte 0
BYTE
Header ID (0x00)
Byte 1
BYTE
Packet ID (0x94)
Byte 2
BYTE
Reserved (0x00)
Byte 3
BYTE
Reserved (0x00)
Long 0
BYTE
Data Address
Long 1
BYTE
NAND Mask
Long 2
BYTE
OR Mask
Receive Packet
None.
Usage Example
This example uses the Binary Mask Command to clear all of the Opto-isolated Outputs and then set Output 32.
The data address for Opto-isolated Outputs Parameter P4097 is assumed to have been previously returned using
the Binary Parameter Address Command on the previous page.
NOTE: Addresses shown are for example only. Addresses will vary from controller to controller,
depending on system memory allocation.
Fields:
Header
Parameter Address NAND Mask OR Mask
Output: 00 94 00 00 43 60 40 00
FF FF FF FF
01 00 00 00
Opto-isolated Output Parameter P4097 Modified Data at address:
0x406043: 0x00000001
Summary of Contents for ACR7000 Series
Page 1: ...Effective June 2021 Document Number 88 028698 01E Programmer s Guide ACR Series Controllers ...
Page 23: ...PARKER MOTION MANAGER ACR Programmer s Guide 23 CHAPTER 1 Parker Motion Manager ...
Page 69: ...PARKER MOTION MANAGER ACR Programmer s Guide 69 ...
Page 101: ...ACR BASICS ACR Programmer s Guide 101 CHAPTER 2 ACR Basics ...
Page 153: ...MAKING MOTION ACR Programmer s Guide 153 CHAPTER 3 Making Motion ...
Page 207: ...WRITING ACROBASIC PROGRAMS ACR Programmer s Guide 207 CHAPTER 4 Writing AcroBASIC Programs ...
Page 233: ...WRITING ACROBASIC PROGRAMS ACR Programmer s Guide 233 ...
Page 238: ...BINARY HOST INTERFACE 238 ACR Programmer s Guide CHAPTER 5 Binary Host Interface ...
Page 269: ...TROUBLESHOOTING ACR Programmer s Guide 269 CHAPTER 6 Troubleshooting ...
Page 288: ...APPENDIX B ETHERNET BASICS 288 ACR Programmer s Guide APPENDIX B Ethernet Basics ...
Page 293: ...APPENDIX C SERVO PID TUNING ACR Programmer s Guide 293 APPENDIX C Servo PID Tuning ...
Page 296: ...APPENDIX C SERVO PID TUNING 296 ACR Programmer s Guide ...