MSG
ABCDEFGHIJKLMNOP
210
If the message data changes while the message is being displayed, the dis-
play will also change.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
The following example shows the display that would be produced for the in-
struction and data given when 00000 was ON. If 00001 goes ON, a message
will be cleared.
MSG(46)
DM 0010
FAL(06) 00
00000
00001
Address
Instruction
Operands
00000
LD
00000
00001
MSG(46)
DM
0010
00002
LD
00001
00003
FAL(06)
00
DM contents
ASCII
equivalent
DM 0010
4
1
4
2
A
B
DM 0011
4
3
4
4
C
D
DM 0012
4
5
4
6
E
F
DM 0013
4
7
4
8
G
H
DM 0014
4
9
4
A
I
J
DM 0015
4
B
4
C
K
L
DM 0016
4
D
4
E
M
N
DM 0017
4
F
5
0
O
P
5-23-3
BIT COUNTER – BCNT(67)
N
: Number of words (BCD)
IR, AR, DM, HR, TC, LR, #
SB
: Source beginning word
IR, SR, AR, DM, HR, TC, LR
Operand Data Areas
R
: Destination word
IR, AR, DM, HR, TC, LR
Ladder Symbols
BCNT(67)
N
SB
R
@BCNT(67)
N
SB
R
Limitations
N cannot be 0.
When the execution condition is OFF, BCNT(67) is not executed. When the
execution condition is ON, FUN(67) counts the total number of bits that are
ON in all words between SB and SB+(N–1) and places the result in D.
Flags
ER:
N is not BCD, or N is 0; SB and SB+(N–1) are not in the same area.
The resulting count value exceeds 9999.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ
:
ON when the result is 0.
Example
Description
Special Instructions
Section 5-23