DL205 User Manual, 4th Edition, Rev. B
5–266
Chapter 5: Intelligent Box (IBox) Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Square Binary (SQUAREB) (IB-503)
Square Binary squares the given 16-bit WORD Binary number and writes it as a 32-bit
DWORD Binary result.
SQUAREB Parameters
• Value (WORD Binary): specifies the binary
Word or constant that will be squared
• Result (DWORD Binary): specifies the
location where the squared DWORD binary
value will be placed
SQUAREB Example
In the following example, the SQUAREB instruction is used to square the single-word Binary
value in V2000 and store the 8-digit double-word Binary result in V3000 and V3001 when
C100 turns on.
DS5
Used
HPP
N/A
Parameter
DL205 Range
Value (WORD Binary) . . . . . . . . . . . . . . . . V,P,K
K0-65535; See DL205 V-memory map - Data Words
Result (DWORD Binary) . . . . . . . . . . . . . . . . . . V
See DL205 V-memory map - Data Words
ý
ý
þ
þ
230
240
2
5
0
-1
2
6
0