Toshiba PROSEC T1-16S User Manual page 239

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

Advertisement

FUN 188
BIN
Expression
Input
[ A BIN B ]
Output
Function
When the input is ON, this instruction converts the 4 digits of BCD data of A into binary, and stores
in B. If any digit of A contains non-BCD code (other than H0 through H9), 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
BCD data error
Operand
Name
X
A Source (BCD)
B Destination
(Binary)
Example
When R017 is ON, the BCD data of RW28 is converted into binary data, and the result is
stored in D0127.
For example, if RW28 is H1234, the binary data 1234 is stored in D0127.
RW28
H1234
Note
If any digit of operand A contains non-BCD data, e.g. H13A6, the conversion is not executed
and the instruction error flag (ERF = S051) is set to ON.
Binary conversion
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
BCD to Binary
Output
ERF
OFF
ON
OFF
Set
Register
C
D
D0127
1234
Basic Hardware and Function
6F3B0253
7. Instructions
Constant Index
I
J
K
H0000 -
H9999
237

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents