DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-266
Chapter 5: Standard RLL 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 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.
Parameter DL06 Range
Value (WORD Binary) V,P,K K0-65535; See DL06 V-memory map - Data Words
Result (DWORD Binary) V See DL06 V-memory map - Data Words
DS Used
HPP
N/A
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