![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452383.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-214
API Mnemonic
Operands
Function
77
PR
S, D
Outputs ASCII Code
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
*
PR: 5 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
: The address for storing ASCII data (occupies 4 continuous addresses)
D
: The external output
address for the ASCII code (occupies 10 continuous bit addresses)
Description:
1.
This instruction will display ASCII codes stored in 4 continuous registers (
S)
on the outputs
specified by
D
.
2.
D
~
D+7
map the source data (ASCII code) directly in order,
D+10
is the scan signal and
D+11
is the execution flag.
3.
The PR instruction can only be used twice in the program.
4.
Flag: M1029 execution complete flag.
Program Example 1:
1.
First, use the ASC instruction to convert A~H to ASCII code and store the data in D0~D3. Then,
using the PR instruction move the data to the 8 outputs.
2.
When M1027=OFF and X20=ON, this instruction will execute to write the ASCII data to Y20
(lower bit) through Y27 (upper bit). Y30 is the scan signal, and Y31 is the monitor signal. This
mode can sequentially display 8 ASCII characters on the 8 outputs.
3.
If X20 turns from ON
→
OFF while the instruction being executed, all the outputs will be turned
OFF. When X20 turns ON again, the instruction will begin executing again.
X20
PR
D0
Y20
T T T
A B C D
H
X20 start signal
Y20~Y27 data
Y30 scan signal
Y31 being executed
T : scan time(ms)
Содержание 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...