![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452269.webp)
E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-100
API Mnemonic
Operands
Function
44
D BON P
S, D, n
Bit ON Test
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
*
*
*
*
*
*
*
*
*
*
*
D
*
*
*
n
*
* *
*
*
*
*
BON, BONP: 7 steps
DBON, DBONP: 13
steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
: Source address
D
: Destination address for storing the result
n
: Bit number to test
Description:
1.
The instruction checks the status of a designated bit (specified by
n
) in
S
and stores the
result in
D
2. If
operands
S
,
n
use index F, then only 16-bit instruction is available.
3.
Valid range of operand
n
:
n
=0~15 (16-bit),
n
=0~31 (32-bit)
Program Example:
1.
When X0 = ON, and if the 15th bit of D0 = “1”, M0 is ON. But if the 15th bit of D0 is “0”, M0 is
OFF.
2.
Once X0 is switched to OFF, M0 will stay at its previous state.
X0
BON
D0
M0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
D0
K15
b0
M0=Off
b15
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
D0
b0
M0=On
b15
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...