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-246
API Mnemonic
Operands
Function
83
HEX P
S, D, n
Converts ASCII to HEX
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
*
*
HEX, HEXP: 7 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 data
D
: Destination for the result
n
: number of digits to convert (
n
=1~256)
Description:
1.
16-bit conversion mode: When M1161=OFF, the conversion mode is 16-bit. Convert 16-bit
ASCII data of
S
(high and low byte) to hexadecimal and then store the result in
D
. The number
of converted ASCII characters is set by
n
.
2.
8-bit conversion mode: When M1161=ON, the conversion mode is 8-bit. Convert 16-bit ASCII
code of
S
(high and low byte) to hexadecimal data characters and then transmit to low byte of
D
. The number of converted ASCII codes is set by
n
. (high byte of
D
set to 0)
3.
Available range for Hex data: 0~9, A~F
4.
ELC-PB, ELCB-PB series doesn’t support the index registers E, F.
Program Example 1:
1.
When M1161=OFF, it is 16-bit conversion mode.
2.
When X0=ON, read ASCII bytes from starting register D20 and convert them to hexadecimal
characters. Then, store the converted data to four registers starting with D10.
X0
HEX
D20
D10
K4
M1001
M1161
Содержание 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...