
Series 30i/ 31i/ 32i-MODEL A
PMC Supplemental Programming Manual
01 04.09.30
S. Hasegawa
New registration
B-63983EN/02-2
EDIT
DATE
DESIG.
DESCRIPTION
27/56
DRAW.NO.
3.2.7 Signed Binary Comparison (range)
RNGB (1-byte length: SUB 218)
RNGW (2-bytes length: SUB 219)
RNGD (4-bytes length: SUB 220)
This instruction is the range comparison function. When following data
conditions, the output W1 becomes 1.
- "Data 1" <= "Input data" <= "Data 2" or
"Data 2" <= "Input data" <= "Data 1"
The RNGB instruction handles 1-byte length signed binary data.
The RNGW instruction handles 2-bytes length signed binary data.
The RNGD instruction handles 4-bytes length signed binary data.
Format
Fig. 3.2.7 shows the ladder format and Table 3.2.7 shows the mnemonic
format.
Fig. 3.2.7 Format of RNGB, RNGW and RNGD instructions
SUB 218
RNGB
Data 1
(Constant
or
Address)
ACT W1
Data 2
(Constant
or
Address)
Input Data
(Constant
or
Address)
SUB 219
RNGW
Data 1
(Constant
or
Address)
ACT W1
Data 2
(Constant
or
Address)
Input Data
(Constant
or
Address)
SUB 220
RNGD
Data 1
(Constant
or
Address)
ACT W1
Data 2
(Constant
or
Address)
Input Data
(Constant
or
Address)