58
Calculating with Signed Binary Data
Section 1-7
modes can be used if an optional Serial Communications Board is installed in
the PC.
Some Programmable Terminals are equipped with Programming Console
functions which allow the Programmable Terminal to program and monitor the
CQM1H. The Programmable Terminal’s Programming Console functions can-
not be used if a Programming Console is connected to the CQM1H’s periph-
eral port. Refer to the Programming Terminal’s Operation Manual for details
on the Programming Console functions.
Communications
Procedure
With NT Link communications, the PC automatically responds to commands
issued from the Programmable Terminal, so communications programming is
not required in the CQM1H and there is no NT Link communications proce-
dure to perform.
1-6-6
Wiring Ports
Refer to the
CQM1H Operation Manual
for information on wiring the commu-
nications ports.
1-7
Calculating with Signed Binary Data
The CQM1H PCs allow calculations on signed binary data. The following
instructions manipulate signed binary data. Signed data is handled using 2’s
complements.
The following signed-binary instructions are available in CQM1H PCs:
Single-word Instructions
• 2’S COMPLEMENT – NEG(––)
• BINARY ADD – ADB(50)
• BINARY SUBTRACT – SBB(51)
• SIGNED BINARY MULTIPLY – MBS(––)
• SIGNED BINARY DIVIDE – DBS(––)
Double-word (Long) Instructions
• DOUBLE 2’S COMPLEMENT – NEGL(––)
• DOUBLE BINARY ADD – ADBL(––)
• DOUBLE BINARY SUBTRACT – SBBL(––)
• DOUBLE SIGNED BINARY MULTIPLY – MBSL(––)
• DOUBLE SIGNED BINARY DIVIDE – DBSL(––)
1-7-1
Definition of Signed Binary Data
The CQM1H provides instructions that operate on either one or two words of
data. Signed binary data is manipulated using 2’s complements and the MSB
of the one- or two-word data is used as the sign bit. The range of data that can
be expressed using one or two words is thus as follows:
•
One-word data:
–32,768 to 32,767 (8000 to 7FFF hexadecimal)
•
Two-word data:
–2,147,483,648 to 2,147,483,647 (8000 0000 to 7FFF FFFF hexadeci-
mal)
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......