Toshiba PROSEC T1-16S User Manual page 203

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

Advertisement

FUN 121
DEC
Expression
Input
[ A DEC (n) B ]
Function
When the input is ON, this instruction sets the bit position which is designated by lower n bits of A
to ON in the bit table, size 2
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
X
A Decode source
n Table size
B Start of table
Example
5
2
(=32) bits starting with 0 bit of RW05 (R050 to R06F) are defined as the bit table.
When R011 is ON, the bit position designated by lower 5 bits of D0011 in the bit table is set to
ON, and all other bits in the table are reset to OFF.
The following figure shows an operation example.
F E D C B A 9 8 7 6 5 4 3 2 1 0
D0011
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Decode
Output
n
bits starting with 0 bit (LSB) of B, and resets all other bits to OFF.
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
Ignored
Sets ON
RW06
Output
OFF
ON
Register
C
1 1 0 0 0
H18 (=24)
RW05
Basic Hardware and Function
7. Instructions
Constant Index
D
I
J
K
1 - 8
3 2 1 0
0 0 0 0
6F3B0253
201

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents