Command Syntax – Binary (advanced)
Some commands have an equivalent binary value. Binary communication mode can be executed about 20% faster
than ASCII commands. Binary format can only be used when commands are sent from the PC and cannot be
embedded in an application program.
Binary Command Format
All binary commands have a 4 byte header and is followed by data fields. The 4 bytes are specified in hexadecimal
format.
Header Format:
Byte 1
specifies the command number between 80 to FF. The complete binary command number table is listed
below.
Byte 2
specifies the # of bytes in each field as 0,1,2,4 or 6 as follows:
00
No data fields (i.e. SH or BG)
01
One byte per field
02
One word (2 bytes per field)
04
One long word (4 bytes) per field
06
Galil real format (4 bytes integer and 2 bytes fraction)
Byte 3
specifies whether the command applies to a coordinated move as follows:
00
No coordinated motion movement
01
Coordinated motion movement
For example, the command STS designates motion to stop on a vector move, S coordinate system. The third byte
for the equivalent binary command would be 01.
Byte 4
specifies the axis # or data field as follows
Bit 7 = H axis or 8
th
data field
Bit 6 = G axis or 7
th
data field
Bit 5 = F axis or 6
th
data field
Bit 4 = E axis or 5
th
data field
Bit 3 = D axis or 4
th
data field
Bit 2 = C axis or 3
rd
data field
Bit 1 = B axis or 2
nd
data field
Bit 0 = A axis or 1
st
data field
Data fields Format
Data fields must be consistent with the format byte and the axes byte. For example, the command PR 1000,, -500
would be :
A7 02 00 05 03 E8 FE 0C
where A7 is the command number for PR
02 specifies 2 bytes for each data field
DMC-40x0 User Manual
Chapter 5 Command Basics
•
72
Содержание DMC-4040
Страница 17: ...DMC 4080 Layout Figure 2 2 Outline of the of the DMC 4080 DMC 40x0 User Manual Chapter 2 Getting Started 8...
Страница 19: ...DMC 4040 Dimensions Figure 2 5 Dimensions of DMC 4040 DMC 40x0 User Manual Chapter 2 Getting Started 10...
Страница 20: ...DMC 4080 Dimensions Figure 2 6 Dimensions of DMC 4080 Chapter 2 Getting Started 11 DMC 40x0 User Manual...
Страница 54: ...Chapter 3 Connecting Hardware 45 DMC 40x0 User Manual...
Страница 55: ...DMC 40x0 User Manual Chapter 3 Connecting Hardware 46...
Страница 56: ...Chapter 3 Connecting Hardware 47 DMC 40x0 User Manual...
Страница 73: ...Figure 4 1 GalilTools DMC 40x0 User Manual Chapter 4 Software Tools and Communication 64...
Страница 185: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 7 Application Programming 176...
Страница 205: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 10 Theory of Operation 196...
Страница 220: ...Step 2 Remove ICM For DMC 4040 Proceed to Step 3 Configure Circuit Appendices 211 DMC 40x0 User Manual...
Страница 222: ...Step 2 Remove ICM s Appendices 213 DMC 40x0 User Manual...
Страница 232: ...DMC 4080 Steps 4 and 5 Step 4 Replace ICM s Appendices 223 DMC 40x0 User Manual...