Toshiba PROSEC T1-16S User Manual page 240

Programmable controller basic hardware and function
Hide thumbs Also See for PROSEC T1-16S:
Table of Contents

Advertisement

7. Instructions
FUN 190
BCD
Expression
Input
[ A BCD B ]
Function
When the input is ON, this instruction converts the binary data of A into BCD, and stores in B. If the
data of A is not in the range of 0 to 9999, the conversion is not executed and the instruction error
flag (ERF = S051) is set to ON.
Execution condition
Input
OFF
No execution
ON
Normal execution
Binary data error
Operand
Name
X
A Source
(Binary)
B Destination
(BCD)
Example
When R019 is ON, the data of D0211 is converted into 4-digit BCD, and the result is stored in
RW22.
For example, if D0211 is 5432, the BCD data H5432 is stored in RW22.
D0211
5432
Note
If the data of A is smaller than 0 or greater than 9999, the conversion is not executed and the
instruction error flag (ERF = S051) is set to ON.
238
T1-16S User's Manual
BCD conversion
Output
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
Binary to BCD
Output
ERF
OFF
ON
OFF
Set
Register
C
D
RW22
H5432
6F3B0253
Constant Index
I
J
K
0 - 9999

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents